Salesforce CRT-600 Exam Info and Free Practice Test | ExamPrepAway
Pass Salesforce CRT-600 Premium Files Test Engine pdf - Free Dumps Collection
Salesforce CRT-600 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
NEW QUESTION 37
Consider type coercion, what does the following expression evaluate to?
True + 3 + '100' + null
- A. '4100null'
- B. '3100null'
- C. 0
- D. 1
Answer: A
NEW QUESTION 38
Why would a developer specify a package.jason as a developed forge instead of a dependency ?
- A. It is only needed for local development and testing.
- B. Other required packages depend on it for development.
- C. It is required by the application in production.
- D. It should be bundled when the package is published.
Answer: A
NEW QUESTION 39
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 40
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 41
Which option is a core Node,js module?
- A. Ios
- B. Memory
- C. Path
- D. locate
Answer: C
NEW QUESTION 42
A developer is creating a simple webpage with a button. When a user clicks this button for the first time, a message is displayed.
The developer wrote the JavaScript code below, but something is missing. The message gets displayed every time a user clicks the button, instead of just the first time.
01 function listen(event) {
02 alert ( 'Hey! I am John Doe') ;
03 button.addEventListener ('click', listen);
Which two code lines make this code work as required?
Choose 2 answers
- A. On line 06, add an option called once to button.addEventListener().
- B. On line 04, use event.stopPropagation ( ),
- C. On line 04, use button.removeEventListener(' click" , listen);
- D. On line 02, use event.first to test if it is the first execution.
Answer: A,C
NEW QUESTION 43
Refer to the code:
Given the code above, which three properties are set pet1?
Choose 3 answers:
- A. canTalk
- B. Type
- C. Name
- D. Size
- E. Owner
Answer: A,B,D
NEW QUESTION 44
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 45
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 46
Universal Containers (UC) notices that its application that allows users to search for accounts makes a network request each time a key is pressed. This results in too many requests for the server to handle.
* Address this problem, UC decides to implement a debounce function on string change handler.
What are three key steps to implement this debounce function?
Choose 3 answers:
- A. When the search string changes, enqueue the request within a setTimeout.
- B. If there is an existing setTimeout and the search string changes, cancel the existing setTimeout using the persisted timerId and replace it with a new setTimeout.
- C. Store the timeId of the setTimeout last enqueued by the search string change handle.
- D. If there is an existing setTimeout and the search string change, allow the existing setTimeout to finish, and do not enqueue a new setTimeout.
- E. Ensure that the network request has the property debounce set to true.
Answer: A,D,E
NEW QUESTION 47
developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information the developer has, which code logs an error at boost with an event?
- A. Try{
server.start();
} catch(error) {
console.log('ERROR', error);
} - B. Server.catch ((server) => {
console.log('ERROR', error);
}); - C. Server.error ((server) => {
console.log('ERROR', error);
}); - D. Server.on ('error', (error) => {
console.log('ERROR', error);
});
Answer: D
NEW QUESTION 48
A developer wrote the following code:
01 let X = object.value;
02
03 try {
04 handleObjectValue(X);
05 } catch (error) {
06 handleError(error);
07 }
The developer has a getNextValue function to execute after handleObjectValue(), but does not want to execute getNextValue() if an error occurs.
How can the developer change the code to ensure this behavior?
- A. 03 try{
04 handleObjectValue(x);
05 } catch(error){
06 handleError(error);
07 }
08 getNextValue(); - B. 03 try{
04 handleObjectValue(x);
05 } catch(error){
06 handleError(error);
07 } finally {
08 getNextValue();
10 } - C. 03 try{
04 handleObjectValue(x);
05 } catch(error){
06 handleError(error);
07 } then {
08 getNextValue();
09 } - D. 03 try {
04 handleObjectValue(x)
05 ........................
Answer: D
NEW QUESTION 49
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 05 with return result;
- C. Replace line 03 with if(arr.length == 0 ) ( return 0; )
- D. Replace line 04 with result = result +current;
Answer: B
NEW QUESTION 50
A developer implements and calls the following code when an application state change occurs:
Const onStateChange =innerPageState) => {
window.history.pushState(newPageState, ' ', null);
}
If the back button is clicked after this method is executed, what can a developer expect?
- A. The page reloads and all Javascript is reinitialized.
- B. The page is navigated away from and the previous page in the browser's history is loaded.
- C. A navigate event is fired with a state property that details the previous application state.
- D. A popstate event is fired with a state property that details the application's last state.
Answer: B
NEW QUESTION 51
Given code below:
setTimeout (() => (
console.log(1);
). 0);
console.log(2);
New Promise ((resolve, reject )) = > (
setTimeout(() => (
reject(console.log(3));
). 1000);
)).catch(() => (
console.log(4);
));
console.log(5);
What is logged to the console?
- A. 2 1 4 3 5
- B. 1 2 5 3 4
- C. 1 2 4 3 5
- D. 2 5 1 3 4
Answer: D
NEW QUESTION 52
developer is trying to convince management that their team will benefit from using Node.js for a backend server that they are going to create. The server will be a web server that handles API requests from a website that the team has already built using HTML, CSS, and JavaScript.
Which three benefits of Node.js can the developer use to persuade their manager?
Choose 3 answers:
- A. Executes server-side JavaScript code to avoid learning a new language.
- B. I nstalls with its own package manager to install and manage third-party libraries.
- C. User non blocking functionality for performant request handling .
- D. Ensures stability with one major release every few years.
- E. Performs a static analysis on code before execution to look for runtime errors.
Answer: B,C,E
NEW QUESTION 53
In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.
Which two methods are used to address this ?
Choose 2 answers
- A. Assign variables to module.exports and require them as needed.
- B. Use the document object instead of the window object.
- C. Assign variables to the global object.
- D. Create a new window object in the root file.
Answer: C
NEW QUESTION 54
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 positive
- C. False negative
- D. True positive
Answer: C
NEW QUESTION 55
A developer has the function, shown below, that is called when a page loads.
function onload() {
console.log("Page has loaded!");
}
Where can the developer see the log statement after loading the page in the browser?
- A. Browser javaScript console
- B. Terminal running the web server.
- C. On the webpage.
- D. Browser performance toots
Answer: A
NEW QUESTION 56
Refer to the code below?
Let searchString = ' look for this ';
Which two options remove the whitespace from the beginning of searchString?
Choose 2 answers
- A. searchString.trimStart();
- B. searchString.replace(/*\s\s*/, '');
- C. trimStart(searchString);
- D. searchString.trimEnd();
Answer: A,B
NEW QUESTION 57
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 console to execute a script that prevents the load event to be fired.
- B. Use the browser to execute a script that removes all the element containing the class ad-library-item.
- C. Use the DOM inspector to remove all the elements containing the class ad-library-item.
- D. Use the DOM inspector to prevent the load event to be fired.
Answer: B
NEW QUESTION 58
Refer to HTML below:
<div id ="main">
<div id = " card-00">This card is smaller.</div>
<div id = "card-01">The width and height of this card is determined by its contents.</div>
</div>
Which expression outputs the screen width of the element with the ID card-01?
- A. document.getElementById(' card-01 ').getBoundingClientRest().width
- B. document.getElementById(' card-01 ').style.width
- C. document.getElementById(' card-01 ').width
- D. document.getElementById(' card-01 ').innerHTML.lenght*e
Answer: A
NEW QUESTION 59
Cloud Kicks has a class to represent items for sale in an online store, as shown below:
Class Item{
constructor (name, price){
this.name = name;
this.price = price;
}
formattedPrice(){
return 's' + String(this.price);}}
A new business requirement comes in that requests a ClothingItem class that should have all of the properties and methods of the Item class but will also have properties that are specific to clothes.
Which line of code properly declares the clothingItem class such that it inherits from Item?
- A. Class ClothingItem implements Item{
- B. Class ClothingItem {
- C. Class ClothingItem extends Item {
- D. Class ClothingItem super Item {
Answer: C
NEW QUESTION 60
Which statement accurately describes the behaviour of the async/ await keyworks ?
- A. The associated class contains some asynchronous functions.
- B. The associated sometimes returns a promise.
- C. The associated function will always return a promise
- D. The associated function can only be called via asynchronous methods
Answer: C
NEW QUESTION 61
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?
- A. ' name ' : ' block '
- B. ' Block ' : ' none '
- C. ' hidden ' : ' visible '
- D. ' visible ' : ' hidden '
Answer: B
NEW QUESTION 62
......
Updated Official licence for CRT-600 Certified by CRT-600 Dumps PDF: https://www.examprepaway.com/Salesforce/braindumps.CRT-600.ete.file.html
New 2021 Realistic CRT-600 Dumps Test Engine Exam Questions in here: https://drive.google.com/open?id=16S6DPys3FN9qQyqhs-PHrWchyMnTbySJ