Deck 11: Javascript: Objects

ملء الشاشة (f)
exit full mode
سؤال
What does the variable string contain after the following code is executed
Var string = "Good luck on the test";
String = string.split( " " );

A) an array containing the strings "Good", "luck", "on", "the" and "test"
B) the string "Good.luck.on.the.test"
C) the string "Good,luck,on,the,test"
D) Nothing, the string conversion will generate an error.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
What does the variable string contain after the following code is executed
Var string = "Good luck on the test";
String = string.charAt( 3 );

A) Goo
B) 3
C) d
D) Nothing, the string conversion generates an error.
سؤال
________ are stored by the browser on the user's computer to maintain client-specific information during and between browser sessions.

A) Files
B) Documents
C) Cookies
D) Substrings
سؤال
Which of the following methods would you use to convert a list of Unicode values into a string containing the corresponding characters

A) charAt
B) charCodeAt
C) fromCharCode
D) UCodeToChar
سؤال
What does the variable string contain after the following code is executed
Var string = "Good luck on the test";
String = string.link("www.deitel.com");

A) a link to www.deitel.com with the text "www.deitel.com"
B) a link to www.deitel.com with the text "Good luck on the test"
C) the text "www.deitel.com"
D) Nothing, the string conversion will generate an error.
سؤال
A JSON object is represented as a list contained in _____.

A) curly braces
B) square brackets
C) single quotes
D) double quotes
سؤال
Which of the following is not a method

A) getTime()
B) strike()
C) getMonth()
D) valueOf()
سؤال
What is the value of s3 after the following code is executed
Var s1 = "one";
Var s2 = "two";
Var s3 = "three";
S1)concat( s2 );
S3 = s1;

A) one
B) onetwo
C) three
D) onetwothree
سؤال
Which of the following is a mathematical constant

A) sqrt( x )
B) cos( x )
C) floor( x )
D) Math.LN10
سؤال
Which of the following is not a method or property of the JavaScript Number object

A) toString
B) toFloat
C) valueOf
D) MAX_VALUE
سؤال
Which of the following methods would you use to search a string for a specific character

A) substring
B) charAt
C) substr
D) indexOf
سؤال
An object's methods are accessed by writing the name of the object immediately followed by a ________.

A) method name
B) method index
C) dot
D) property operator
سؤال
What is the value of s1 after the following code is executed
Var s1 = "deitel and associates";
S1 = s1.slice( 6 );

A) deitel
B) deitel and asso
C) and associates
D) deitel and associates
سؤال
Which of the following is not a method of the JavaScript Boolean object

A) toString
B) valueOf
C) toInt
D) The JavaScript Boolean object does not possess publicly accessible methods.
سؤال
To find out when a document was last modified, use the document object's _____ property.

A) lastModified
B) lastChanged
C) modDate
D) dateChanged
سؤال
What will variable value contain after the following code is executed
Var value = new Date();
Value = value.valueOf();

A) the current date in the format hh:mm:ss calculated from the number of milliseconds between midnight January 1, 1970 and the current date
B) a large integer representing the number of milliseconds between midnight January 1, 1970 and the current date
C) the current date in the format hh:mm calculated from the number of milliseconds between midnight January 1, 1970 and the current date
D) a large floating point number representing the number of milliseconds between midnight January 1, 1970 and the current date
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/16
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 11: Javascript: Objects
1
What does the variable string contain after the following code is executed
Var string = "Good luck on the test";
String = string.split( " " );

A) an array containing the strings "Good", "luck", "on", "the" and "test"
B) the string "Good.luck.on.the.test"
C) the string "Good,luck,on,the,test"
D) Nothing, the string conversion will generate an error.
A
2
What does the variable string contain after the following code is executed
Var string = "Good luck on the test";
String = string.charAt( 3 );

A) Goo
B) 3
C) d
D) Nothing, the string conversion generates an error.
C
3
________ are stored by the browser on the user's computer to maintain client-specific information during and between browser sessions.

A) Files
B) Documents
C) Cookies
D) Substrings
C
4
Which of the following methods would you use to convert a list of Unicode values into a string containing the corresponding characters

A) charAt
B) charCodeAt
C) fromCharCode
D) UCodeToChar
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
5
What does the variable string contain after the following code is executed
Var string = "Good luck on the test";
String = string.link("www.deitel.com");

A) a link to www.deitel.com with the text "www.deitel.com"
B) a link to www.deitel.com with the text "Good luck on the test"
C) the text "www.deitel.com"
D) Nothing, the string conversion will generate an error.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
6
A JSON object is represented as a list contained in _____.

A) curly braces
B) square brackets
C) single quotes
D) double quotes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following is not a method

A) getTime()
B) strike()
C) getMonth()
D) valueOf()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is the value of s3 after the following code is executed
Var s1 = "one";
Var s2 = "two";
Var s3 = "three";
S1)concat( s2 );
S3 = s1;

A) one
B) onetwo
C) three
D) onetwothree
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the following is a mathematical constant

A) sqrt( x )
B) cos( x )
C) floor( x )
D) Math.LN10
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which of the following is not a method or property of the JavaScript Number object

A) toString
B) toFloat
C) valueOf
D) MAX_VALUE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which of the following methods would you use to search a string for a specific character

A) substring
B) charAt
C) substr
D) indexOf
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
12
An object's methods are accessed by writing the name of the object immediately followed by a ________.

A) method name
B) method index
C) dot
D) property operator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
13
What is the value of s1 after the following code is executed
Var s1 = "deitel and associates";
S1 = s1.slice( 6 );

A) deitel
B) deitel and asso
C) and associates
D) deitel and associates
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of the following is not a method of the JavaScript Boolean object

A) toString
B) valueOf
C) toInt
D) The JavaScript Boolean object does not possess publicly accessible methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
15
To find out when a document was last modified, use the document object's _____ property.

A) lastModified
B) lastChanged
C) modDate
D) dateChanged
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
16
What will variable value contain after the following code is executed
Var value = new Date();
Value = value.valueOf();

A) the current date in the format hh:mm:ss calculated from the number of milliseconds between midnight January 1, 1970 and the current date
B) a large integer representing the number of milliseconds between midnight January 1, 1970 and the current date
C) the current date in the format hh:mm calculated from the number of milliseconds between midnight January 1, 1970 and the current date
D) a large floating point number representing the number of milliseconds between midnight January 1, 1970 and the current date
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 16 في هذه المجموعة.