CRT-600 Exam Questions - Real & Updated Questions PDF [Q131-Q151]

Share

CRT-600 Exam Questions - Real & Updated Questions PDF

Pass Guaranteed Quiz 2023 Realistic Verified Free Salesforce

NEW QUESTION # 131
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. RuntimeError
  • B. -Infinity
  • C. 0
  • D. 1

Answer: A


NEW QUESTION # 132
Given the code below:
const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined ]); What is the value of copy?

  • A. -- [ \"false\" , false, undefined ]--
  • B. -- [ \"false\" , { } ]--
  • C. -- [ \"false\" ,false, null ]--
  • D. -- [ false, { } ]--

Answer: C


NEW QUESTION # 133
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers

  • A. The developer missed the option --save when adding the dependency.
  • B. The developer missed the option --add when adding the dependency.
  • C. The developer added the dependency as a dev dependency, and
    NODE_ENV is set to production.
  • D. The developer added the dependency as a dev dependency, and
    NODE_ENV
    Is set to production.

Answer: A,C,D


NEW QUESTION # 134
Which two console logs output NaN?
Choose 2 answers | |

  • A. console.loeg(10 / 'five');
  • B. console.log(parseInt ' ("two')) ;
  • C. console.log(10 / Number('5) ) ;
  • D. console.log(10 / 0);

Answer: A,B


NEW QUESTION # 135
Refer to the code below:
Let str = 'javascript';
Str[0] = 'J';
Str[4] = 'S';
After changing the string index values, the value of str is 'javascript'. What is the reason for this value:

  • A. Non-primitive values are mutable.
  • B. Non-primitive values are immutable.
  • C. Primitive values are mutable.
  • D. Primitive values are immutable.

Answer: D


NEW QUESTION # 136
Refer to the code below:
console.log(''start);
Promise.resolve('Success') .then(function(value){
console.log('Success');
});
console.log('End');
What is the output after the code executes successfully?

  • A. End
    Start
    Success
  • B. Success
    Start
    End
  • C. Start
    Success
    End
  • D. Start
    End
    Success

Answer: D


NEW QUESTION # 137
Which three options show valid methods for creating a fat arrow function?
Choose 3 answers

  • A. (x,y,z) => ( console.log(' executed ') ;)
  • B. x => ( console.log(' executed ') ; )
  • C. ( ) => ( console.log(' executed ') ;)
  • D. X,y,z => ( console.log(' executed ') ;)
  • E. [ ] => ( console.log(' executed ') ;)

Answer: A,B


NEW QUESTION # 138
Given the code below:
Which three code segments result in a correct conversion from number to string? Choose 3 answers

  • A. let strValue = numValue. toString();
  • B. let strValue = numValue.toText ();
  • C. let strValue = * * 4 numValue;
  • D. let scrValue = String(numValue);
  • E. let strValue = (String)numValue;

Answer: A,C,D


NEW QUESTION # 139
Refer to the code below:
function changeValue(param) {
Param =5;
}
Let a =10;
Let b =5;
changeValue(b);
Const result = a+ " - "+ b;
What is the value of result when code executes?

  • A. 5 - 10
  • B. 10 - 5
  • C. 5 -5
  • D. 10 -10

Answer: D


NEW QUESTION # 140
Refer to the code below:
const event = new CustomEvent(
//Missing Code
);
obj.dispatchEvent(event);
A developer needs to dispatch a custom event called update to send information about recordId.
Which two options could a developer insert at the placeholder in line 02 to achieve this?
Choose 2 answers

  • A. 'Update' , {
    Details : {
    recordId : '123abc'
    }
    }
  • B. { type : 'update', recordId : '123abc' }
  • C. 'Update' , (
    recordId : '123abc'
    (
  • D. 'Update' , '123abc'

Answer: A,C


NEW QUESTION # 141
Refer of the string below:
Const str = 'sa;esforce'=;
Which two statement result in the word 'Sale'?
Choose 2 answers

  • A. str, substr(1,5) ;
  • B. str, substr(0,5) ;
  • C. str, substring(1,5) ;
  • D. str, substring (0,5) ;

Answer: B,D


NEW QUESTION # 142
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers

  • A. runParallel ( ). done(function(data){
    return data;
    });
  • B. runParallel () .then(data);
  • C. Async runParallel () .then(data);
  • D. runParallel () .then(function(data)
    return data

Answer: A,D


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

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

Answer: B,C,D


NEW QUESTION # 144
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?

  • A. D
  • B. A
  • C. B
  • D. C

Answer: B


NEW QUESTION # 145
Refer to HTML below:
<p> The current status of an Order: <span id ="status"> In Progress </span> </p>.
Which JavaScript statement changes the text 'In Progress' to 'Completed' ?

  • A. document.getElementById("status").Value = 'Completed' ;
  • B. document.getElementById("status").innerHTML = 'Completed' ;
  • C. document.getElementById("#status").innerHTML = 'Completed' ;
  • D. document.getElementById(".status").innerHTML = 'Completed' ;

Answer: B


NEW QUESTION # 146
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.startsWith('N') ? 1: 0;
    Return acc +sum
  • B. Const sum = curr.startsWIth('N') ? 1: 0;
    Return curr+ sum
  • C. Const sum = curr.name.startsWith('N') ? 1: 0;
    Return acc +sum
  • D. Const sum = curr.name.startsWIth('N') ? 1: 0;
    Return curr+ sum

Answer: C


NEW QUESTION # 147
Given the code below:

What is logged to the console'

  • A. 2 5 1 3 4
  • B. 1 2 5 3 4
  • C. 2 5 3 4 1
  • D. 1 2 3 4 5

Answer: C


NEW QUESTION # 148
GIven a value, which three options can a developer use to detect if the value is NaN?
Choose 3 answers !

  • A. Object.is(value, NaN)
  • B. value === Number.NaN
  • C. value ! == value
  • D. Number.isNaN(value)
  • E. value == NaN

Answer: D,E


NEW QUESTION # 149
Refer to the code below:
01 let car1 = new promise((_, reject) =>
02 setTimeout(reject, 2000, "Car 1 crashed in"));
03 let car2 = new Promise(resolve => setTimeout(resolve, 1500, "Car 2
completed"));
04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, "Car 3
Completed"));
05 Promise.race([car1, car2, car3])
06 .then(value => (
07 let result = $(value) the race. `;
08 ))
09 .catch( arr => (
10 console.log("Race is cancelled.", err);
11 ));
What is the value of result when Promise.race executes?

  • A. Car 2 completed the race.
  • B. Race is cancelled.
  • C. Car 1 crashed in the race.
  • D. Car 3 completed the race.

Answer: A


NEW QUESTION # 150
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(timerId);
  • B. removeTimeout(timedFunction);
  • C. clearTimeout(timedFunction);
  • D. clearTimeout(timerId);

Answer: D


NEW QUESTION # 151
......


Salesforce CRT-600 exam is a certification exam designed for individuals who want to demonstrate their knowledge and skills in JavaScript development for the Salesforce platform. CRT-600 exam is intended for developers who are responsible for building custom applications using the Salesforce Lightning platform. By passing the CRT-600 exam, individuals can earn the Salesforce Certified JavaScript Developer I credential, which is recognized globally as a mark of expertise in this field.


Salesforce CRT-600 exam covers a range of topics related to JavaScript development, including JavaScript syntax and concepts, debugging and testing, as well as integration with Salesforce APIs and security considerations. Candidates will also be tested on their ability to design and implement custom user interfaces using Lightning components.

 

Get to the Top with CRT-600 Practice Exam Questions: https://www.passexamdumps.com/CRT-600-valid-exam-dumps.html

Free Salesforce Certified CRT-600 Ultimate Study Guide: https://drive.google.com/open?id=1pUNlYpQOw0r5YbIEj6aSDVlvpT9ry3EQ