Deck 11: Javascript Language and Syntax: Part B

ملء الشاشة (f)
exit full mode
سؤال
How does JavaScript store dates in a date object?

A)The number of milliseconds since January 1st, 1970
B)The number of days since January 1st, 1900
C)The number of seconds since Netscape's public stock offering.
D)None of the above
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which of the following attribute can hold the JavaScript version?

A)LANGUAGE
B)SCRIPT
C)VERSION
D)None of the above
سؤال
What is the correct JavaScript syntax to write "Hello World"?

A)System.out.println("Hello World")
B)println ("Hello World")
C)document.write("Hello World")
D)response.write("Hello World")
سؤال
Which of the following way can be used to indicate the LANGUAGE attribute?

A)<LANGUAGE="JavaScriptVersion">
B)<SCRIPT LANGUAGE="JavaScriptVersion">
C) <SCRIPT LANGUAGE="JavaScriptVersion"> JavaScript statements…</SCRIPT>
D) <SCRIPT LANGUAGE="JavaScriptVersion"!> JavaScript statements…</SCRIPT>
سؤال
Inside which HTML element do we put the JavaScript?

A)<js>
B)<scripting>
C)<script>
D)<javascript>
سؤال
What is the correct syntax for referring to an external script called " abc.js"?

A)<script href=" abc.js">
B)<script name=" abc.js">
C)<script src=" abc.js">
D)None of the above
سؤال
Which types of image maps can be used with JavaScript?

A)Server-side image maps
B)Client-side image maps
C)Server-side image maps and Client-side image maps
D)None of the above
سؤال
Which of the following navigator object properties is the same in both Netscapeand IE?

A)navigator.appCodeName
B)navigator.appName
C)navigator.appVersion
D)None of the above
سؤال
Which is the correct way to write a JavaScript array?

A)var txt = new Array(1:"tim",2:"kim",3:"jim")
B)var txt = new Array:1=("tim")2=("kim")3=("jim")
C)var txt = new Array("tim","kim","jim")
D)var txt = new Array="tim","kim","jim"
سؤال
What does the <noscript> tag do?

A)Enclose text to be displayed by non-JavaScript browsers.
B)Prevents scripts on the page from executing.
C)Describes certain low-budget movies.
D)None of the above
سؤال
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

A)"New Text"?
B)para1.value="New Text";
C)para1.innerText = "New Text
D)para1.nodeValue="New Text";
سؤال
JavaScript entities start with _______ and end with _________.

A)Semicolon, colon
B)Semicolon, Ampersand
C)Ampersand, colon
D)Ampersand, semicolon
سؤال
Which of the following best describes JavaScript?

A)a low-level programming language.
B)a scripting language precompiled in the browser.
C)a compiled scripting language.
D)an object-oriented scripting language.
سؤال
Choose the server-side JavaScript object?

A)FileUpLoad
B)Function
C)File
D)Date
سؤال
Choose the client-side JavaScript object?

A)Database
B)Cursor
C)Client
D)FileUpLoad
سؤال
Which of the following is not considered a JavaScript operator?

A)new
B)this
C)delete
D)typeof
سؤال
______method evaluates a string of JavaScript code in the context of thespecified object.

A)Eval
B)ParseInt
C)ParseFloat
D)Efloat
سؤال
Which of the following event fires when the form element loses the focus:<button>, <input>, <label>, <select>, <textarea>?

A)onfocus
B)onblur
C)onclick
D)ondblclick
سؤال
The syntax of Eval is _______.

A)[objectName.]eval(numeriC.
B)[objectName.]eval(string)
C)[EvalName.]eval(string)
D)[EvalName.]eval(numeriC.
سؤال
JavaScript is interpreted by ______Sol:.

A)Client
B)Server
C)Object
D)None of the above
سؤال
Using _______ statement is how you test for a specific condition.

A)Select
B)If
C)Switch
D)For
سؤال
What is internet?

A)a single network
B)a vast collection of different networks
C)interconnection of local area networks
D)none of the above
سؤال
What is a web browser?

A)a program that can display a web page
B)a program used to view html documents
C)it enables user to access the resources of internet
D)all of the above
سؤال
Physical or logical arrangement of network is

