[Aug-2023] CRT-600 Questions - Truly Beneficial For Your Salesforce Exam [Q10-Q28]

Share

[Aug-2023] CRT-600 Questions - Truly Beneficial For Your Salesforce Exam

Download Salesforce CRT-600 Sample Questions

NEW QUESTION # 10
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 DOM inspector to prevent the load event to be fired.
  • B. Use the DOM inspector to remove all the elements containing the class ad-library-item.
  • C. Use the browser to execute a script that removes all the element containing the class ad-library-item.
  • D. Use the browser console to execute a script that prevents the load event to be fired.

Answer: B


NEW QUESTION # 11
Given the code below:
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay = async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?

  • A. 4 2 1 5 3

Answer: A


NEW QUESTION # 12
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 ?

  • A. import * ad lib from '/path/universalContainersLib.js';
    lib.foo();
    lib.bar();
  • B. import (foo, bar) from '/path/universalContainersLib.js';
    foo();
    bar();
  • C. import * from '/path/universalContaineraLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar();
  • D. import all from '/path/universalContaineraLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar();

Answer: A


NEW QUESTION # 13
Given the following code, what is the value of x?
let x = '15' + (10 * 2);

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A


NEW QUESTION # 14
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) URL.createObjectURL(file);
  • D. 04 const reader = new File();
    08 if (file) reader.readAsDataURL(file);

Answer: B


NEW QUESTION # 15
Which option is true about the strict mode in imported modules?

  • A. You can only reference notStrict() functions from the imported module.
  • B. Add the statement use strict =false; before any other statements in the module to enable not- strict mode.
  • C. Add the statement use non-strict, before any other statements in the module to enable not-strict mode.
  • D. Imported modules are in strict mode whether you declare them as such or not.

Answer: A


NEW QUESTION # 16
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. 1 growl method is created regardless of which option is used.
  • C. 1 growl method is created for Option A. 1000 growl methods are created for Option B.
  • D. 1000 growl methods are created regardless of which option is used.

Answer: A


NEW QUESTION # 17
Refer to the following code:

Which statement should be added to line 09 for the code to display 'The boat has a capacity of 10 people?

  • A. this.size = size;
  • B. super.size = size;
  • C. ship.size size;
  • D. super (size);

Answer: A


NEW QUESTION # 18
A developer tries to retrieve all cookies, then sets a certain key value pair in the cookie. These statements are used:

What is the behavior?

  • A. Cookies are read and the key value is set, and all cookies are wiped.
  • B. Cookies are read, but the key value is not set because the value is not URL encoded.
  • C. Cookies are not read because line 01 should be document, cookies, but the key value is set and all cookies are wiped.
  • D. A Cookies are read and the key value is set, the remaining cookies are unaffected.

Answer: D


NEW QUESTION # 19
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 button.removeEventListener(' click" , listen);
  • C. On line 04, use event.stopPropagation ( ),
  • D. On line 02, use event.first to test if it is the first execution.

Answer: A,B


NEW QUESTION # 20
Refer to the code below:

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

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

Answer: D


NEW QUESTION # 21
Refer to code below:
Const objBook = {
Title: 'Javascript',
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = 'Robert';
What are the values of objBook and newObjBook respectively ?

  • A. {author: "Robert"}
    {author: "Robert", title: "javaScript}
  • B. {author: "Robert", title: "javaScript}
    Undefined
  • C. [title: "javaScript"] [title: "javaScript"]
  • D. {author: "Robert", title: "javaScript}
    {author: "Robert", title: "javaScript}

Answer: C


NEW QUESTION # 22
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 DOM inspector to prevent 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 browser console to execute a script that prevents the load event to be fired.

Answer: B


NEW QUESTION # 23
Refer to code below:
Let first = 'who';
Let second = 'what';
Try{
Try{
Throw new error('Sad trombone');
}catch (err){
First ='Why';
}finally {
Second ='when';
} catch (err) {
Second ='Where';
}
What are the values for first and second once the code executes ?

  • A. First is who and second is where
  • B. First is why and second is where
  • C. First is Who and second is When
  • D. First is why and second is when

Answer: D


NEW QUESTION # 24
Refer to the following code:

  • A. document.querySelector('$main li:nth-child(2)'),innerHTML = " The Lion. ';
  • B. document.querySelector('$main li:second-child').innerHTML = " The Lion ';
  • C. document.querySelectorAll('$main $TONY').innerHTML = '" The Lion
  • D. document.querySelector('$main li.Tony').innerHTML = '" The Lion ';

Answer: C


NEW QUESTION # 25
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. ' new york '
  • C. Undefined
  • D. An error

Answer: B


NEW QUESTION # 26
Refer to the code below:
Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];
Which two statements result in the array [1, 2, 3, 4, 5] ?
Choose 2 answers

  • A. [ ]. Concat.apply ([ ], inArray);
  • B. [ ]. concat ( [ ....inArray ] );
  • C. [ ]. Concat (... inArray);
  • D. [ ]. concat.apply(inArray, [ ]);

Answer: A,C


NEW QUESTION # 27
The developer has a function that prints "Hello" to an input name. To test this, thedeveloper created a function that returns "World". However the following snippet does not print " Hello World".

What can the developer do to change the code to print "Hello World" ?

  • A. Change line 9 to sayHello(world) ();
  • B. Change line 5 to function world ( ) {
  • C. Change line 7 to ) () ;
  • D. Change line 2 to console.log('Hello' , name() );

Answer: D


NEW QUESTION # 28
......

Truly Beneficial For Your Salesforce Exam: https://www.realvce.com/CRT-600_free-dumps.html

Real CRT-600 Exam Questions and Answers FREE: https://drive.google.com/open?id=1fQjWTbfhS5eHxYzK-uOQ-DxUouxyfyCU