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

Page: 1 / 14
Total 224 questions
Question 1

developer removes the HTML class attribute from the checkout button, so now it is

simply:

.

There is a test to verify the existence of the checkout button, however it looks for a button with

class= ''blue''. The test fails because no such button is found.

Which type of test category describes this test?



Answer : D


Question 2

Which javascript methods can be used to serialize an object into a string and deserialize

a JSON string into an object, respectively?



Answer : A


Question 3

Refer to the code below:

Considering that JavaScript is single-threaded, what is the output of line 08 after the code executes?



Answer : B


Question 4

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 ?



Answer : D


Question 5

The developer wants to test this code:

Const toNumber =(strOrNum) => strOrNum;

Which two tests are most accurate for this code?

Choose 2 answers



Answer : A, C


Question 6

Which statement can a developer apply to increment the browser's navigation history without a page refresh?

Which statement can a developer apply to increment the browser's navigation history without a page refresh?



Answer : C


Question 7

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?



Answer : C


Page:    1 / 14   
Total 224 questions