Deck 1: Introduction to Javascript

Full screen (f)
exit full mode
Question
____ refers to programming using a scripting language that is executed from a web server.

A) Host-side scripting
B) Client-side scripting
C) Servlet-side scripting
D) Server-side scripting
Use Space or
up arrow
down arrow
to flip the card.
Question
A(n)____ comment hides multiple lines of code.

A)variable
B)element
C)line
D)block
Question
An HTML document is a text document that contains codes called ____.

A) elements
B) tags
C) styles
D) rules
Question
A system consisting of a client and a server is known as a ____ system.

A) traditional
B) three-tier
C) monolithic
D) two-tier
Question
____ was established in 1994 at MIT to oversee the development of web technology standards.

A) The University of Illinois
B) The W3C
C) Microsoft
D) Netscape
Question
The procedures associated with an object are called ____.

A) methods
B) processes
C) attributes
D) functions
Question
Elements that do not require a closing tag are called empty elements.
Question
JavaScript code is always stored in an external file separate from the HTML or XHTML code for a web document.
Question
____ are lines of code that are not processed by browsers, which you use to add notes about your code.

A)methods
B)comments
C)variables
D)properties
Question
In the client/server system, one of the primary roles of the client, or front end, is to ____.

A) carry out complex data processing
B) provide for data storage
C) send email
D) present an interface to the user
Question
____ can turn static documents into applications such as games or calculators.

A) HTML
B) XHTML
C) JavaScript
D) Cascading Style Sheets
Question
Like HTML, XHTML is not case sensitive.
Question
You can place script  elements in either the document head or in the document body.
Question
Some of the more popular server-side scripting languages include ____.

A) C, C++, and CGI
B) JScript, Livescript, and ECMAScript
C) PHP, ASP.NET, and Python
D) VBS and JScript
Question
When a client requests a server-side script, a client will never see the server-side script, only the ____ that the web server software returns from the script.

A) email sent
B) program executing
C) HTML
D) raw data requested
Question
A(n)____ comment occupies only a single line or part of a line.

A)variable
B)element
C)line
D)block
Question
An object is ____ that can be treated as an individual unit or component.

A) state and contents
B) file and data
C) formatting and color
D) programming code and data
Question
A three-tier, or multitier, client/server system consists of three distinct pieces: These are ____.

A) the client tier, the processing tier, and the data storage tier
B) the client tier, the design tier, and the processing tier
C) the storage tier, the distributing tier, and the processing tier
D) the email tier, the messaging tier, and the data storage tier
Question
Although JavaScript is considered a programming language, it is also a critical part of web page design and authoring.
Question
On client/server systems, heavy processing, such as calculations, usually takes place on the ____.

A) client
B) server
C) middle-ware
D) browser
Question
When you assign a value to a variable, you use an equal sign, which is also called a(n)__________ operator.
Question
Which method displays a dialog box with an OK button?

A) write()
B) alert()
C)onclick()
D)getElementById()
Question
Match between columns
An individual line of code
W3C
An individual line of code
expression
An individual line of code
web server
An individual line of code
variable
An individual line of code
URL
An individual line of code
HTML
An individual line of code
statement
An individual line of code
block comment
An individual line of code
validation
Commonly referred to as a web address
W3C
Commonly referred to as a web address
expression
Commonly referred to as a web address
web server
Commonly referred to as a web address
variable
Commonly referred to as a web address
URL
Commonly referred to as a web address
HTML
Commonly referred to as a web address
statement
Commonly referred to as a web address
block comment
Commonly referred to as a web address
validation
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
W3C
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
expression
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
web server
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
variable
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
URL
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
HTML
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
statement
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
block comment
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
validation
A markup language for creating the web pages that appear on the World Wide Web
W3C
A markup language for creating the web pages that appear on the World Wide Web
expression
A markup language for creating the web pages that appear on the World Wide Web
web server
A markup language for creating the web pages that appear on the World Wide Web
variable
A markup language for creating the web pages that appear on the World Wide Web
URL
A markup language for creating the web pages that appear on the World Wide Web
HTML
A markup language for creating the web pages that appear on the World Wide Web
statement
A markup language for creating the web pages that appear on the World Wide Web
block comment
A markup language for creating the web pages that appear on the World Wide Web
validation
Multiple lines of code that are not processed
W3C
Multiple lines of code that are not processed
expression
Multiple lines of code that are not processed
web server
Multiple lines of code that are not processed
variable
Multiple lines of code that are not processed
URL
Multiple lines of code that are not processed
HTML
Multiple lines of code that are not processed
statement
Multiple lines of code that are not processed
block comment
Multiple lines of code that are not processed
validation
A value a program stores in computer memory
W3C
A value a program stores in computer memory
expression
A value a program stores in computer memory
web server
A value a program stores in computer memory
variable
A value a program stores in computer memory
URL
A value a program stores in computer memory
HTML
A value a program stores in computer memory
statement
A value a program stores in computer memory
block comment
A value a program stores in computer memory
validation
A computer that delivers web pages
W3C
A computer that delivers web pages
expression
A computer that delivers web pages
web server
A computer that delivers web pages
variable
A computer that delivers web pages
URL
A computer that delivers web pages
HTML
A computer that delivers web pages
statement
A computer that delivers web pages
block comment
A computer that delivers web pages
validation
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
W3C
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
expression
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
web server
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
variable
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
URL
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
HTML
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
statement
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
block comment
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
validation
An organization overseeing web technology standards
W3C
An organization overseeing web technology standards
expression
An organization overseeing web technology standards
web server
An organization overseeing web technology standards
variable
An organization overseeing web technology standards
URL
An organization overseeing web technology standards
HTML
An organization overseeing web technology standards
statement
An organization overseeing web technology standards
block comment
An organization overseeing web technology standards
validation
Question
JavaScript source files that store especially useful generic scripts used on many different website are known as __________.
Question
A document on the web is called a web page and is identified by a unique address called the _________________________.
Question
Discuss case sensitivity in JavaScript.
Question
When an event occurs, your script executes any code that responds to that specific event  on that specific element. This code is known as the __________.
Question
Which method do you use to reference an element on a web page in a script?

