Free CRT-600 Practice Test Questions and Answers (2026)

View Mode
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
24 comments in the community discussion
4
B . Only named exports let you explicitly export and import multiple functions from a module. Default (D) is just for a single value, not for several top-level functions. Saw similar wording in practice tests too. Some people get tripped up thinking default can do this, but not in this context.
2
B tbh
Q: 2
Which code statement below correctly persists an objects in local Storage ?
Options
15 comments in the community discussion
4
Maybe A, since only that option actually stringifies the object before storing. D looks like a trap with that fake persist method.
1
A tbh
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
20 comments in the community discussion
Its A and C since those assertions are legit JS syntax for console.assert, just checking structure not pass/fail. The others have errors in how the statement's written. Pretty sure that's what "valid test" means here, but I'm open to other takes.
Probably A and C. Both use valid JS syntax for console.assert, with the test expression fully inside the parens. B trips people up since it's comparing outside the assert, and D isn't even valid JS. Not 100% but that's how I see it, correct me if I'm off.
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
15 comments in the community discussion
1
I don’t think D is right here. The curly brace after the method name in D isn’t valid JavaScript for defining prototype methods, that’s more like class syntax. B overrides the load method on the prototype properly, so all Console16bit instances pick up the change. Pretty sure B is what they want, unless
1
My vote is B. Syntax fits prototype override, but not 100 percent sure so open to other thoughts.
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
18 comments in the community discussion
2
C/D? Pretty sure at the breakpoint you can inspect carSpeed (the element) and access localStorage in the console, since global objects are always available. Haven't seen exam questions specifically mention instance counts or object tracking like B. Anyone else seen something similar on the exam reports?
1
Hate how these exam questions get so nitpicky about scope and timing. Option C and D.
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
20 comments in the community discussion
1
C result ends up 5. Trick answers get tossed if exam follows JS object reference logic.
1
Probably C. Both objA and objB point to the same object, so changing objB affects objA.value too. Pretty sure unless we're supposed to read into capitalization typos in the function name. Anyone disagree?
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
14 comments in the community discussion
7
Option C JSON.stringify only copies data, not functions, so dan.name is undefined. Trying to call it throws a TypeError. Saw a similar question in practice sets.
2
Option C. pretty sure about this since JSON.stringify drops functions. Official guide and dev playgrounds both cover this behavior.
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
18 comments in the community discussion
2
I don't think it's B. C should work since calling server() would start the server directly, especially if the library's main export is a function. The event/callback thing in B seems a bit much for just booting up. Maybe I'm missing something subtle?
1
C or B? Not totally sure since if the library exports a function, C (server()) sometimes starts it directly. But B fits the event/callback style Node uses. I'd probably pick B unless docs say otherwise.
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
27 comments in the community discussion
5
Option D is right. Object.freeze() makes the object immutable so properties can't be added or changed, which matches exactly what’s asked. Nice clear question-see this kind pop up a lot in practice sets.
1
Its D, had something like this in a mock and it was Object.freeze().
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
21 comments in the community discussion
5
Option B. The question tries to trip you up with the casing on 'Block', but browsers handle it fine and 'none' is what actually hides the element in CSS. A is wrong because 'name' isn’t a display value.
1
I get why some might pick C, but display only accepts 'block' or 'none' to actually show or hide. Using 'visible' or 'hidden' isn't valid for display property, that's for visibility. Pretty sure it's B but open to correction.
Q: 11
Which two console logs outputs NaN ? Choose 2 answers
Options
3 comments in the community discussion
2
D tbh, I picked D and B based on similar practice sets from the official guide.
1
B. C. Only those will actually log NaN, pretty sure. If you disagree let me know.
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
6 comments in the community discussion
8
Makes sense to go with D here. console.assert is built in, works on both environments, and only logs when the condition fails, which matches what they're asking. That import requirement seems odd though. Anyone disagree?
2
Option D
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
3 comments in the community discussion
Probably A, seen similar in practice tests and it matches how setDate works for adding days. Handy example, question is clear.
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
5 comments in the community discussion
D or C? I usually go with http for a basic server, so D felt right but not sure if that's secure out of the box. Maybe C for TLS if it’s about security. Someone clarify if I'm missing something.
D imo
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
6 comments in the community discussion
A works despite the typo. The use of import * as lib is the ES6 way to import everything, then calling lib.foo() and lib.bar() fits. Pretty sure that's what they're after, even though “ad” should be “as”.
C or D? Both seem off, but A has that 'ad' typo. Not sure which one the exam wants here.
Q: 16
Refer the code below. x=3.14; function myfunction() { "use strict"; y=x; } z=x; myFunction();
Your Answer
5 comments in the community discussion
6
REFERENCEERROR Really clear code snippet for testing case sensitivity in JS.
3
Anyone else seen similar case-sensitive function name questions on their exam? Looks like ReferenceError would be triggered here due to the naming mismatch.
Q: 17
Refer to the string below. Const str=’Salesforce’; Which two statements results in the word 'Sales'?
Your Answer
6 comments in the community discussion
9
slice(0,5) or substring(0,5) both work. Official JS docs and hands-on coding labs cover this type of string method question a lot.
5
Yep, both str.slice(0,5) and str.substring(0,5) pull out 'Sales'.
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
5 comments in the community discussion
Yeah, it’s B here.
B, not A
Q: 19
Refer to the following array: Let arr1 = [ 1, 2, 3, 4, 5 ]; CRT-600 question Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?
Options
6 comments in the community discussion
2
A and B for sure. Had something like this in a mock before, slice() and Array.from() both return new arrays so arr2 isn't just referencing arr1. C's just a pointer copy, and D actually mutates arr1 itself. Pretty confident but open to correction.
1
B tbh. A looks like a decoy here since I thought slice could still reference parts of the original if not careful.
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
6 comments in the community discussion
1
Option A and D. Clearing the cache makes sense, and checking refresh settings might help if the page isn't updating right away.
A, D
Question 1 of 20

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE