Salesforce - Black Friday 2022 - Limited Time Discount Offer - Ends In 00:00:00 Coupon code: 30OFF
  1. Home
  2. Salesforce
  3. CRT-600 Exam

Free CRT-600 Questions for Salesforce CRT-600 Exam as PDF & Practice Test Software

Page:    1 / 14   
Total 224 questions

Question 1

Refer to the code below:

let o = {

get js() {

let city1 = String('st. Louis');

let city2 = String(' New York');

return {

firstCity: city1.toLowerCase(),

secondCity: city2.toLowerCase(),

}

}

}

What value can a developer expect when referencing o.js.secondCity?



Answer : B

Question 2

Refer to the following code:

01 function Tiger(){

02 this.Type = 'Cat';

03 this.size = 'large';

04 }

05

06 let tony = new Tiger();

07 tony.roar = () =>{

08 console.log('They\'re great1');

09 };

10

11 function Lion(){

12 this.type = 'Cat';

13 this.size = 'large';

14 }

15

16 let leo = new Lion();

17 //Insert code here

18 leo.roar();

Which two statements could be inserted at line 17 to enable the function call on line 18?

Choose 2 answers.



Answer : A, C

Question 3

At Universal Containers, every team has its own way of copying JavaScript objects. The

code

Snippet shows an implementation from one team:

Function Person() {

this.firstName = ''John'';

this.lastName = 'Doe';

This.name =() => (

console.log('Hello $(this.firstName) $(this.firstName)');

)}

Const john = new Person ();

Const dan = JSON.parse(JSON.stringify(john));

dan.firstName ='Dan';

dan.name();

What is the Output of the code execution?



Answer : C

Question 4

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

simply:

<button>Checkout</button>.

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 5

Refer to the HTML below:

<ul>

<li>Leo</li>

<li>Tony</li>

<li>Tiger</li>

</ul>

Which JavaScript statement results in changing '' Tony'' to ''Mr. T.''?



Answer : D

Question 6

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?



Answer : B

Page:    1 / 14   
Total 224 questions