CRT-600 Study Guide Brilliant CRT-600 Exam Dumps PDF [Q77-Q97]

Rate this post

CRT-600 Study Guide Brilliant CRT-600 Exam Dumps PDF

View CRT-600 Exam Question Dumps With Latest Demo

QUESTION 77
Which option is a core Node,js module?

 
 
 
 

QUESTION 78
Given the code below:

What is logged to the console’

 
 
 
 

QUESTION 79
A Developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three number in the array, The test passes:
Let res = sum2([1, 2, 3 ]) ;
console.assert(res === 6 );
Res = sum3([ 1, 2, 3, 4]);
console.assert(res=== 6);
A different developer made changes to the behavior of sum3 to instead sum all of the numbers present in the array. The test passes:
Which two results occur when running the test on the updated sum3 function ?
Choose 2 answers

 
 
 
 

QUESTION 80
A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method, Calculator query, that returns an array. The developer does not need to verify how many times the method has been called.
Which two test approaches describe the requirement?
Choose 2 answers

 
 
 
 

QUESTION 81
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?

 
 
 
 

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

 
 
 
 
 

QUESTION 83
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?

 
 
 
 

QUESTION 84
A developer has two ways to write a function:
Option A:
function Monster(){
this.growl = ()=>{
console.log(‘Grr!’);
}
}
Option B:
function Monster(){};
Monster.prototype.growl = ()=>{
console.log(‘Grr!’);
}
After deciding on an option, the developer creates 1000 monster objects.
How many growl methods are created with Option A and Option B?

 
 
 
 

QUESTION 85
Refer to code below:
Const objBook = {
Title: ‘Javascript’,
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = ‘Robert’;
What are the values of objBook and newObjBook respectively ?

 
 
 
 

QUESTION 86
Refer to the following code:

What is the value of output on line 11?

 
 
 
 

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

 
 
 
 

QUESTION 88
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?

 
 
 
 

QUESTION 89
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?

 
 
 
 

QUESTION 90
Which two console logs outputs NaN ?
Choose 2 answers

 
 
 
 

QUESTION 91
is below:
<input type=”file” onchange=”previewFile()”>
<img src=”” height=”200″ alt=”Image Preview…”/>
The JavaScript portion is:
01 function previewFile(){
02 const preview = document.querySelector(‘img’);
03 const file = document.querySelector(‘input[type=file]’).files[0];
04 //line 4 code
05 reader.addEventListener(“load”, () => {
06 preview.src = reader.result;
07 },false);
08 //line 8 code
09 }
In lines 04 and 08, which code allows the user to select an image from their local computer , and to display the image in the browser?

 
 
 
 

QUESTION 92
Why would a developer specify a package.jason as a developed forge instead of a dependency ?

 
 
 
 

QUESTION 93
A developer is asked to fix some bugs reported by users. To do that, the developer adds a breakpoint for debugging.
Function Car (maxSpeed, color){
This.maxspeed =masSpeed;
This.color = color;
Let carSpeed = document.getElementById(‘ CarSpeed’);
Debugger;
Let fourWheels =new Car (carSpeed.value, ‘red’);
When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console ?
Choose 2 answers:

 
 
 
 

QUESTION 94
Refer to the following code:

What is the output of line 11?

 
 
 
 

QUESTION 95
Cloud Kicks has a class to represent items for sale in an online store, as shown below:
Class Item{
constructor (name, price){
this.name = name;
this.price = price;
}
formattedPrice(){
return ‘s’ + String(this.price);}}
A new business requirement comes in that requests a ClothingItem class that should have all of the properties and methods of the Item class but will also have properties that are specific to clothes.
Which line of code properly declares the clothingItem class such that it inherits from Item?

 
 
 
 

QUESTION 96
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 ?

 
 
 
 

QUESTION 97
Refer to the code declarations below:

Which three expressions return the string JavaScript?
Choose 3 answers

 
 
 
 
 

Free CRT-600 Test Questions Real Practice Test Questions: https://www.dumpleader.com/CRT-600_exam.html

Leave a Reply

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

Enter the text from the image below