Buy Latest Jan 04, 2022 CRT-600 Exam Q&A PDF - One Year Free Update
Download the Latest CRT-600 Dump - 2022 CRT-600 Exam Questions
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 91
Refer to the code:
Given the code above, which three properties are set pet1?
Choose 3 answers:
- A. canTalk
- B. Type
- C. Name
- D. Size
- E. Owner
Answer: A,B,D
NEW QUESTION 92
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 93
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 94
Universal Container(UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions that cause this problem. To verify this, the developer decides to do everything and log the time each of these three suspicious functions consumes.
console.time('Performance');
maybeAHeavyFunction();
thisCouldTakeTooLong();
orMaybeThisOne();
console.endTime('Performance');
Which function can the developer use to obtain the time spent by every one of the three functions?
- A. console.getTime()
- B. console.timeStamp()
- C. console.timeLog()
- D. console.trace()
Answer: C
NEW QUESTION 95
A developer is creating a simple webpage with a button. When a user clicks this button for the first time, a message is displayed.
The developer wrote the JavaScript code below, but something is missing. The message gets displayed every time a user clicks the button, instead of just the first time.
01 function listen(event) {
02 alert ( 'Hey! I am John Doe') ;
03 button.addEventListener ('click', listen);
Which two code lines make this code work as required?
Choose 2 answers
- A. On line 06, add an option called once to button.addEventListener().
- B. On line 04, use event.stopPropagation ( ),
- C. On line 04, use button.removeEventListener(' click" , listen);
- D. On line 02, use event.first to test if it is the first execution.
Answer: A,C
NEW QUESTION 96
In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.
Which two methods are used to address this ?
Choose 2 answers
- A. Assign variables to module.exports and require them as needed.
- B. Use the document object instead of the window object.
- C. Assign variables to the global object.
- D. Create a new window object in the root file.
Answer: C
NEW QUESTION 97
Which code statement correctly retrieves and returns an object from localStorage?
- A. const retrieveFromLocalStorage = (storageKey) =>{
return window.localStorage[storageKey];
} - B. const retrieveFromLocalStorage = () =>{
return JSON.stringify(window.localStorage.getItem(storageKey));
} - C. const retrieveFromLocalStorage = (storageKey) =>{
return JSON.parse(window.localStorage.getItem(storageKey));
} - D. const retrieveFromLocalStorage = (storageKey) =>{
return window.localStorage.getItem(storageKey);
}
Answer: C
NEW QUESTION 98
Given the following code:
document.body.addEventListener(' click ', (event) => {
if (/* CODE REPLACEMENT HERE */) {
console.log('button clicked!');
)
});
Which replacement for the conditional statement on line 02 allows a developer to correctly determine that a button on page is clicked?
- A. Event.clicked
- B. button.addEventListener('click')
- C. e.nodeTarget ==this
- D. event.target.nodeName == 'BUTTON'
Answer: D
NEW QUESTION 99
Which code statement below correctly persists an objects in local Storage ?
- A. const setLocalStorage = (storageKey, jsObject) => {
window.localStorage.setItem(storageKey, JSON.stringify(jsObject));
} - B. const setLocalStorage = ( jsObject) => {
window.localStorage.setItem(jsObject);
} - C. const setLocalStorage = ( jsObject) => {
window.localStorage.connectObject(jsObject));
} - D. const setLocalStorage = (storageKey, jsObject) => {
window.localStorage.persist(storageKey, jsObject);
}
Answer: A
NEW QUESTION 100
Refer to the code snippet below:
Let array = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++){
if (array[i] === 4) {
array.splice(i, 1);
}
}
What is the value of the array after the code executes?
- A. [1, 2, 3, 5]
- B. [1, 2, 3, 4, 4, 5, 4]
- C. [1, 2, 3, 4, 5, 4, 4]
- D. [1, 2, 3, 4, 5, 4]
Answer: D
NEW QUESTION 101
Refer to code below:
console.log(0);
setTimeout(() => (
console.log(1);
});
console.log(2);
setTimeout(() => {
console.log(3);
), 0);
console.log(4);
In which sequence will the numbers be logged?
- A. 01234
- B. 02431
- C. 02413
- D. 0
Answer: C
NEW QUESTION 102
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 103
Which three actions can be using the JavaScript browser console?
Choose 3 answers:
- A. view , change, and debug the JavaScript code of the page.
- B. View and change security cookies.
- C. Run code that is not related to page.
- D. View and change DOM the page.
- E. Display a report showing the performance of a page.
Answer: A,C,D
NEW QUESTION 104
Given code below:
setTimeout (() => (
console.log(1);
). 0);
console.log(2);
New Promise ((resolve, reject )) = > (
setTimeout(() => (
reject(console.log(3));
). 1000);
)).catch(() => (
console.log(4);
));
console.log(5);
What is logged to the console?
- A. 2 1 4 3 5
- B. 1 2 5 3 4
- C. 1 2 4 3 5
- D. 2 5 1 3 4
Answer: D
NEW QUESTION 105
Which two console logs outputs NaN ?
Choose 2 answers
- A. console.log(10/0);
- B. console.log(10/ ''five);
- C. console.log(parseInt('two'));
- D. console.log(10/ Number('5'));
Answer: B,C
NEW QUESTION 106
A developer wants to set up a secure web server with Node.js. The developer creates a directory locally called app-server, and the first file is app-server/index.js Without using any third-party libraries, what should the developer add to index.js to create the secure web server?
- A. const http =require('http');
- B. const https =require('https');
- C. const tls = require('tls');
- D. const server =require('secure-server');
Answer: B
NEW QUESTION 107
Refer to the code below:
Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];
Which two statements result in the array [1, 2, 3, 4, 5] ?
Choose 2 answers
- A. [ ]. concat ( [ ....inArray ] );
- B. [ ]. concat.apply(inArray, [ ]);
- C. [ ]. Concat (... inArray);
- D. [ ]. Concat.apply ([ ], inArray);
Answer: C,D
NEW QUESTION 108
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 109
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 110
Given the following code:
Counter = 0;
const logCounter = () => {
console.log(counter);
);
logCounter();
setTimeout(logCOunter, 1100);
setInterval(() => {
Counter++
logCounter();
}, 1000);
What is logged by the first four log statements?
- A. 0 1 1 2
- B. 0 0 1 2
- C. 0 1 2 2
- D. 0 1 2 3
Answer: A
NEW QUESTION 111
Refer to HTML below:
<p> The current status of an Order: <span id ="status"> In Progress </span> </p>.
Which JavaScript statement changes the text 'In Progress' to 'Completed' ?
- A. document.getElementById("status").Value = 'Completed' ;
- B. document.getElementById("status").innerHTML = 'Completed' ;
- C. document.getElementById(".status").innerHTML = 'Completed' ;
- D. document.getElementById("#status").innerHTML = 'Completed' ;
Answer: B
NEW QUESTION 112
Which option is true about the strict mode in imported modules?
- A. You can only reference notStrict() functions from the imported module.
- B. Add the statement use strict =false; before any other statements in the module to enable not- strict mode.
- C. Add the statement use non-strict, before any other statements in the module to enable not-strict mode.
- D. Imported modules are in strict mode whether you declare them as such or not.
Answer: A
NEW QUESTION 113
Which code statement below correctly persists an objects in local Storage ?
- A. const setLocalStorage = (storageKey, jsObject) => {
window.localStorage.persist(storageKey, jsObject);
} - B. const setLocalStorage = (storageKey, jsObject) => {
window.localStorage.setItem(storageKey, JSON.stringify(jsObject));
} - C. const setLocalStorage = ( jsObject) => {
window.localStorage.setItem(jsObject);
} - D. const setLocalStorage = ( jsObject) => {
window.localStorage.connectObject(jsObject));
}
Answer: B
Explanation:
NEW QUESTION 114
Refer to the code snippet below:
Let array = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++)
if (array[i] === 4) {
array.splice(i, 1);
}
}
What is the value of array after the code executes?
- A. [1, 2, 3, 5]
- B. [1, 2, 3, 4, 5, 4, 4]
- C. [1, 2, 3, 4, 4, 5, 4]
- D. [1, 2, 3, 4, 5, 4]

Answer: C
NEW QUESTION 115
......
Verified CRT-600 Dumps Q&As - 1 Year Free & Quickly Updates: https://www.dumpstests.com/CRT-600-latest-test-dumps.html
Latest Salesforce CRT-600 Certification Practice Test Questions: https://drive.google.com/open?id=1In_v2ygQhP0DOxnWCFlfMvz8iCK0nPXY