A developer wants to create an object from a function in the browser using the code below:
Function Monster() { this.name = 'hello' };
Const z = Monster();
What happens due to lack of the new keyword on line 02?
A. The z variable is assigned the correct object but this.name remains undefined.
B. Window.m is assigned the correct object.
C. Window.name is assigned to 'hello' and the variable z remains undefined.
D. The z variable is assigned the correct object.
正解:C
質問 2:
Considering the implications of 'use strict' on line 04, which three statements describe the execution of the code?
Choose 3 answers
A. z is equal to 3.14.
B. Line 05 throws an error.
C. 'use strict' is hoisted, so it has an effect on all lines.
D. 'use strict' has an effect only on line 05.
E. 'use strict' has an effect between line 04 and the end of the file.
正解:A,B,D
質問 3:
Refer to the code:

Given the code above, which three properties are set for pet1? Choose 3 answers
A. size
B. type
C. owner
D. name
E. canTalk
正解:A,B,E
質問 4:
Refer to the code below:
Const pi = 3.1415326,
What is the data type of pi?
A. Number
B. Float
C. Double
D. Decimal
正解:A
質問 5:
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. 0
B. RuntimeError
C. 6
D. -Infinity
正解:B
質問 6:
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 why and second is when
C. First is who and second is where
D. First is Who and second is When
正解:B
質問 7:
Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05 GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading a game : $(gamename) ...`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game : $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' Super Nonic 3x Force ');
What should a developer insert at line 15 to output the following message using the method ?
> SNEGeneziz is loading a cartridge game: Super Monic 3x Force . . .
A. Console16bit.prototype.load = function(gamename) {
B. Console16bit.prototype.load(gamename) {
C. Console16bit = Object.create(GameConsole.prototype).load = function
(gamename) {
D. Console16bit.prototype.load(gamename) = function() {
正解:A
質問 8:
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. Nan
B. 5
C. 10
D. Undefined
正解:B
質問 9:
Refer to code below:
Const objBook = {
Title: 'Javascript',
};
Object.preventExtensions(objBook);
Const newObjBook = objBook;
newObjectBook.author = 'Robert';
What are the values of objBook and newObjBook respectively ?
A. {author: "Robert", title: "javaScript}
Undefined
B. {author: "Robert", title: "javaScript}
{author: "Robert", title: "javaScript}
C. {author: "Robert"}
{author: "Robert", title: "javaScript}
D. [title: "javaScript"] [title: "javaScript"]
正解:D
Asou -
CRT-600問題集を一週間前に購入して、試験に合格しました!ありがとうございました。この問題集を友達に進めました。
後の試験に貴社の問題集を勉強しようと思います。良い仕事を続けてください!本当にありがとうございました!