Deck 11: Javascript Language and Syntax: Part B

Full screen (f)
exit full mode
Question
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
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following attribute can hold the JavaScript version?

A)LANGUAGE
B)SCRIPT
C)VERSION
D)None of the above
Question
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")
Question
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>
Question
Inside which HTML element do we put the JavaScript?

A)<js>
B)<scripting>
C)<script>
D)<javascript>
Question
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
Question
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
Question
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
Question
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"
Question
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
Question
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";
Question
JavaScript entities start with _______ and end with _________.

A)Semicolon, colon
B)Semicolon, Ampersand
C)Ampersand, colon
D)Ampersand, semicolon
Question
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.
Question
Choose the server-side JavaScript object?

A)FileUpLoad
B)Function
C)File
D)Date
Question
Choose the client-side JavaScript object?

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

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

A)Eval
B)ParseInt
C)ParseFloat
D)Efloat
Question
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
Question
The syntax of Eval is _______.

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

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

A)Select
B)If
C)Switch
D)For
Question
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
Question
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
Question
Physical or logical arrangement of network is

A)Topology
B)Routing
C)Networking
D)None of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/24
auto play flashcards
Play
simple tutorial
Full screen (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>
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
5
Inside which HTML element do we put the JavaScript?

A)<js>
B)<scripting>
C)<script>
D)<javascript>
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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"
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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";
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
12
JavaScript entities start with _______ and end with _________.

A)Semicolon, colon
B)Semicolon, Ampersand
C)Ampersand, colon
D)Ampersand, semicolon
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
14
Choose the server-side JavaScript object?

A)FileUpLoad
B)Function
C)File
D)Date
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
15
Choose the client-side JavaScript object?

A)Database
B)Cursor
C)Client
D)FileUpLoad
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is not considered a JavaScript operator?

A)new
B)this
C)delete
D)typeof
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
20
JavaScript is interpreted by ______Sol:.

A)Client
B)Server
C)Object
D)None of the above
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
21
Using _______ statement is how you test for a specific condition.

A)Select
B)If
C)Switch
D)For
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
24
Physical or logical arrangement of network is

A)Topology
B)Routing
C)Networking
D)None of the above
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 24 flashcards in this deck.