CRT-600 Free Certification Exam Material from Fast2test with 160 Questions [Q22-Q44]

Share

CRT-600 Free Certification Exam Material from Fast2test with 160 Questions

Use Real CRT-600 - 100% Cover Real Exam Questions 

NEW QUESTION 22
Refer to the code below:
Function changeValue(obj) {
Obj.value = obj.value/2;
}
Const objA = (value: 10);
Const objB = objA;
changeValue(objB);
Const result = objA.value;
What is the value of result after the code executes?

  • A. 0
  • B. Nan
  • C. Undefined
  • D. 1

Answer: D

 

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

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

Answer: A

 

NEW QUESTION 24
Which code statement below correctly persists an objects in local Storage ?

  • A. const setLocalStorage = ( jsObject) => {
    window.localStorage.setItem(jsObject);
    }
  • B. const setLocalStorage = (storageKey, jsObject) => {
    window.localStorage.persist(storageKey, jsObject);
    }
  • C. const setLocalStorage = ( jsObject) => {
    window.localStorage.connectObject(jsObject));
    }
  • D. const setLocalStorage = (storageKey, jsObject) => {
    window.localStorage.setItem(storageKey, JSON.stringify(jsObject));
    }

Answer: D

 

NEW QUESTION 25
Which three actions can be using the JavaScript browser console?
Choose 3 answers:

  • A. View and change security cookies.
  • B. view , change, and debug the JavaScript code of the page.
  • C. Display a report showing the performance of a page.
  • D. Run code that is not related to page.
  • E. View and change DOM the page.

Answer: B,D,E

 

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

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

Answer: D

 

NEW QUESTION 27
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 .querySelector('#row-uc').classes.push('priority-account');
  • B. Document .queryElementById('row-uc').addclass('priority-account');
  • C. Document .querySelector('#row-uc').classList.add('priority-account');
  • D. Document .querySelectorALL('#row-uc').classList.add('priority-account');

Answer: B

 

NEW QUESTION 28
A developer wants to iterate through an array of objects and count the objects and count the objects whose property value, name, starts with the letter N.
Const arrObj = [{"name" : "Zach"} , {"name" : "Kate"},{"name" : "Alise"},{"name" : "Bob"},{"name" :
"Natham"},{"name" : "nathaniel"}
Refer to the code snippet below:
01 arrObj.reduce(( acc, curr) => {
02 //missing line 02
02 //missing line 03
04 ). 0);
Which missing lines 02 and 03 return the correct count?

  • A. Const sum = curr.name.startsWith('N') ? 1: 0;
    Return acc +sum
  • B. Const sum = curr.name.startsWIth('N') ? 1: 0;
    Return curr+ sum
  • C. Const sum = curr.startsWIth('N') ? 1: 0;
    Return curr+ sum
  • D. Const sum = curr.startsWith('N') ? 1: 0;
    Return acc +sum

Answer: A

 

NEW QUESTION 29
A developer has the following array of student test grades:
Let arr = [ 7, 8, 5, 8, 9 ];
The Teacher wants to double each score and then see an array of the students who scored more than 15 points.
How should the developer implement the request?

  • A. Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
  • B. Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));
  • C. Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
  • D. Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);

Answer: D

 

NEW QUESTION 30
Refer to the following array:
Let arr = [ 1,2, 3, 4, 5];
Which three options result in x evaluating as [3, 4, 5] ?
Choose 3 answers.

  • A. Let x= arr.filter((a) => ( return a>2 ));
  • B. Let x= arr.slice(2);
  • C. Let x= arr.splice(2,3);
  • D. Let x= arr.filter (( a) => (a<2));
  • E. Let x = arr.slice(2,3);

Answer: A,B,C

 

NEW QUESTION 31
Consider type coercion, what does the following expression evaluate to?
True + 3 + '100' + null

  • A. '3100null'
  • B. 0
  • C. '4100null'
  • D. 1

Answer: C

 

NEW QUESTION 32
A developer writers the code below to calculate the factorial of a given number.
Function factorial(number) {
Return number + factorial(number -1);
}
factorial(3);
What is the result of executing line 04?

  • A. -Infinity
  • B. RuntimeError
  • C. 0
  • D. 1

Answer: B

 

NEW QUESTION 33
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. Create a new window object in the root file.
  • B. Assign variables to module.exports and require them as needed.
  • C. Use the document object instead of the window object.
  • D. Assign variables to the global object.

Answer: D

 

NEW QUESTION 34
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 35
Refer to code below:
Let productSKU = '8675309' ;
A developer has a requirement to generate SKU numbers that are always 19 characters lon, starting with 'sku', and padded with zeros.
Which statement assigns the values sku0000000008675309 ?

  • A. productSKU = productSKU .padStart (19. '0').padstart('sku');
  • B. productSKU = productSKU .padEnd (16. '0').padstart('sku');
  • C. productSKU = productSKU .padEnd (16. '0').padstart(19, 'sku');
  • D. productSKU = productSKU .padStart (16. '0').padstart(19, 'sku');

Answer: D

 

NEW QUESTION 36
Refer to the code below:
function foo () {
const a =2;
function bat() {
console.log(a);
}
return bar;
}
Why does the function bar have access to variable a ?

  • A. Prototype chain
  • B. Outer function's scope
  • C. Inner function's scope
  • D. Hoisting

Answer: B

 

NEW QUESTION 37
Considering type coercion, what does the following expression evaluate to?
True + '13' + NaN

  • A. ' true13 '
  • B. ' true13NaN '
  • C. ' 113Nan '
  • D. 0

Answer: B

 

NEW QUESTION 38
Refer to the code:

Given the code above, which three properties are set pet1?
Choose 3 answers:

  • A. Name
  • B. Size
  • C. Type
  • D. canTalk
  • E. Owner

Answer: B,C,D

 

NEW QUESTION 39
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. super (body, author, viewCount) {
  • C. Function Post (body, author, viewCount) {
  • D. constructor (body, author, viewCount) {

Answer: D

 

NEW QUESTION 40
developer has a web server running with Node.js. The command to start the web server is node server,js. The web server started having latency issues. Instead of a one second turn around for web requests, the developer now sees a five second turnaround, Which command can the web developer run to see what the module is doing during the latency period?

  • A. DEBUG =true node server.js
  • B. DEBUG = http, https node server.js
  • C. NODE_DEBUG =true node server.js
  • D. NODE_DEBUG =http, https node server.js

Answer: A

 

NEW QUESTION 41
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('load',personalizeWebsiteContext);
  • B. window.addEventListener('onload', personalizeWebsiteContext);
  • C. document.addEventListener(''onDOMContextLoaded', personalizeWebsiteContext);
  • D. Document.addEventListener('''DOMContextLoaded' , personalizeWebsiteContext);

Answer: A

 

NEW QUESTION 42
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. On the webpage.
  • C. Browser javaScript console
  • D. Terminal running the web server.

Answer: C

 

NEW QUESTION 43
Given the following code:
Let x =null;
console.log(typeof x);
What is the output of the line 02?

  • A. "Null"
  • B. "X"
  • C. "Object"
  • D. "undefined"

Answer: C

 

NEW QUESTION 44
......

Dumps Brief Outline Of The CRT-600 Exam: 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 繁体中文 한국어