Free CRT-600 Exam Braindumps (page: 14)

Page 13 of 57

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

  1. View and change DOM the page.
  2. Display a report showing the performance of a page.
  3. Run code that is not related to page.
  4. view , change, and debug the JavaScript code of the page.
  5. View and change security cookies.

Answer(s): A,C,D



In which situation should a developer include a try .. catch block around their function call ?

  1. The function has an error that should not be silenced.
  2. The function results in an out of memory issue.
  3. The function might raise a runtime error that needs to be handled.
  4. The function contains scheduled code.

Answer(s): C



A class was written to represent items for purchase in an online store, and a second class

Representing items that are on sale at a discounted price. THe constructor sets the name to the first value passed in. The pseudocode is below:
Class Item {
constructor(name, price) {
... // Constructor Implementation
}
}
Class SaleItem extends Item {
constructor (name, price, discount) {
...//Constructor Implementation
}
}
There is a new requirement for a developer to implement a description method that will return a brief description for Item and SaleItem.
Let regItem =new Item(`Scarf', 55);
Let saleItem = new SaleItem(`Shirt' 80, -1);
Item.prototype.description = function () { return `This is a ' + this.name; console.log(regItem.description());
console.log(saleItem.description());
SaleItem.prototype.description = function () { return `This is a discounted ' + this.name; }
console.log(regItem.description());
console.log(saleItem.description());
What is the output when executing the code above ?

  1. This is a Scarf
    Uncaught TypeError: saleItem.description is not a function This is aScarf
    This is a discounted Shirt
  2. This is a Scarf
    This is a Shirt
    This is a Scarf
    This is a discounted Shirt
  3. This is a Scarf
    This is a Shirt
    This is a discounted Scarf
    This is a discounted Shirt
  4. This is aScarf
    Uncaught TypeError: saleItem.description is not a function This is a Shirt
    This is a did counted Shirt

Answer(s): B



Given the following code:
Let x =(`15' + 10)*2;
What is the value of a?

  1. 3020
  2. 1520
  3. 50
  4. 35

Answer(s): A






Post your Comments and Discuss Salesforce CRT-600 exam with other Community members:

CRT-600 Discussions & Posts