[Dec 30, 2021] Get Free Updates Up to 365 days On Developing CRT-600 Braindumps [Q80-Q99]

Share

[Dec 30, 2021] Get Free Updates Up to 365 days On Developing CRT-600 Braindumps

Best Quality Salesforce CRT-600 Exam Questions


Salesforce CRT-600 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Asynchronous Programming
  • Callback Functions
  • Promises and Async/Await
Topic 2
  • Debugging and Error Handling
  • Throwing and Catching Errors
  • Working with the Console
Topic 3
  • Type Conversion (explicit and implicit)
  • Working with JSON
  • Data Types and Variables
Topic 4
  • Server Side JavaScript Debugging in Node.js, Node.js Libraries
Topic 5
  • Creating Objects, Object Prototypes, Defining Functions

 

NEW QUESTION 80
A developer creates a class that represents a blog post based on the requirement that a Post should have a body author and view count.
The Code shown Below:
Class Post {
// Insert code here
This.body =body
This.author = author;
this.viewCount = viewCount;
}
}
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instanceof a Post with the three attributes correctly populated?

  • A. constructor() {
  • B. Function Post (body, author, viewCount) {
  • C. constructor (body, author, viewCount) {
  • D. super (body, author, viewCount) {

Answer: C

 

NEW QUESTION 81
A developer is leading the creation of a new browser application that will serve a single page application. The team wants to use a new web framework Minimalsit.js. The Lead developer wants to advocate for a more seasoned web framework that already has a community around it.
Which two frameworks should the lead developer advocate for?
Choose 2 answers

  • A. Vue
  • B. Express
  • C. Koa
  • D. Angular

Answer: B,D

 

NEW QUESTION 82
Which code statement correctly retrieves and returns an object from localStorage?

  • A. const retrieveFromLocalStorage = (storageKey) =>{
    return JSON.parse(window.localStorage.getItem(storageKey));
    }
  • B. const retrieveFromLocalStorage = () =>{
    return JSON.stringify(window.localStorage.getItem(storageKey));
    }
  • C. const retrieveFromLocalStorage = (storageKey) =>{
    return window.localStorage.getItem(storageKey);
    }
  • D. const retrieveFromLocalStorage = (storageKey) =>{
    return window.localStorage[storageKey];
    }

Answer: A

 

NEW QUESTION 83
A developer is debugging a web server that uses Node.js The server hits a runtimeerror every third request to an important endpoint on the web server.
The developer added a break point to the start script, that is at index.js at he root of the server's source code. The developer wants to make use of chrome DevTools to debug.
Which command can be run to access DevTools and make sure the breakdown is hit ?

  • A. node -i index.js
  • B. Node --inspect index.js
  • C. Node inspect index.js
  • D. Node --inspect-brk index.js

Answer: B

 

NEW QUESTION 84
Universal Containers recently launched its new landing page to host a crowd-funding campaign. The page uses an external library to display some third-party ads. Once the page is fully loaded, it creates more than 50 new HTML items placed randomly inside the DOM, like the one in the code below:

All the elements includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.

  • A. Use the browser to execute a script that removes all the element containing the class ad-library-item.
  • B. Use the browser console to execute a script that prevents the load event to be fired.
  • C. Use the DOM inspector to prevent the load event to be fired.
  • D. Use the DOM inspector to remove all the elements containing the class ad-library-item.

Answer: A

 

NEW QUESTION 85
Refer to the code below:
Const resolveAfterMilliseconds = (ms) => Promise.resolve (
setTimeout (( => console.log(ms), ms ));
Const aPromise = await resolveAfterMilliseconds(500);
Const bPromise = await resolveAfterMilliseconds(500);
Await aPromise, wait bPromise;
What is the result of running line 05?

  • A. aPromise and bPromise run sequentially.
  • B. aPromise and bPromise run in parallel.
  • C. Neither aPromise or bPromise runs.
  • D. Only aPromise runs.

Answer: C

 

NEW QUESTION 86
A test has a dependency on database.query. During the test the dependency is replaced with an object called database with the method, query, that returns an array. The developer needs to verify how many times the method was called and the arguments used each time.
Which two test approaches describe the requirement?
Choose 2 answers

  • A. White box
  • B. Integration
  • C. Mocking
  • D. Black box

Answer: A,C

 

NEW QUESTION 87
A Developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three number in the array, The test passes:
Let res = sum2([1, 2, 3 ]) ;
console.assert(res === 6 );
Res = sum3([ 1, 2, 3, 4]);
console.assert(res=== 6);
A different developer made changes to the behavior of sum3 to instead sum all of the numbers present in the array. The test passes:
Which two results occur when running the test on the updated sum3 function ?
Choose 2 answers

  • A. The line 05 assertion fails.
  • B. The line 02 assertion fails
  • C. The line 02 assertion passes.
  • D. The line 05 assertion passes.

Answer: A,C

 

NEW QUESTION 88
Refer to the code below:

Line 05 causes an error.
What are the values of greeting and salutation once code completes?

  • A. Greeting is Hello and salutation is Hello, Hello.
  • B. Greeting is Hello and salutation is I say hello.
  • C. Greeting is Goodbye and salutation is I say Hello.
  • D. Greeting is Goodbye and salutation is Hello, Hello.

Answer: A

 

NEW QUESTION 89
Refer to the code below:
let sayHello = () => {
console.log ('Hello, world!');
};
Which code executes sayHello once, two minutes from now?

  • A. setTimeout(sayHello, 12000);
  • B. setTimeout(sayHello(), 12000);
  • C. delay(sayHello, 12000);
  • D. setInterval(sayHello, 12000);

Answer: A

 

NEW QUESTION 90
Which two console logs outputs NaN ?
Choose 2 answers

  • A. console.log(parseInt('two'));
  • B. console.log(10/0);
  • C. console.log(10/ ''five);
  • D. console.log(10/ Number('5'));

Answer: A,C

 

NEW QUESTION 91
Which two code snippets show working examples of a recursive function?
Choose 2 answers

  • A. Const factorial =numVar => {
    If (numVar < 0) return;
    If ( numVar === 0 ) return 1;
    return numVar * factorial ( numVar - 1 );
    };
  • B. Const sumToTen = numVar => {
    If (numVar < 0)
    Return;
    return sumToTen(numVar + 1)};
  • C. Function factorial ( numVar ) {
    If (numVar < 0) return;
    If ( numVar === 0 ) return 1;
    return numVar -1;
  • D. Let countingDown = function(startNumber) {
    If ( startNumber >0) {
    console.log(startNumber) ;
    return countingDown(startNUmber);
    } else {
    return startNumber;
    }};

Answer: A,D

 

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

  • A. True negative
  • B. False negative
  • C. False positive
  • D. True positive

Answer: B

 

NEW QUESTION 93
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers

  • A. runParallel ( ). done(function(data){
    return data;
    });
  • B. runParallel () .then(data);
  • C. runParallel () .then(function(data)
    return data
  • D. Async runParallel () .then(data);

Answer: A,C

 

NEW QUESTION 94
A developer is required to write a function that calculates the sum of elements in an array but is getting undefined every time the code is executed. The developer needs to find what is missing in the code below.
Const sumFunction = arr => {
Return arr.reduce((result, current) => {
//
Result += current;
//
), 10);
);
Which option makes the code work as expected?

  • A. Replace line 02 with return arr.map(( result, current) => (
  • B. Replace line 04 with result = result +current;
  • C. Replace line 05 with return result;
  • D. Replace line 03 with if(arr.length == 0 ) ( return 0; )

Answer: C

 

NEW QUESTION 95
What is the result of the code block?

  • A. The console logs only 'flag'.
  • B. The console logs 'flag' and another flag.
  • C. An error is thrown.
  • D. The console logs 'flag' and then an error is thrown.

Answer: D

 

NEW QUESTION 96
Which option is a core Node,js module?

  • A. Memory
  • B. locate
  • C. Ios
  • D. Path

Answer: D

 

NEW QUESTION 97
R74
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 resolved or rejected
  • C. When rejected
  • D. When resolved and settled

Answer: B

 

NEW QUESTION 98
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:

  • A. A variable displaying the number of instances created for the Car Object.
  • B. The style, event listeners and other attributes applied to the carSpeed DOM element
  • C. The information stored in the window.localStorage property
  • D. The values of the carSpeed and fourWheels variables

Answer: B,C

 

NEW QUESTION 99
......

Salesforce Exam Practice Test To Gain Brilliante Result: https://learningtree.testkingfree.com/Salesforce/CRT-600-practice-exam-dumps.html