[Q18-Q39] CRT-600 Practice Salesforce Verified Answers - Pass Your Exams For Sure! [2021]

Share

CRT-600 Practice Salesforce Verified Answers - Pass Your Exams For Sure! [2021]

Valid Way To Pass Salesforce Certified's  CRT-600 Exam


Salesforce CRT-600 Exam Syllabus Topics:

TopicDetails
Topic 1
  • JavaScript Basics
  • Working with Strings, Numbers, and Dates
Topic 2
  • Type Conversion (explicit and implicit)
  • Working with JSON
  • Data Types and Variables
Topic 3
  • Browser and Events
  • Document Object Model
  • Browser Dev Tools
Topic 4
  • Objects, Functions, and Classes
  • Using JavaScript Modules
  • Declaring Classes
Topic 5
  • Asynchronous Programming
  • Callback Functions
  • Promises and Async/Await
Topic 6
  • Server Side JavaScript Debugging in Node.js, Node.js Libraries
Topic 7
  • Debugging and Error Handling
  • Throwing and Catching Errors
  • Working with the Console
Topic 8
  • Creating Objects, Object Prototypes, Defining Functions

 

NEW QUESTION 18
Given the code below:
Setcurrent URL ();
console.log('The current URL is: ' +url );
function setCurrentUrl() {
Url = window.location.href:
What happens when the code executes?

  • A. The url variable has local scope and line 02 throws an error.
  • B. The url variable has global scope and line 02 executes correctly.
  • C. The url variable has global scope and line 02 throws an error.
  • D. The url variable has local scope and line 02 executes correctly.

Answer: B

 

NEW QUESTION 19
Refer to the code below:

Line 05 causes an error.
What are the values of greeting and salutation once code completes?

  • A. Greeting is Goodbye and salutation is I say Hello.
  • B. Greeting is Hello and salutation is Hello, Hello.
  • C. Greeting is Goodbye and salutation is Hello, Hello.
  • D. Greeting is Hello and salutation is I say hello.

Answer: B

 

NEW QUESTION 20
R74
new Promise((resolve, reject) => {
const fraction = Math.random();
if( fraction >0.5) reject("fraction > 0.5, " + fraction);
resolve(fraction);
})
.then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() => console.log(" when am I called?"));

When does Promise.finally on line 08 get called?

  • A. WHen resolved
  • B. When rejected
  • C. When resolved or rejected
  • D. When resolved and settled

Answer: C

 

NEW QUESTION 21
developer has a web server running with Node.js. The command to start the web server is node server,js. The web server started having latency issues. Instead of a one second turn around for web requests, the developer now sees a five second turnaround, Which command can the web developer run to see what the module is doing during the latency period?

  • A. DEBUG =true node server.js
  • B. NODE_DEBUG =http, https node server.js
  • C. DEBUG = http, https node server.js
  • D. NODE_DEBUG =true node server.js

Answer: A

 

NEW QUESTION 22
Refer to the following code:
Let sampleText = 'The quick brown fox jumps';
A developer needs to determine if a certain substring is part of a string.
Which three expressions return true for the given substring ?
Choose 3 answers

  • A. sampleText.includes(' Fox ', 3)
  • B. sampleText.includes(' quick ') !== -1;
  • C. sampleText.includes(' fox ');
  • D. sampleText.includes('fox');
  • E. sampleText.includes(' quick ', 4);

Answer: B,C,E

 

NEW QUESTION 23
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from '/path/PricePrettyPrint.js';
Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?

  • A. printPrice must be be a named export
  • B. printPrice must be the default export
  • C. printPrice must be a multi exportc
  • D. printPrice must be an all export

Answer: B

 

NEW QUESTION 24
Which javascript methods can be used to serialize an object into a string and deserialize a JSON string into an object, respectively?

  • A. JSON.stringify and JSON.parse
  • B. JSON.encode and JSON.decode
  • C. JSON.serialize and JSON.deserialize
  • D. JSON.parse and JSON.deserialize

Answer: A

 

