September 27, 2024

2022 CRT-600 Question Bank Free PDF Download Recently Updated Questions [Q17-Q37]

4/5 - (1 vote)

2022 CRT-600 Question Bank: Free PDF Download Recently Updated Questions

CRT-600 Certification Exam Dumps with 160 Practice Test Questions

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

 
 
 
 

NEW QUESTION 18
Which three browser specific APIs are available for developers to persist data between page loads ?
Choose 3 answers

 
 
 
 
 

NEW QUESTION 19
A developer wrote a fizzbuzz function that when passed in a number, returns the following:
* ‘Fizz’ if the number is divisible by 3.
* ‘Buzz’ if the number is divisible by 5.
* ‘Fizzbuzz’ if the number is divisible by both 3 and 5.
* Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuzz function?
Choose 2 answers

 
 
 
 

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

 
 
 
 

NEW QUESTION 21
Given the following code:
Let x =null;
console.log(typeof x);
What is the output of the line 02?

 
 
 
 

NEW QUESTION 22
Which function should a developer use to repeatedly execute code at a fixed interval ?

 
 
 
 

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

 
 
 
 

NEW QUESTION 24
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’ ?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

NEW QUESTION 27
A developer wants to iterate through an array of objects and count the objects and count the objects whose property value, name, starts with the letter N.
Const arrObj = [{“name” : “Zach”} , {“name” : “Kate”},{“name” : “Alise”},{“name” : “Bob”},{“name” :
“Natham”},{“name” : “nathaniel”}
Refer to the code snippet below:
01 arrObj.reduce(( acc, curr) => {
02 //missing line 02
02 //missing line 03
04 ). 0);
Which missing lines 02 and 03 return the correct count?

 
 
 
 

NEW QUESTION 28
Refer to the following code:
function test (val) {
If (val === undefined) {
return ‘Undefined values!’ ;
}
if (val === null) {
return ‘Null value! ‘;
}
return val;
}
Let x;
test(x);
What is returned by the function call on line 13?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

NEW QUESTION 31
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];

Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?

 
 
 
 

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

 
 
 
 
 

NEW QUESTION 33
developer wants to use a module named universalContainersLib and them call functions from it.
How should a developer import every function from the module and then call the fuctions foo and bar ?

 
 
 
 

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

 
 
 
 

NEW QUESTION 35
Given two expressions var1 and var2. What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ?
Choose 2 answers:

 
 
 
 

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

 
 
 
 

NEW QUESTION 37
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 make this code work as expected?

 
 
 
 

Salesforce CRT-600 Exam Syllabus Topics:

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

 

New CRT-600 Exam Dumps with High Passing Rate: https://www.prepawaypdf.com/Salesforce/CRT-600-practice-exam-dumps.html

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter the text from the image below