Free CRT-600 Practice Test Questions and Answers (2026)
Q: 1
A developer has an ErrorHandler module that contains multiple functions.
What kind of export should be leveraged so that multiple functions can be used?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 2
Which code statement below correctly persists an objects in local Storage ?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 3
A developer needs to test this function:
01 const sum3 = (arr) => (
02 if (!arr.length) return 0,
03 if (arr.length === 1) return arr[0],
04 if (arr.length === 2) return arr[0] + arr[1],
05 return arr[0] + arr[1] + arr[2],
06 );
Which two assert statements are valid tests for the function?
Choose 2 answers
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) …`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) …`);
14 }
15 const console16bit = new Console16bit(‘ SNEGeneziz ’);
16 console16bit.load(‘ Super Nonic 3x Force ’);
What should a developer insert at line 15 to output the following message using the
method ?
> SNEGeneziz is loading a cartridge game: Super Monic 3x Force . . .
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
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:
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
Refer to the code below:
Function changeValue(obj) {
Obj.value = obj.value/2;
}
Const objA = (value: 10);
Const objB = objA;
changeValue(objB);
Const result = objA.value;
What is the value of result after the code executes?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
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?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
Refer to the code below:
01 const server = require(‘server’);
02 /* Insert code here */
A developer imports a library that creates a web server. The imported library uses events and
callbacks to start the servers
Which code should be inserted at the line 03 to set up an event and start the web server ?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
A developer creates an object where its properties should be immutable and prevent
properties from being added or modified.
Which method should be used to execute this business requirement ?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 10
Given the JavaScript below:
01 function filterDOM (searchString) {
02 const parsedSearchString = searchString && searchString.toLowerCase() ;
03 document.quesrySelectorAll(‘ .account’ ) . forEach(account => (
04 const accountName = account.innerHTML.toLOwerCase();
05 account. Style.display = accountName.includes(parsedSearchString) ? /*Insert
code*/;
06 )};
07 }
Which code should replace the placeholder comment on line 05 to hide accounts that do
not match the search string?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 11
Which two console logs outputs NaN ?
Choose 2 answers
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 12
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code
statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 13
A developer is working on an ecommerce website where the delivery date is dynamically
calculated based on the current day. The code line below is responsible for this calculation.
Const deliveryDate = new Date ();
Due to changes in the business requirements, the delivery date must now be today’s
date + 9 days.
Which code meets this new requirement?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 14
A developer wants to set up a secure web server with Node.js. The developer creates a
directory locally called app-server, and the first file is app-server/index.js
Without using any third-party libraries, what should the developer add to index.js to create the
secure web server?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 15
developer wants to use a module named universalContainersLib and them call functions
from it.
How should a developer import every function from the module and then call the fuctions foo
and bar ?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 16
Refer the code below.
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();
Your Answer
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 17
Refer to the string below.
Const str=’Salesforce’;
Which two statements results in the word 'Sales'?
Your Answer
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 18
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?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 19
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];
Which two lines of code result in a second array, arr2 being created such that arr2 is not
a reference to arr1?
Which two lines of code result in a second array, arr2 being created such that arr2 is not
a reference to arr1?Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 20
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
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 20