Free CRT-600 Exam Braindumps (page: 4)

Page 3 of 57

A developer has the following array of student test grades:
Let arr = [ 7, 8, 5, 8, 9 ];
The Teacher wants to double each score and then see an array of the students who scored more than 15 points.
How should the developer implement the request?

  1. Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
  2. Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
  3. Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);
  4. Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));

Answer(s): C



A test has a dependency on database.query. During the test the dependency is replaced with an object called database with the method, query, that returns an array. The developer needs to verify how many times the method was called and the arguments used each time.
Which two test approaches describe the requirement?
Choose 2 answers

  1. Integration
  2. Black box
  3. White box
  4. Mocking

Answer(s): C,D



Given the JavaScript below:
01 function filterDOM (searchString) {
02 const parsedSearchString = searchString && searchString.toLowerCase() ;
03 document.quesrySelectorAll(` .account' ) . forEach(account => (
04 const accountName = account.innerHTML.toLOwerCase();
05 account. Style.display = accountName.includes(parsedSearchString) ? /*Insert code*/;
06 )};
07 }
Which code should replace the placeholder comment on line 05 to hide accounts that do not match the search string?

  1. ` name ' : ` block '
  2. ` Block ' : ` none '
  3. ` visible ' : ` hidden '
  4. ` hidden ' : ` visible '

Answer(s): B



developer publishes a new version of a package with new features that do not break backward compatibility. The previous version number was 1.1.3. Following semantic versioning format, what should the new package version number be?

  1. 2.0.0
  2. 1.2.3
  3. 1.1.4
  4. 1.2.0

Answer(s): D






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

CRT-600 Discussions & Posts