
Updated Oct-2021 Official licence for CRT-600 Certified by CRT-600 Dumps PDF
Grab latest Amazon CRT-600 Dumps as PDF Updated on 2021
Salesforce CRT-600 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
NEW QUESTION 45
Refer to the following code that performs a basic mathematical operation on a provided input:
function calculate(num) {
Return (num +10) / 3;
}
How should line 02 be written to ensure that x evaluates to 6 in the line below?
Let x = calculate (8);
- A. Return Number((num +10) /3 );
- B. Return Number(num + 10) / 3;
- C. Return (Number (num +10 ) / 3;
- D. Return Integer(num +10) /3;
Answer: C
NEW QUESTION 46
A developer has an ErrorHandler module that contains multiple functions.
What kind of export be leverages so that multiple functions can be used?
- A. Named
- B. Multi
- C. Default
- D. All
Answer: A
NEW QUESTION 47
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
- A. runParallel ( ). done(function(data){
return data;
}); - B. Async runParallel () .then(data);
- C. runParallel () .then(function(data)
return da - D. runParallel () .then(data);
Answer: A,C
NEW QUESTION 48
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 49
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
- A. runParallel ( ). done(function(data){
return data;
}); - B. Async runParallel () .then(data);
- C. runParallel () .then(function(data)
return data - D. runParallel () .then(data);
Answer: A,C
NEW QUESTION 50
developer is trying to convince management that their team will benefit from using Node.js for a backend server that they are going to create. The server will be a web server that handles API requests from a website that the team has already built using HTML, CSS, and JavaScript.
Which three benefits of Node.js can the developer use to persuade their manager?
Choose 3 answers:
- A. Executes server-side JavaScript code to avoid learning a new language.
- B. I nstalls with its own package manager to install and manage third-party libraries.
- C. User non blocking functionality for performant request handling .
- D. Ensures stability with one major release every few years.
- E. Performs a static analysis on code before execution to look for runtime errors.
Answer: B,C,E
NEW QUESTION 51
A developer has the function, shown below, that is called when a page loads.
function onload() {
console.log("Page has loaded!");
}
Where can the developer see the log statement after loading the page in the browser?
- A. Browser javaScript console
- B. Terminal running the web server.
- C. On the webpage.
- D. Browser performance toots
Answer: A
NEW QUESTION 52
A developer creates a generic function to log custom messages in the console. To do this, the function below is implemented.
01 function logStatus(status){
02 console./*Answer goes here*/{'Item status is: %s', status};
03 }
Which three console logging methods allow the use of string substitution in line 02?
- A. Assert
- B. Info
- C. Log
- D. Error
- E. Message
Answer: A,B
NEW QUESTION 53
A developer is leading the creation of a new browser application that will serve a single page application. The team wants to use a new web framework Minimalsit.js. The Lead developer wants to advocate for a more seasoned web framework that already has a community around it.
Which two frameworks should the lead developer advocate for?
Choose 2 answers
- A. Vue
- B. Express
- C. Koa
- D. Angular
Answer: B,D
NEW QUESTION 54
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 55
A class was written to represent items for purchase in an online store, and a second class Representing items that are on sale at a discounted price. THe constructor sets the name to the first value passed in. The pseudocode is below:
Class Item {
constructor(name, price) {
... // Constructor Implementation
}
}
Class SaleItem extends Item {
constructor (name, price, discount) {
...//Constructor Implementation
}
}
There is a new requirement for a developer to implement a description method that will return a brief description for Item and SaleItem.
Let regItem =new Item('Scarf', 55);
Let saleItem = new SaleItem('Shirt' 80, -1);
Item.prototype.description = function () { return 'This is a ' + this.name; console.log(regItem.description()); console.log(saleItem.description()); SaleItem.prototype.description = function () { return 'This is a discounted ' + this.name; } console.log(regItem.description()); console.log(saleItem.description()); What is the output when executing the code above ?
- A. This is a Scarf
Uncaught TypeError: saleItem.description is not a function
This is aScarf
This is a discounted Shirt - B. This is a Scarf
This is a Shirt
This is a discounted Scarf
This is a discounted Shirt - C. This is aScarf
Uncaught TypeError: saleItem.description is not a function
This is a Shirt
This is a did counted Shirt - D. This is a Scarf
This is a Shirt
This is a Scarf
This is a discounted Shirt
Answer: D
NEW QUESTION 56
A developer creates a simple webpage with an input field. When a user enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.
Here is the HTML file content:
<input type =" text" value="Hello" name ="input">
<button type ="button" >Display </button> The developer wrote the javascript code below:
Const button = document.querySelector('button');
button.addEvenListener('click', () => (
Const input = document.querySelector('input');
console.log(input.getAttribute('value'));
When the user clicks the button, the output is always "Hello".
What needs to be done to make this code work as expected?
- A. Replace line 04 with console.log(input .value);
- B. Replace line 02 with button.addEventListener("onclick", function() {
- C. Replace line 02 with button.addCallback("click", function() {
- D. Replace line 03 with const input = document.getElementByName('input');
Answer: A
NEW QUESTION 57
Which three options show valid methods for creating a fat arrow function?
Choose 3 answers
- A. X,y,z => ( console.log(' executed ') ;)
- B. (x,y,z) => ( console.log(' executed ') ;)
- C. ( ) => ( console.log(' executed ') ;)
- D. [ ] => ( console.log(' executed ') ;)
- E. x => ( console.log(' executed ') ; )
Answer: B,E
NEW QUESTION 58
Which statement phrases successfully?
- A. JSON.parse ( " foo " );
- B. JSON.parse( " ' foo ' " );
- C. JSON.parse(' " foo " ');
- D. JSON.parse ( ' foo ' );
Answer: C
NEW QUESTION 59
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 60
Refer to the code below:
01 let car1 = new promise((_, reject) =>
02 setTimeout(reject, 2000, "Car 1 crashed in"));
03 let car2 = new Promise(resolve => setTimeout(resolve, 1500, "Car 2
completed"));
04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, "Car 3
Completed"));
05 Promise.race([car1, car2, car3])
06 .then(value => (
07 let result = $(value) the race. `;
08 ))
09 .catch( arr => (
10 console.log("Race is cancelled.", err);
11 ));
What is the value of result when Promise.race executes?
- A. Race is cancelled.
- B. Car 1 crashed in the race.
- C. Car 3 completed the race.
- D. Car 2 completed the race.
Answer: D
NEW QUESTION 61
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 62
Refer to the code below:
console.log(''start);
Promise.resolve('Success') .then(function(value){
console.log('Success');
});
console.log('End');
What is the output after the code executes successfully?
- A. Start
End
Success - B. Start
Success
End - C. Success
Start
End - D. End
Start
Success
Answer: A
NEW QUESTION 63
Refer to the code below:
const event = new CustomEvent(
//Missing Code
);
obj.dispatchEvent(event);
A developer needs to dispatch a custom event called update to send information about recordId.
Which two options could a developer insert at the placeholder in line 02 to achieve this?
Choose 2 answers
- A. 'Update' , (
recordId : '123abc'
( - B. 'Update' , {
Details : {
recordId : '123abc'
}
} - C. { type : 'update', recordId : '123abc' }
- D. 'Update' , '123abc'
Answer: A,B
NEW QUESTION 64
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 65
A developer needs to test this function:
01 const sum3 = (arr) => (
02 if (!arr.length) return 0,
03 if (arr.length === 1) return arr[0],
04 if (arr.length === 2) return arr[0] + arr[1],
05 return arr[0] + arr[1] + arr[2],
06 );
Which two assert statements are valid tests for the function?
Choose 2 answers
- A. console.assert(sum3('hello', 2, 3, 4)) === NaN);
- B. console.assert(sum3(1, '2')) == 12);
- C. console.assert(sum3(-3, 2 )) == -1);
- D. console.assert(sum3(0)) == 0);
Answer: B,C
NEW QUESTION 66
A developer creates an object where its properties should be immutable and prevent properties from being added or modified.
Which method should be used to execute this business requirement ?
- A. Object.eval()
- B. Object.lock()
- C. Object.const()
- D. Object.freeze()
Answer: D
NEW QUESTION 67
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 68
......
Latest CRT-600 Exam Dumps Salesforce Exam from Training: https://www.guidetorrent.com/CRT-600-pdf-free-download.html