A) write()
B) alert()
C)onclick()
D)getElementById()
Question
Explain what a library is and what it is used for, and name one commonly used library.
Question
What does each of the following statements do?
document.write("Plant choices");
window.alert("Plant choices");
Question
Describe why it's important to validate web documents, and how to do it.
Question
Special words that are part of the JavaScript language syntax and that can't be used as variable names are known as ____.

A)identifiers
B)reserved words
C)operands
D)operators
Question
Describe how events are useful in JavaScript code.
Question
What is client-side scripting, and how is it related to the JavaScript language?
Question
What are the components that make up a JavaScript object?
Question
Symbols such as + and * used in expressions to manipulate operands are known as ____.

A)operators
B)variables
C)events
D)properties
Question
Variables and literals contained in an expression are known as ____.

A)operators
B)operands
C)events
D)properties
Question
Which keyword do you use to create a variable?

A) for
B) value
C) assign
D) var
Question
A(n)_____ is a specific circumstance that is monitored by JavaScript and that your script can respond to in some way.
Question
Where does a script element usually go in an HTML document, and why?
Question
Under what circumstances would you use server-side scripting?
Question
What does the following code do?
var fname = document.getElementById("firstName");
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Introduction to Javascript
1
____ refers to programming using a scripting language that is executed from a web server.

A) Host-side scripting
B) Client-side scripting
C) Servlet-side scripting
D) Server-side scripting
D
2
A(n)____ comment hides multiple lines of code.

A)variable
B)element
C)line
D)block
D
3
An HTML document is a text document that contains codes called ____.

A) elements
B) tags
C) styles
D) rules
B
4
A system consisting of a client and a server is known as a ____ system.

A) traditional
B) three-tier
C) monolithic
D) two-tier
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
5
____ was established in 1994 at MIT to oversee the development of web technology standards.

A) The University of Illinois
B) The W3C
C) Microsoft
D) Netscape
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
6
The procedures associated with an object are called ____.

A) methods
B) processes
C) attributes
D) functions
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
7
Elements that do not require a closing tag are called empty elements.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
8
JavaScript code is always stored in an external file separate from the HTML or XHTML code for a web document.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
9
____ are lines of code that are not processed by browsers, which you use to add notes about your code.

A)methods
B)comments
C)variables
D)properties
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
10
In the client/server system, one of the primary roles of the client, or front end, is to ____.

A) carry out complex data processing
B) provide for data storage
C) send email
D) present an interface to the user
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
11
____ can turn static documents into applications such as games or calculators.

A) HTML
B) XHTML
C) JavaScript
D) Cascading Style Sheets
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
12
Like HTML, XHTML is not case sensitive.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
13
You can place script  elements in either the document head or in the document body.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
14
Some of the more popular server-side scripting languages include ____.

A) C, C++, and CGI
B) JScript, Livescript, and ECMAScript
C) PHP, ASP.NET, and Python
D) VBS and JScript
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
15
When a client requests a server-side script, a client will never see the server-side script, only the ____ that the web server software returns from the script.

A) email sent
B) program executing
C) HTML
D) raw data requested
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
16
A(n)____ comment occupies only a single line or part of a line.

A)variable
B)element
C)line
D)block
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
17
An object is ____ that can be treated as an individual unit or component.

A) state and contents
B) file and data
C) formatting and color
D) programming code and data
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
18
A three-tier, or multitier, client/server system consists of three distinct pieces: These are ____.

A) the client tier, the processing tier, and the data storage tier
B) the client tier, the design tier, and the processing tier
C) the storage tier, the distributing tier, and the processing tier
D) the email tier, the messaging tier, and the data storage tier
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
19
Although JavaScript is considered a programming language, it is also a critical part of web page design and authoring.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
20
On client/server systems, heavy processing, such as calculations, usually takes place on the ____.