NEW QUESTION 25
Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) ...`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' Super Nonic 3x Force ');
What should a developer insert at line 15 to output the following message using the method ?
> SNEGeneziz is loading a cartridge game: Super Monic 3x Force . . .

  • A. Console16bit.prototype.load = function(gamename) {
  • B. Console16bit.prototype.load(gamename) = function() {
  • C. Console16bit.prototype.load(gamename) {
  • D. Console16bit = Object.create(GameConsole.prototype).load = function
    (gamename) {

Answer: A

 

NEW QUESTION 26
What is the result of the code block?

  • A. The console logs only 'flag'.
  • B. The console logs 'flag' and then an error is thrown.
  • C. An error is thrown.
  • D. The console logs 'flag' and another flag.

Answer: B

 

NEW QUESTION 27
Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?

  • A. Let numberValue = (Number)textValue;
  • B. let numberValue = Number(textValue);
  • C. Let numberValue = Integer(textValue);
  • D. Let numberValue = textValue.toInteger();

Answer: B

 

NEW QUESTION 28
Which statement accurately describes an aspect of promises?

  • A. .then() cannot be added after a catch.
  • B. In a.then() function, returning results is not necessary since callbacks will catch the result of a previous promise.
  • C. Arguments for the callback function passed to .then() are optional.
  • D. .then() manipulates and returns the original promise.

Answer: C

 

NEW QUESTION 29
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?

  • A. console.assert(number % 2 === 0);
  • B. console.error(number % 2 === 0);
  • C. console.debug(number % 2 === 0);
  • D. assert (number % 2 === 0);

Answer: B

 

NEW QUESTION 30
Refer to the code below:
Const searchTest = 'Yay! Salesforce is amazing!" ;
Let result1 = searchText.search(/sales/i);
Let result 21 = searchText.search(/sales/i);
console.log(result1);
console.log(result2);
After running this code, which result is displayed on the console?

  • A. > 5 > 0
  • B. > 5 >undefined
  • C. > 5 > -1
  • D. > true > false

Answer: B

 

NEW QUESTION 31
Refer to code below:
Function muFunction(reassign){
Let x = 1;
var y = 1;
if( reassign ) {
Let x= 2;
Var y = 2;
console.log(x);
console.log(y);}
console.log(x);
console.log(y);}
What is displayed when myFunction(true) is called?

  • A. 2 2 1 1
  • B. 2 2 2 2
  • C. 2 2 1 2
  • D. 2 2 undefined undefined

Answer: C

 

NEW QUESTION 32
A developer is required to write a function that calculates the sum of elements in an array but is getting undefined every time the code is executed. The developer needs to find what is missing in the code below.
Const sumFunction = arr => {
Return arr.reduce((result, current) => {
//
Result += current;
//
), 10);
);
Which option makes the code work as expected?

  • A. Replace line 02 with return arr.map(( result, current) => (
  • B. Replace line 05 with return result;
  • C. Replace line 03 with if(arr.length == 0 ) ( return 0; )
  • D. Replace line 04 with result = result +current;

Answer: B

 

NEW QUESTION 33
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?

  • A. Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
  • B. Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));
  • C. Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
  • D. Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);

Answer: D

 

NEW QUESTION 34
Refer to the code below:
const addBy = ?
const addByEight =addBy(8);
const sum = addBYEight(50);
Which two functions can replace line 01 and return 58 to sum?
Choose 2 answers

  • A. const addBY = (num1) => (num2) => num1 + num2;
  • B. const addBy = function(num1){
    return num1 + num2;
    }
  • C. const addBy = function(num1){
    return function(num2){
    return num1 + num2;
    }
  • D. const addBy = (num1) => num1 + num2 ;

Answer: A,C

 

NEW QUESTION 35
A developer wants to create an object from a function in the browser using the code below:
Function Monster() { this.name = 'hello' };
Const z = Monster();
What happens due to lack of the new keyword on line 02?

  • A. Window.m is assigned the correct object.
  • B. The z variable is assigned the correct object.
  • C. The z variable is assigned the correct object but this.name remains undefined.
  • D. Window.name is assigned to 'hello' and the variable z remains undefined.

Answer: D

 

NEW QUESTION 36
Refer to the following code:
<html lang="en">
<body>
<div onclick = "console.log('Outer message') ;">
<button id ="myButton">CLick me<button>
</div>
</body>
<script>
function displayMessage(ev) {
ev.stopPropagation();
console.log('Inner message.');
}
const elem = document.getElementById('myButton');
elem.addEventListener('click' , displayMessage);
</script>
</html>
What will the console show when the button is clicked?

  • A. Inner message
    Outer message
  • B. Inner message
  • C. Outer message
  • D. Outer message
    Inner message

Answer: B

 

NEW QUESTION 37
Given HTML below:
<div>
<div id ="row-uc"> Universal Container</div>
<div id ="row-aa">Applied Shipping</div>
<div id ="row-bt"> Burlington Textiles </div>
</div>
Which statement adds the priority = account CSS class to the universal COntainers row ?

  • A. Document .querySelector('#row-uc').classes.push('priority-account');
  • B. Document .queryElementById('row-uc').addclass('priority-account');
  • C. Document .querySelector('#row-uc').classList.add('priority-account');
  • D. Document .querySelectorALL('#row-uc').classList.add('priority-account');

Answer: B

 

NEW QUESTION 38
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

  • A. Mocking
  • B. White box
  • C. Black box
  • D. Integration

Answer: A,B

 

NEW QUESTION 39
......

Salesforce CRT-600 Pre-Exam Practice Tests | Free4Torrent: https://www.free4torrent.com/CRT-600-braindumps-torrent.html

CRT-600 practice test questions, answers, explanations: https://drive.google.com/open?id=13tjM4lpXi6-IVvBIGsLNBqGHBrKhocH7