CRT-600 Exam Questions Get Updated [2023] with Correct Answers
Practice CRT-600 Questions With Certification guide Q&A from Training Expert SureTorrent
Salesforce CRT-600 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
NEW QUESTION 61
The developer wants to test the array shown:
const arr = Array(5).fill(0)
Which two tests are the most accurate for this array ?
Choose 2 answers:
- A. console.assert( arr.length === 5 );
- B. console.assert(arr[0] === 0 && arr[ arr.length] === 0);
- C. arr.forEach(elem => console.assert(elem === 0)) ;
- D. console.assert (arr.length >0);
Answer: A,C
NEW QUESTION 62
Given the code below:
Which method can be used to provide a visual representation of the list of users and to allow sorting by the name or email attribute?
- A. console.table(usersList) ;
- B. console.group(usersList) ;
- C. console.groupCol lapsed (usersList) ;
- D. console.info(usersList) ;
Answer: B
NEW QUESTION 63
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. 02413
- B. 02431
- C. 0
- D. 01234
Answer: A
NEW QUESTION 64
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?
- A. console.log(10/0);
- B. console.log(10/ ''five);
- C. console.log(10/ Number('5'));
- D. console.log(parseInt('two'));
Answer: C
NEW QUESTION 65
Refer to the code below:
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 rejected
- B. When resolved or rejected
- C. WHen resolved
- D. When resolved and settled
Answer: B
NEW QUESTION 66
Refer to the following code block:
class Animal{
constructor(name){
this.name = name;
}
makeSound(){
console.log(`${this.name} is making a sound.`)
}
}
class Dog extends Animal{
constructor(name){
super(name)
this.name = name;
}
makeSound(){
console.log(`${this.name} is barking.`)
}
}
let myDog = new Dog('Puppy');
myDog.makeSound();
What is the console output?
- A. Puppy is barking
Answer: A
NEW QUESTION 67
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?
- A. 1.2.3
- B. 1.1.4
- C. 2.0.0
- D. 1.2.0
Answer: D
NEW QUESTION 68
A developer has an is Dog function that takes one argument cat. They want to schedule the function to run every minute.
What is the correct syntax for scheduling this function?
- A. setInterval(isDog, 60000,'cat');
Answer: A
NEW QUESTION 69
Refer to code below:
Let first = 'who';
Let second = 'what';
Try{
Try{
Throw new error('Sad trombone');
}catch (err){
First ='Why';
}finally {
Second ='when';
} catch (err) {
Second ='Where';
}
What are the values for first and second once the code executes ?
- A. First is who and second is where
- B. First is Who and second is When
- C. First is why and second is when
- D. First is why and second is where
Answer: C
NEW QUESTION 70
A developer wants to define a function log to be used a few times on a single-file JavaScript script.
01 // Line 1 replacement
02 console.log('"LOG:', logInput);
03 }
Which two options can correctly replace line 01 and declare the function for use?
Choose 2 answers
- A. function leg(logInput) {
- B. function log = (logInput) {
- C. const log = (logInput) => {
- D. const log(loginInput) {
Answer: A,C
NEW QUESTION 71
Given the following code:
What will be the first four numbers logged?
- A. 0112
- B. 0123
- C. 0122
- D. 0012
Answer: A
NEW QUESTION 72
Refer to the string below.
Const str='Salesforce';
Which two statements results in the word 'Sales'?
Answer:
Explanation:
Str.substring(0,5);
Str.substr(0,5);
NEW QUESTION 73
Given the HTML below:
Which statement adds the priority-account css class to the Applied Shipping row?
- A. document.querySelector('#row-as').classList.add('priority-account');
Answer: A
NEW QUESTION 74
The developer has a function that prints "Hello" to an input name. To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".
What can the developer do to change the code to print "Hello World" ?
- A. Change line 7 to ) () ;
- B. Change line 2 to console.log('Hello' , name() );
- C. Change line 5 to function world ( ) {
- D. Change line 9 to sayHello(world) ();
Answer: B
NEW QUESTION 75
Refer the following code
what is the value of array after code executes?
- A. [ 1, 2, 3, 5 ]
Answer: A
NEW QUESTION 76
......
Prepare Top Salesforce CRT-600 Exam Audio Study Guide Practice Questions Edition: https://www.suretorrent.com/CRT-600-exam-guide-torrent.html
Free Salesforce CRT-600 Test Practice Test Questions Exam Dumps: https://drive.google.com/open?id=1U9xMcvpCp6IdegKjE17CnIYB9jxC-iH9