Deck 1: Introduction to Javascript
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Match between columns
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
Play
Full screen (f)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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()
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
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()
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");
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
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
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
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
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");
var fname = document.getElementById("firstName");
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck