Free CRT-600 Exam Braindumps (page: 21)

Page 20 of 57

developer removes the HTML class attribute from the checkout button, so now it is simply:
<button>Checkout</button>.
There is a test to verify the existence of the checkout button, however it looks for a button with class= "blue". The test fails because no such button is found.
Which type of test category describes this test?

  1. True positive
  2. True negative
  3. False positive
  4. False negative

Answer(s): D



Which two code snippets show working examples of a recursive function? Choose 2 answers

  1. Let countingDown = function(startNumber) {
    If ( startNumber >0) {
    console.log(startNumber) ;
    return countingDown(startNUmber);
    } else {

    return startNumber;
    }};
  2. Function factorial ( numVar ) {
    If (numVar < 0) return;
    If ( numVar === 0 ) return 1;
    return numVar -1;
  3. Const sumToTen = numVar => {
    If (numVar < 0)
    Return;
    return sumToTen(numVar + 1)};
  4. Const factorial =numVar => {
    If (numVar < 0) return;
    If ( numVar === 0 ) return 1;
    return numVar * factorial ( numVar - 1 );
    };

Answer(s): A,D



Refer to the HTML below:
<div id="main">
<ul>
<li>Leo</li>
<li>Tony</li>
<li>Tiger</li>
</ul>
</div>
Which JavaScript statement results in changing " Tony" to "Mr. T."?

  1. document.querySelectorAll(`$main $TONY').innerHTML = ' Mr. T. ';
  2. document.querySelector(`$main li:second-child').innerHTML = ' Mr. T. ';
  3. document.querySelector(`$main li.Tony').innerHTML = ' Mr. T. ';
  4. document.querySelector(`$main li:nth-child(2)'),innerHTML = ' Mr. T. ';

Answer(s): D



Considering type coercion, what does the following expression evaluate to? True + `13' + NaN

  1. ` 113Nan '
  2. 14
  3. ` true13 '
  4. ` true13NaN '

Answer(s): D






Post your Comments and Discuss Salesforce CRT-600 exam with other Community members:

CRT-600 Discussions & Posts