Free Salesforce CRT-600 Exam Actual Questions

The questions for CRT-600 were last updated On Nov 4, 2024

Question No. 1

Refer to the code below:

Async funct on functionUnderTest(isOK) {

If (isOK) return 'OK' ;

Throw new Error('not OK');

)

Which assertion accurately tests the above code?

Show Answer Hide Answer
Correct Answer: D

Question No. 2

Refer to the following code:

class Vehicle{

constructor(plate){

this.plate = plate;

}

}

class Truck extends Vehicle{

constructor(plate, weight){

//Missing code

this.weight = weight;

}

displayWeight(){

console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);

}

}let myTruck = new Truck('123Ab',5000);

myTruck.displayWeight();

Which statement should be added to missing code for the code to display 'The truck 123AB has a

weight of 5000lb.

Show Answer Hide Answer
Correct Answer: A

Question No. 3

After user acceptance testing, the developer is asked to change the webpage background based on user's location. This change was implemented and deployed for testing.

The tester reports that the background is not changing, however it works as required when viewing on the developer's computer.

Which two actions will help determine accurate results?

Choose 2 answers

Show Answer Hide Answer
Correct Answer: A, D

Question No. 4

A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.

The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server, js file will start the server. the developer wants to debug the Node.js server only using the terminal.

Which command can the developer use to open the CLI debugger in their current terminal window?

Show Answer Hide Answer
Correct Answer: B

Question No. 5

Refer to the code below:

console.log(''start);

Promise.resolve('Success') .then(function(value){

console.log('Success');

});

console.log('End');

What is the output after the code executes successfully?

Show Answer Hide Answer
Correct Answer: C