Deck 1: Introduction to Javascript

ملء الشاشة (f)
exit full mode
سؤال
____ 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
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A(n)____ comment hides multiple lines of code.

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

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

A) traditional
B) three-tier
C) monolithic
D) two-tier
سؤال
____ 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
سؤال
The procedures associated with an object are called ____.

A) methods
B) processes
C) attributes
D) functions
سؤال
Elements that do not require a closing tag are called empty elements.
سؤال
JavaScript code is always stored in an external file separate from the HTML or XHTML code for a web document.
سؤال
____ 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
سؤال
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
سؤال
____ can turn static documents into applications such as games or calculators.

A) HTML
B) XHTML
C) JavaScript
D) Cascading Style Sheets
سؤال
Like HTML, XHTML is not case sensitive.
سؤال
You can place script  elements in either the document head or in the document body.
سؤال
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
سؤال
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(n)____ comment occupies only a single line or part of a line.

A)variable
B)element
C)line
D)block
سؤال
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 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
سؤال
Although JavaScript is considered a programming language, it is also a critical part of web page design and authoring.
سؤال
On client/server systems, heavy processing, such as calculations, usually takes place on the ____.

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

A) write()
B) alert()
C)onclick()
D)getElementById()
سؤال
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
سؤال
JavaScript source files that store especially useful generic scripts used on many different website are known as __________.
سؤال
A document on the web is called a web page and is identified by a unique address called the _________________________.
سؤال
Discuss case sensitivity in JavaScript.
سؤال
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 __________.
سؤال
Which method do you use to reference an element on a web page in a script?

A) write()
B) alert()
C)onclick()
D)getElementById()
سؤال
Explain what a library is and what it is used for, and name one commonly used library.
سؤال
What does each of the following statements do?
document.write("Plant choices");
window.alert("Plant choices");
سؤال
Describe why it's important to validate web documents, and how to do it.
سؤال
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
سؤال
Describe how events are useful in JavaScript code.
سؤال
What is client-side scripting, and how is it related to the JavaScript language?
سؤال
What are the components that make up a JavaScript object?
سؤال
Symbols such as + and * used in expressions to manipulate operands are known as ____.

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

A)operators
B)operands
C)events
D)properties
سؤال
Which keyword do you use to create a variable?

A) for
B) value
C) assign
D) var
سؤال
A(n)_____ is a specific circumstance that is monitored by JavaScript and that your script can respond to in some way.
سؤال
Where does a script element usually go in an HTML document, and why?
سؤال
Under what circumstances would you use server-side scripting?
سؤال
What does the following code do?
var fname = document.getElementById("firstName");
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
العب
simple tutorial
ملء الشاشة (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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
The procedures associated with an object are called ____.

A) methods
B) processes
C) attributes
D) functions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
7
Elements that do not require a closing tag are called empty elements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
JavaScript code is always stored in an external file separate from the HTML or XHTML code for a web document.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
Like HTML, XHTML is not case sensitive.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
You can place script  elements in either the document head or in the document body.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
Although JavaScript is considered a programming language, it is also a critical part of web page design and authoring.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
When you assign a value to a variable, you use an equal sign, which is also called a(n)__________ operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which method displays a dialog box with an OK button?

A) write()
B) alert()
C)onclick()
D)getElementById()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
JavaScript source files that store especially useful generic scripts used on many different website are known as __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
25
A document on the web is called a web page and is identified by a unique address called the _________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
26
Discuss case sensitivity in JavaScript.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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 __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
29
Explain what a library is and what it is used for, and name one commonly used library.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
30
What does each of the following statements do?
document.write("Plant choices");
window.alert("Plant choices");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
Describe why it's important to validate web documents, and how to do it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
Describe how events are useful in JavaScript code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
What is client-side scripting, and how is it related to the JavaScript language?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
35
What are the components that make up a JavaScript object?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
37
Variables and literals contained in an expression are known as ____.

A)operators
B)operands
C)events
D)properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
38
Which keyword do you use to create a variable?

A) for
B) value
C) assign
D) var
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
Where does a script element usually go in an HTML document, and why?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
41
Under what circumstances would you use server-side scripting?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
What does the following code do?
var fname = document.getElementById("firstName");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.