[Dec-2021 Newly Released] Pass CRT-600 Exam - Real Questions & Answers [Q84-Q100]

Share

[Dec-2021 Newly Released] Pass CRT-600 Exam - Real Questions & Answers

Pass CRT-600 Review Guide, Reliable CRT-600 Test Engine


Salesforce CRT-600 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Asynchronous Programming
  • Callback Functions
  • Promises and Async/Await
Topic 2
  • Creating Objects, Object Prototypes, Defining Functions
Topic 3
  • Debugging and Error Handling
  • Throwing and Catching Errors
  • Working with the Console
Topic 4
  • Browser and Events
  • Document Object Model
  • Browser Dev Tools
Topic 5
  • Type Conversion (explicit and implicit)
  • Working with JSON
  • Data Types and Variables
Topic 6
  • JavaScript Basics
  • Working with Strings, Numbers, and Dates
Topic 7
  • Server Side JavaScript Debugging in Node.js, Node.js Libraries
Topic 8
  • Objects, Functions, and Classes
  • Using JavaScript Modules
  • Declaring Classes

 

NEW QUESTION 84
developer publishes a new version of a package with new features that do not break backward compatibility. The previous version number was 1.1.3.
Following semantic versioning format, what should the new package version number be?

  • A. 1.1.4
  • B. 1.2.0
  • C. 1.2.3
  • D. 2.0.0

Answer: B

 

NEW QUESTION 85
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?

  • A. ' new york '
  • B. Undefined
  • C. ' New York '
  • D. An error

Answer: A

 

NEW QUESTION 86
A developer has two ways to write a function:
Option A:
function Monster() {
This.growl = () => {
Console.log ("Grr!");
}
}
Option B:
function Monster() {};
Monster.prototype.growl =() => {
console.log("Grr!");
}
After deciding on an option, the developer creates 1000 monster objects.
How many growl methods are created with Option A Option B?

  • A. 1000 growl method is created for Option A. 1 growl methods are created for Option B.
  • B. 1000 growl methods are created regardless of which option is used.
  • C. 1 growl method is created regardless of which option is used.
  • D. 1 growl method is created for Option A. 1000 growl methods are created for Option B.

Answer: A

 

NEW QUESTION 87
Refer to the expression below:
Let x = ('1' + 2) == (6 * 2);
How should this expression be modified to ensure that evaluates to false?

  • A. Let x = (1 + 2) == ( '6' / 2);
  • B. Let x = (1 + 2 ) == ( 6 / 2);
  • C. Let x = ('1' + 2) == ( 6 * 2);
  • D. Let x = ('1' + ' 2') == ( 6 * 2);

Answer: C

 

NEW QUESTION 88
Which three browser specific APIs are available for developers to persist data between page loads ?
Choose 3 answers

  • A. Global variables
  • B. indexedDB
  • C. Cookies
  • D. localStorage.
  • E. IIFEs

Answer: B,D,E

 

NEW QUESTION 89
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 ?

  • A. console.log( 'Listening on ', port) ;
  • B. Server.start ();
  • C. server()
  • D. server.on(' connect ' , ( port) => {
    console.log('Listening on ' , port) ;})
  • E. serve(( port) => (

Answer: D

 

NEW QUESTION 90
Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?

  • A. Let numberValue = (Number)textValue;
  • B. let numberValue = Number(textValue);
  • C. Let numberValue = Integer(textValue);
  • D. Let numberValue = textValue.toInteger();

Answer: B

 

NEW QUESTION 91
Refer to the code below:
Const searchTest = 'Yay! Salesforce is amazing!" ;
Let result1 = searchText.search(/sales/i);
Let result 21 = searchText.search(/sales/i);
console.log(result1);
console.log(result2);
After running this code, which result is displayed on the console?

  • A. > 5 >undefined
  • B. > 5 > -1
  • C. > 5 > 0
  • D. > true > false

Answer: A

Explanation:

 

NEW QUESTION 92
Which function should a developer use to repeatedly execute code at a fixed interval ?

  • A. setIntervel
  • B. setPeriod
  • C. setInteria
  • D. setTimeout

Answer: A

 

NEW QUESTION 93
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers

  • A. The developer missed the option --add when adding the dependency.
  • B. The developer missed the option --save when adding the dependency.
  • C. The developer added the dependency as a dev dependency, and
    NODE_ENV is set to production.
  • D. The developer added the dependency as a dev dependency, and
    NODE_ENV
    Is set to production.

Answer: B,C,D

 

NEW QUESTION 94
A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a good experience, a script named personaliseContext needs to be executed when the webpage is fully loaded (HTML content and all related files ), in order to do some custom initialization.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

  • A. window.addEventListener('onload', personalizeWebsiteContext);
  • B. window.addEventListener('load',personalizeWebsiteContext);
  • C. Document.addEventListener('''DOMContextLoaded' , personalizeWebsiteContext);
  • D. document.addEventListener(''onDOMContextLoaded', personalizeWebsiteContext);

Answer: B

 

NEW QUESTION 95
A developer wants to create an object from a function in the browser using the code below:
Function Monster() { this.name = 'hello' };
Const z = Monster();
What happens due to lack of the new keyword on line 02?

  • A. Window.m is assigned the correct object.
  • B. The z variable is assigned the correct object.
  • C. The z variable is assigned the correct object but this.name remains undefined.
  • D. Window.name is assigned to 'hello' and the variable z remains undefined.

Answer: D

 

NEW QUESTION 96
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?

  • A. D
  • B. B
  • C. C
  • D. A

Answer: D

 

NEW QUESTION 97
is below:
<input type="file" onchange="previewFile()">
<img src="" height="200" alt="Image Preview..."/>
The JavaScript portion is:
01 function previewFile(){
02 const preview = document.querySelector('img');
03 const file = document.querySelector('input[type=file]').files[0];
04 //line 4 code
05 reader.addEventListener("load", () => {
06 preview.src = reader.result;
07 },false);
08 //line 8 code
09 }
In lines 04 and 08, which code allows the user to select an image from their local computer , and to display the image in the browser?

  • A. 04 const reader = new FileReader();
    08 if (file) URL.createObjectURL(file);
  • B. 04 const reader = new FileReader();
    08 if (file) reader.readAsDataURL(file);
  • C. 04 const reader = new File();
    08 if (file) reader.readAsDataURL(file);
  • D. 04 const reader = new File();
    08 if (file) URL.createObjectURL(file);

Answer: B

 

NEW QUESTION 98
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from '/path/PricePrettyPrint.js';
Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?

  • A. printPrice must be be a named export
  • B. printPrice must be the default export
  • C. printPrice must be a multi exportc
  • D. printPrice must be an all export

Answer: B

 

NEW QUESTION 99
Refer to the code below:
new Promise((resolve, reject) => {
const fraction = Math.random();
if( fraction >0.5) reject("fraction > 0.5, " + fraction);
resolve(fraction);
})
.then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() => console.log(" when am I called?"));

When does Promise.finally on line 08 get called?

  • A. WHen resolved
  • B. When rejected
  • C. When resolved or rejected
  • D. When resolved and settled

Answer: C

 

NEW QUESTION 100
......

100% Free CRT-600 Daily Practice Exam With 160 Questions: https://www.fast2test.com/CRT-600-premium-file.html

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어