[Sep 06, 2023] Download Free Salesforce CRT-600 Real Exam Questions
Pass Your Exam With 100% Verified CRT-600 Exam Questions
NEW QUESTION # 49
Refer to the following code:
- A. document.querySelector('$main li.Tony').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:nth-child(2)'),innerHTML = " The Lion. ';
Answer: C
NEW QUESTION # 50
Refer to the code below:
const car = {
price:100,
getPrice:function(){
return this.price;
}
};
const customCar = Object.create(car);
customCar.price = 70;
delete customCar.price;const result = customCar.getPrice();
What is the value of result after the code executes?
- A. 0
- B. 1
- C. null
- D. undefined
Answer: A
NEW QUESTION # 51
Refer to the following code:
function test (val) {
If (val === undefined) {
return 'Undefined values!' ;
}
if (val === null) {
return 'Null value! ';
}
return val;
}
Let x;
test(x);
What is returned by the function call on line 13?
- A. 'Undefined values!'
- B. Undefined
- C. 'Null value!'
- D. Line 13 throws an error.
Answer: A
NEW QUESTION # 52
Given the following code:
Let x =('15' + 10)*2;
What is the value of a?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
NEW QUESTION # 53
Refer to the code declarations below:
Which three expressions return the string JavaScript?
Choose 3 answers
- A. Str1.concat (str2);
- B. Str1.join (str2);
- C. Str1 + str2;
- D. Concat (str1, str2);
- E. $(str1) $ (str2} ';
Answer: A,C,E
NEW QUESTION # 54
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. ' visible ' : ' hidden '
- B. ' name ' : ' block '
- C. ' hidden ' : ' visible '
- D. ' Block ' : ' none '
Answer: D
NEW QUESTION # 55
A developer implements a function that adds a few values.
Function sum(num) {
If (num == undefined) {
Num =0;
}
Return function( num2, num3){
If (num3 === undefined) {
Num3 =0 ;
}
Return num + num2 + num3;
}
}
Which three options can the developer invoke for this function to get a return value of 10 ?
Choose 3 answers
- A. Sum (5, 5) ()
- B. sum(10) ()
- C. Sum () (20)
- D. sum(5)(5)
- E. sum() (5, 5)
Answer: D,E
NEW QUESTION # 56
Which two console logs output NaN?
Choose 2 answers | |
- A. console.log(10 / Number('5) ) ;
- B. console.log(10 / 0);
- C. console.log(parseInt ' ("two')) ;
- D. console.loeg(10 / 'five');
Answer: C,D
NEW QUESTION # 57
Refer to code below:
console.log(0);
setTimeout(() => (
console.log(1);
});
console.log(2);
setTimeout(() => {
console.log(3);
), 0);
console.log(4);
In which sequence will the numbers be logged?
- A. 02413
- B. 0
- C. 01234
- D. 02431
Answer: D
NEW QUESTION # 58
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 performance toots
- B. Terminal running the web server.
- C. Browser javaScript console
- D. On the webpage.
Answer: C
NEW QUESTION # 59
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 DOM inspector to prevent the load event to be fired.
- C. Use the DOM inspector to remove all the elements containing the class ad-library-item.
- D. Use the browser to execute a script that removes all the element containing the class ad-library-item.
Answer: C
NEW QUESTION # 60
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 File();
08 if (file) URL.createObjectURL(file); - B. 04 const reader = new FileReader();
08 if (file) reader.readAsDataURL(file); - C. 04 const reader = new FileReader();
08 if (file) URL.createObjectURL(file); - D. 04 const reader = new File();
08 if (file) reader.readAsDataURL(file);
Answer: B
NEW QUESTION # 61
Refer to the code below:
Which value can a developer expect when referencing country,capital,cityString?
- A. 'London'
- B. An error
- C. 'NaN'
- D. undefined
Answer: C
NEW QUESTION # 62
A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.
The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server, js file will start the server. the developer wants to debug the Node.js server only using the terminal.
Which command can the developer use to open the CLI debugger in their current terminal window?
- A. node start inspect server,js
- B. node inspect server,js
- C. node server,js inspect
- D. node -i server.js
Answer: B
NEW QUESTION # 63
Given HTML below:
<div>
<div id ="row-uc"> Universal Container</div>
<div id ="row-aa">Applied Shipping</div>
<div id ="row-bt"> Burlington Textiles </div>
</div>
Which statement adds the priority = account CSS class to the universal COntainers row ?
- A. Document .queryElementById('row-uc').addclass('priority-account');
- B. Document .querySelector('#row-uc').classes.push('priority-account');
- C. Document .querySelector('#row-uc').classList.add('priority-account');
- D. Document .querySelectorALL('#row-uc').classList.add('priority-account');
Answer: A
NEW QUESTION # 64
Given the following code:
Let x =null;
console.log(typeof x);
What is the output of the line 02?
- A. "X"
- B. "Null"
- C. "Object"
- D. "undefined"
Answer: C
NEW QUESTION # 65
Refer to the code below:
let timeFunction =() => {
console.log('Timer called.");
};
let timerId = setTimeout (timedFunction, 1000);
Which statement allows a developer to cancel the scheduled timed function?
- A. removeTimeout(timedFunction);
- B. removeTimeout(timerId);
- C. clearTimeout(timedFunction);
- D. clearTimeout(timerId);
Answer: D
NEW QUESTION # 66
A developer has the following array of hourly wages:
Let arr = (8, 5, 9, 75, 11, 25, 7, 75, , 13, 25);
For workers making less than $10 an hour rate should be multiple by 1.25 and returned in a new array.
How should the developer implement the request?
- A. let arrl = arr-map((num) => { return ran * 1.25 }).filter((val) -> { return val < 10));
- B. let arrl = arr.filter((val) => val < 10).map((num) -> num = 1.25);
- C. let arrl = arr .rr.acArray ((val) => ( val < 10 )) ,map((num) => { num * 1.25 ));
- D. let arrl = arr.filterBy((val) => val < 10 ).aapBy<(num) -> num = ..25 );
Answer: A
NEW QUESTION # 67
Which javascript methods can be used to serialize an object into a string and deserialize a JSON string into an object, respectively?
- A. JSON.encode and JSON.decode
- B. JSON.stringify and JSON.parse
- C. JSON.serialize and JSON.deserialize
- D. JSON.parse and JSON.deserialize
Answer: B
NEW QUESTION # 68
Which three options show valid methods for creating a fat arrow function?
Choose 3 answers
- A. (x,y,z) => ( console.log(' executed ') ;)
- B. X,y,z => ( console.log(' executed ') ;)
- C. [ ] => ( console.log(' executed ') ;)
- D. x => ( console.log(' executed ') ; )
- E. ( ) => ( console.log(' executed ') ;)
Answer: A,D
NEW QUESTION # 69
A developer creates a simple webpage with an input field. When a user enters text in the input field and clicks the button, the actual value of the field must be displayed in the console.
Here is the HTML file content:
<input type =" text" value="Hello" name ="input">
<button type ="button" >Display </button>
The developer wrote the javascript code below:
Const button = document.querySelector('button');
button.addEvenListener('click', () => (
Const input = document.querySelector('input');
console.log(input.getAttribute('value'));
When the user clicks the button, the output is always "Hello".
What needs to be done make this code work as expected?
- A. Replace line 03 with const input = document.getElementByName('input');
- B. Replace line 02 with button.addEventListener("onclick", function() {
- C. Replace line 04 with console.log(input .value);
- D. Replace line 02 with button.addCallback("click", function() {
Answer: C
NEW QUESTION # 70
A developer wants to use a module called DataPrettyPrint. This module exports one default function called printDate ().
How can a developer import and use the printDate() function?
A)
B)
C)
D)
- A. Option D
- B. Option B
- C. Option C
- D. Option A
Answer: B
NEW QUESTION # 71
Refer to the following code:
class Vehicle{
constructor(plate){
this.plate = plate;
}
}
class Truck extends Vehicle{
constructor(plate, weight){
//Missing code
this.weight = weight;
}
displayWeight(){
console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);
}
}let myTruck = new Truck('123Ab',5000);
myTruck.displayWeight();
Which statement should be added to missing code for the code to display 'The truck 123AB has a weight of 5000lb.
- A. super.plate = plate
- B. Vehicle.plate = plate
- C. this.plate = plate
- D. super(plate)
Answer: D
NEW QUESTION # 72
......
CRT-600 Dumps 100 Pass Guarantee With Latest Demo: https://www.validdumps.top/CRT-600-exam-torrent.html
CRT-600 Dumps PDF - CRT-600 Real Exam Questions Answers: https://drive.google.com/open?id=1TYgOeF6-N963HkEeakx9g-K-DIX9w2sl