Real Exam Questions CRT-600 Dumps Exam Questions in here [Sep-2021]
Get Latest Sep-2021 Conduct effective penetration tests using CRT-600
NEW QUESTION 85
Given two expressions var1 and var2. What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ?
Choose 2 answers:
- A. Boolean(var1) && Boolean(var2)
- B. var1 && var2
- C. var1.toBoolean() && var2toBoolean()
- D. Boolean(var1 && var2)
Answer: A,D
NEW QUESTION 86
In which situation should a developer include a try .. catch block around their function call ?
- A. The function contains scheduled code.
- B. The function might raise a runtime error that needs to be handled.
- C. The function has an error that should not be silenced.
- D. The function results in an out of memory issue.
Answer: B
NEW QUESTION 87
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. 01234
- C. 02431
- D. 0
Answer: A
NEW QUESTION 88
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 89
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.apply ([ ], inArray);
- C. [ ]. concat ( [ ....inArray ] );
- D. [ ]. Concat (... inArray);
Answer: B,D
NEW QUESTION 90
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 why and second is where
- B. First is who and second is where
- C. First is why and second is when
- D. First is Who and second is When
Answer: C
NEW QUESTION 91
Refer to the code snippet below:
Let array = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++)
if (array[i] === 4) {
array.splice(i, 1);
}
}
What is the value of array after the code executes?
- A. [1, 2, 3, 4, 5, 4, 4]
- B. [1, 2, 3, 4, 4, 5, 4]
- C. [1, 2, 3, 5]
- D. [1, 2, 3, 4, 5, 4]