A)Topology
B)Routing
C)Networking
D)None of the above
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/24
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 11: Javascript Language and Syntax: Part B
1
How does JavaScript store dates in a date object?

A)The number of milliseconds since January 1st, 1970
B)The number of days since January 1st, 1900
C)The number of seconds since Netscape's public stock offering.
D)None of the above
The number of milliseconds since January 1st, 1970
2
Which of the following attribute can hold the JavaScript version?

A)LANGUAGE
B)SCRIPT
C)VERSION
D)None of the above
LANGUAGE
3
What is the correct JavaScript syntax to write "Hello World"?

A)System.out.println("Hello World")
B)println ("Hello World")
C)document.write("Hello World")
D)response.write("Hello World")
document.write("Hello World")
4
Which of the following way can be used to indicate the LANGUAGE attribute?

A)<LANGUAGE="JavaScriptVersion">
B)<SCRIPT LANGUAGE="JavaScriptVersion">
C) <SCRIPT LANGUAGE="JavaScriptVersion"> JavaScript statements…</SCRIPT>
D) <SCRIPT LANGUAGE="JavaScriptVersion"!> JavaScript statements…</SCRIPT>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
5
Inside which HTML element do we put the JavaScript?

A)<js>
B)<scripting>
C)<script>
D)<javascript>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
6
What is the correct syntax for referring to an external script called " abc.js"?

A)<script href=" abc.js">
B)<script name=" abc.js">
C)<script src=" abc.js">
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which types of image maps can be used with JavaScript?

A)Server-side image maps
B)Client-side image maps
C)Server-side image maps and Client-side image maps
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which of the following navigator object properties is the same in both Netscapeand IE?

A)navigator.appCodeName
B)navigator.appName
C)navigator.appVersion
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which is the correct way to write a JavaScript array?

A)var txt = new Array(1:"tim",2:"kim",3:"jim")
B)var txt = new Array:1=("tim")2=("kim")3=("jim")
C)var txt = new Array("tim","kim","jim")
D)var txt = new Array="tim","kim","jim"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
10
What does the <noscript> tag do?

A)Enclose text to be displayed by non-JavaScript browsers.
B)Prevents scripts on the page from executing.
C)Describes certain low-budget movies.
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
11
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

A)"New Text"?
B)para1.value="New Text";
C)para1.innerText = "New Text
D)para1.nodeValue="New Text";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
12
JavaScript entities start with _______ and end with _________.

A)Semicolon, colon
B)Semicolon, Ampersand
C)Ampersand, colon
D)Ampersand, semicolon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which of the following best describes JavaScript?

A)a low-level programming language.
B)a scripting language precompiled in the browser.
C)a compiled scripting language.
D)an object-oriented scripting language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
14
Choose the server-side JavaScript object?

A)FileUpLoad
B)Function
C)File
D)Date
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
15
Choose the client-side JavaScript object?

A)Database
B)Cursor
C)Client
D)FileUpLoad
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following is not considered a JavaScript operator?

A)new
B)this
C)delete
D)typeof
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
17
______method evaluates a string of JavaScript code in the context of thespecified object.

A)Eval
B)ParseInt
C)ParseFloat
D)Efloat
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of the following event fires when the form element loses the focus:<button>, <input>, <label>, <select>, <textarea>?

A)onfocus
B)onblur
C)onclick
D)ondblclick
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
19
The syntax of Eval is _______.

A)[objectName.]eval(numeriC.
B)[objectName.]eval(string)
C)[EvalName.]eval(string)
D)[EvalName.]eval(numeriC.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
20
JavaScript is interpreted by ______Sol:.

A)Client
B)Server
C)Object
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
21
Using _______ statement is how you test for a specific condition.

A)Select
B)If
C)Switch
D)For
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
22
What is internet?

A)a single network
B)a vast collection of different networks
C)interconnection of local area networks
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
23
What is a web browser?

A)a program that can display a web page
B)a program used to view html documents
C)it enables user to access the resources of internet
D)all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
24
Physical or logical arrangement of network is

A)Topology
B)Routing
C)Networking
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.