Salesforce Prepare for your JavaScript Developer I Certification CRT-600 Exam Practice Test

Page: 1 / 14
Total 224 questions
Question 1

Refer to the code declarations below:

Which three expressions return the string JavaScript?

Choose 3 answers



Answer : B, D, E


Question 2

A developer has code that calculates a restaurant bill, but generates incorrect answers

while testing the code:

function calculateBill ( items ) {

let total = 0;

total += findSubTotal(items);

total += addTax(total);

total += addTip(total);

return total;

}

Which option allows the developer to step into each function execution within calculateBill?



Answer : A


Question 3

Refer to the code below:

Let textValue = '1984';

Which code assignment shows a correct way to convert this string to an integer?



Answer : A


Question 4

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?



Answer : D


Question 5

Teams at Universal Containers (UC) work on multiple JavaScript projects at the same time.

UC is thinking about reusability and how each team can benefit from the work of others.

Going open-source or public is not an option at this time.

Which option is available to UC with npm?



Answer : A


Question 6

Which option is a core Node,js module?



Answer : A


Question 7

Refer to the code below:

function changeValue(param) {

Param =5;

}

Let a =10;

Let b =5;

changeValue(b);

Const result = a+ '' - ''+ b;

What is the value of result when code executes?



Answer : A


Page:    1 / 14   
Total 224 questions