Answer: B
NEW QUESTION 92
A developer implements and calls the following code when an application state change occurs:
Const onStateChange =innerPageState) => {
window.history.pushState(newPageState, ' ', null);
}
If the back button is clicked after this method is executed, what can a developer expect?
- A. The page is navigated away from and the previous page in the browser's history is loaded.
- B. A popstate event is fired with a state property that details the application's last state.
- C. The page reloads and all Javascript is reinitialized.
- D. A navigate event is fired with a state property that details the previous application state.
Answer: A
NEW QUESTION 93
Refer to the HTML below:
<div id="main">
<ul>
<li>Leo</li>
<li>Tony</li>
<li>Tiger</li>
</ul>
</div>
Which JavaScript statement results in changing " Tony" to "Mr. T."?
- A. document.querySelectorAll('$main $TONY').innerHTML = ' Mr. T. ';
- B. document.querySelector('$main li:nth-child(2)'),innerHTML = ' Mr. T. ';
- C. document.querySelector('$main li:second-child').innerHTML = ' Mr. T. ';
- D. document.querySelector('$main li.Tony').innerHTML = ' Mr. T. ';
Answer: B
NEW QUESTION 94
A developer is wondering whether to use, Promise.then or Promise.catch, especially when a Promise throws an error?
Which two promises are rejected?
Which 2 are correct?
- A. New Promise(() => (throw 'cool error here'}).then(null, error => console.error(error)));
- B. Promise.reject('cool error here').catch(error => console.error(error));
- C. New Promise((resolve, reject) => (throw 'cool error here'}).catch(error => console.error(error)) ;
- D. Promise.reject('cool error here').then(error => console.error(error));
Answer: B,C
NEW QUESTION 95
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 immutable.
- B. Primitive values are immutable.
- C. Primitive values are mutable.
- D. Non-primitive values are mutable.
Answer: B
NEW QUESTION 96
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").innerHTML = 'Completed' ;
- B. document.getElementById("status").Value = 'Completed' ;
- C. document.getElementById("status").innerHTML = 'Completed' ;
- D. document.getElementById("#status").innerHTML = 'Completed' ;
Answer: C
NEW QUESTION 97
A developer uses a parsed JSON string to work with user information as in the block below:
01 const userInformation ={
02 " id " : "user-01",
03 "email" : "[email protected]",
04 "age" : 25
Which two options access the email attribute in the object?
Choose 2 answers
- A. userInformation.email
- B. userInformation("email")
- C. userInformation.get("email")
- D. userInformation(email)
Answer: A,B
NEW QUESTION 98
A developer is working on an ecommerce website where the delivery date is dynamically calculated based on the current day. The code line below is responsible for this calculation.
Const deliveryDate = new Date ();
Due to changes in the business requirements, the delivery date must now be today's date + 9 days.
Which code meets this new requirement?
- A. deliveryDate.setDate(( new Date ( )).getDate () +9);
- B. deliveryDate.setDate( Date.current () + 9);
- C. deliveryDate.date = new Date(+9) ;
- D. deliveryDate.date = Date.current () + 9;
Answer: A
NEW QUESTION 99
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. 1 growl method is created regardless of which option is used.
- B. 1000 growl method is created for Option A. 1 growl methods are created for Option B.
- C. 1000 growl methods are created regardless of which option is used.
- D. 1 growl method is created for Option A. 1000 growl methods are created for Option B.
Answer: B
NEW QUESTION 100
The developer wants to test the array shown:
const arr = Array(5).fill(0)
Which two tests are the most accurate for this array ?
Choose 2 answers:
- A. console.assert (arr.length >0);
- B. arr.forEach(elem => console.assert(elem === 0)) ;
- C. console.assert( arr.length === 5 );
- D. console.assert(arr[0] === 0 && arr[ arr.length] === 0);
Answer: B,C
NEW QUESTION 101
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 102
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 Goodbye and salutation is Hello, Hello.
- C. Greeting is Hello and salutation is Hello, Hello.
- D. Greeting is Hello and salutation is I say hello.
Answer: C
NEW QUESTION 103
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 104
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 added the dependency as a dev dependency, and NODE_ENV is set to production.
- C. The developer added the dependency as a dev dependency, and
NODE_ENV
Is set to production. - D. The developer missed the option --add when adding the dependency.
Answer: A,B,C
NEW QUESTION 105
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];
Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?
- A. Let arr2 = arr1.slice(0, 5);
- B. Let arr2 = Array.from(arr1);
- C. Let arr2 = arr1.sort();
- D. Let arr2 = arr1;
Answer: A,B
NEW QUESTION 106
Refer to the code below:
Async funct on functionUnderTest(isOK) {
If (isOK) return 'OK' ;
Throw new Error('not OK');
)
Which assertion accuretely tests the above code?
- A. Console.assert (await functionUnderTest(true), 'OK')
- B. Console.assert (await functionUnderTest(true), ' OK ')
- C. Console.assert (await functionUnderTest(true), ' not OK ')
- D. Console.assert (await functionUnderTest(true), ' not OK ')
Answer: A
NEW QUESTION 107
A developer wrote a fizzbuzz function that when passed in a number, returns the following:
* 'Fizz' if the number is divisible by 3.
* 'Buzz' if the number is divisible by 5.
* 'Fizzbuzz' if the number is divisible by both 3 and 5.
* Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuzz function?
Choose 2 answers
- A. let res = fizzbuzz(15);
console.assert ( res === ' fizzbuzz ' ) - B. let res = fizzbuzz(Infinity);
console.assert ( res === ' ' ) - C. let res = fizzbuzz(5);
console.assert ( res === ' ' ); - D. let res = fizzbuzz(3);
console.assert ( res === ' buzz ' )
Answer: A,B,D
NEW QUESTION 108
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 7 to ) () ;
- C. Change line 2 to console.log('Hello' , name() );
- D. Change line 5 to function world ( ) {
Answer: C
NEW QUESTION 109
......
Authentic Best resources for CRT-600 Online Practice Exam: https://www.passcollection.com/CRT-600_real-exams.html
Get the superior quality CRT-600 Dumps with explanations waiting just for you, get it now: https://drive.google.com/open?id=1FzNyrQeL3e1cjnrSliohRwABfc71jjDv