A) client
B) server
C) middle-ware
D) browser
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
21
When you assign a value to a variable, you use an equal sign, which is also called a(n)__________ operator.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
22
Which method displays a dialog box with an OK button?

A) write()
B) alert()
C)onclick()
D)getElementById()
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
23
Match between columns
An individual line of code
W3C
An individual line of code
expression
An individual line of code
web server
An individual line of code
variable
An individual line of code
URL
An individual line of code
HTML
An individual line of code
statement
An individual line of code
block comment
An individual line of code
validation
Commonly referred to as a web address
W3C
Commonly referred to as a web address
expression
Commonly referred to as a web address
web server
Commonly referred to as a web address
variable
Commonly referred to as a web address
URL
Commonly referred to as a web address
HTML
Commonly referred to as a web address
statement
Commonly referred to as a web address
block comment
Commonly referred to as a web address
validation
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
W3C
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
expression
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
web server
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
variable
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
URL
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
HTML
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
statement
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
block comment
A value, variable, or combination that can be evaluated by a JavaScript interpreter to produce a result
validation
A markup language for creating the web pages that appear on the World Wide Web
W3C
A markup language for creating the web pages that appear on the World Wide Web
expression
A markup language for creating the web pages that appear on the World Wide Web
web server
A markup language for creating the web pages that appear on the World Wide Web
variable
A markup language for creating the web pages that appear on the World Wide Web
URL
A markup language for creating the web pages that appear on the World Wide Web
HTML
A markup language for creating the web pages that appear on the World Wide Web
statement
A markup language for creating the web pages that appear on the World Wide Web
block comment
A markup language for creating the web pages that appear on the World Wide Web
validation
Multiple lines of code that are not processed
W3C
Multiple lines of code that are not processed
expression
Multiple lines of code that are not processed
web server
Multiple lines of code that are not processed
variable
Multiple lines of code that are not processed
URL
Multiple lines of code that are not processed
HTML
Multiple lines of code that are not processed
statement
Multiple lines of code that are not processed
block comment
Multiple lines of code that are not processed
validation
A value a program stores in computer memory
W3C
A value a program stores in computer memory
expression
A value a program stores in computer memory
web server
A value a program stores in computer memory
variable
A value a program stores in computer memory
URL
A value a program stores in computer memory
HTML
A value a program stores in computer memory
statement
A value a program stores in computer memory
block comment
A value a program stores in computer memory
validation
A computer that delivers web pages
W3C
A computer that delivers web pages
expression
A computer that delivers web pages
web server
A computer that delivers web pages
variable
A computer that delivers web pages
URL
A computer that delivers web pages
HTML
A computer that delivers web pages
statement
A computer that delivers web pages
block comment
A computer that delivers web pages
validation
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
W3C
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
expression
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
web server
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
variable
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
URL
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
HTML
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
statement
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
block comment
The process of verifying that your document is well-formed and checking that the elements in your document are correctly written according to the element definitions in a specific DTD
validation
An organization overseeing web technology standards
W3C
An organization overseeing web technology standards
expression
An organization overseeing web technology standards
web server
An organization overseeing web technology standards
variable
An organization overseeing web technology standards
URL
An organization overseeing web technology standards
HTML
An organization overseeing web technology standards
statement
An organization overseeing web technology standards
block comment
An organization overseeing web technology standards
validation
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
24
JavaScript source files that store especially useful generic scripts used on many different website are known as __________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
25
A document on the web is called a web page and is identified by a unique address called the _________________________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
26
Discuss case sensitivity in JavaScript.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
27
When an event occurs, your script executes any code that responds to that specific event  on that specific element. This code is known as the __________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
28
Which method do you use to reference an element on a web page in a script?

A) write()
B) alert()
C)onclick()
D)getElementById()
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
29
Explain what a library is and what it is used for, and name one commonly used library.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
30
What does each of the following statements do?
document.write("Plant choices");
window.alert("Plant choices");
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
31
Describe why it's important to validate web documents, and how to do it.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
32
Special words that are part of the JavaScript language syntax and that can't be used as variable names are known as ____.

A)identifiers
B)reserved words
C)operands
D)operators
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
33
Describe how events are useful in JavaScript code.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
34
What is client-side scripting, and how is it related to the JavaScript language?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
35
What are the components that make up a JavaScript object?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
36
Symbols such as + and * used in expressions to manipulate operands are known as ____.

A)operators
B)variables
C)events
D)properties
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
37
Variables and literals contained in an expression are known as ____.

A)operators
B)operands
C)events
D)properties
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
38
Which keyword do you use to create a variable?

A) for
B) value
C) assign
D) var
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
39
A(n)_____ is a specific circumstance that is monitored by JavaScript and that your script can respond to in some way.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
40
Where does a script element usually go in an HTML document, and why?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
41
Under what circumstances would you use server-side scripting?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
42
What does the following code do?
var fname = document.getElementById("firstName");
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 42 flashcards in this deck.