Deck 13: Programming Web Pages With Javascript

ملء الشاشة (f)
exit full mode
سؤال
The value property refers to the current value of a form field or an object property.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A common method for changing an element's CSS styles in response to a user's actions is to add or remove ID values from the element in response to events. _________________________
سؤال
JavaScript names can include spaces.
سؤال
JavaScript supports the use of symbols known as operators to compare or change the values of multiple objects or properties._________________________
سؤال
Whenever you use a method, you specify its parent object first, followed by a space and then the method name.
سؤال
You can use browser developer tools to enter test code and view error messages related to JavaScript.
سؤال
You can access any HTML element by specifying a CSS selector using the querySelector() method. _________________________
سؤال
The contents of a function are executed automatically when they are parsed by a browser.
سؤال
The submit event takes place when a user clicks or touches an element.  _________________________
سؤال
You can think of the DOM as a hierarchical arrangement of the content of an HTML document into a tree-like structure, which is known as a DOM root . _________________________
سؤال
To retrieve data from or make changes to a web page element, you must first write code that identifies the specific object you want to work with.
سؤال
In the DOM, each HTML element is considered a(n) property . _________________________
سؤال
To call a function in response to a user action, a developer creates a(n) object listener. _________________________
سؤال
To create a variable, you use the keyword create ._________________________
سؤال
It's common to store object references as variables.
سؤال
Method names are always followed by quotation marks.
سؤال
A(n) property is a JavaScript instruction that performs an action. _________________________
سؤال
The assignment operator is simply a question mark (?).
سؤال
The addEventListener method is commonly used to access the element specified by a CSS selector.
سؤال
The script element is added to an HTML document to reference an external JavaScript file. _________________________
سؤال
The __________, which is part of the developer tools in a modern web browser, can be used to enter test code and view error message related to JavaScript.

A) address bar
B) bookmarks list
C) console
D) emulator
سؤال
You can access any HTML element by specifying a CSS selector using the ____ method.

A) querySelector()
B) addEventListener()
C) checkValidity()
D) write()
سؤال
A(n) __________ is a JavaScript instruction that performs an action.

A) function
B) event
C) statement
D) operator
سؤال
Standard ____ for objects include the text content associated with an object, the name of the object, and the name of an associated attribute.

A) properties
B) statements
C) attributes
D) values
سؤال
Every JavaScript statement ends with a(n) __________.

A) colon ( : )
B) period ( . )
C) semicolon ( ; )
D) comma ( , )
سؤال
The __________ object is the parent element of the DOM tree.

A) Document
B) Element
C) Head
D) Body
سؤال
The first line of a function begins with the word function , followed by its name and a pair of ____.

A) quotation marks
B) parentheses
C) equal signs
D) exclamation marks
سؤال
The DOM defines ____, which are actions that are associated with an object.

A) modes
B) methods
C) events
D) activities
سؤال
To assign a new property value, you use the assignment operator, which is simply a(n) __________.

A) equal sign ( = )
B) plus sign ( + )
C) less-than sign (
D) greater-than sign ( > )
سؤال
The punctuation for a function is similar to that of a CSS style rule: an opening ____ goes at the beginning.

A) curly brace ( { )
B) bracket ( [ )
C) quotation mark ( " )
D) pound sign ( # )
سؤال
Multi-line comments in JavaScript use the same format as __________ comments.

A) WebVTT
B) XHTML
C) CSS
D) HTML
سؤال
JavaScript allows you to create __________, which are values that are stored and that you can access with a name that you specify.

A) events
B) variables
C) event listeners
D) statements
سؤال
Developers can write JavaScript that responds to actions, known as __________, which include many actions commonly performed on a web page.

A) methods
B) activities
C) events
D) statements
سؤال
Whenever you use a method, you specify its parent object first, followed by a(n) __________ and then the method name.

A) period
B) comma
C) semicolon
D) hyphen
سؤال
You specify a CSS selector in __________ within the parentheses of the querySelector() method to reference an object.

A) square brackets ( [ ] )
B) curly braces ( { } )
C) angle brackets ( )
D) quotes ( " " )
سؤال
Writing code to look up and change data associated with parts of HTML documents requires a standardized way of referring to the parts of a Web page; this system is known as the Document _________ Model.

A) Element
B) Object
C) Property
D) Method
سؤال
The ____ event occurs when a user clicks or touches an element.

A) click
B) submit
C) focus
D) load
سؤال
The statement that creates a variable starts with the keyword __________.

A) function
B) var
C) variable
D) create
سؤال
The __________ property refers to the current value of a form field or an object property.

A) classValue
B) src
C) textContent
D) value
سؤال
The ____ event occurs when a user moves the mouse pointer over an element or touches an element.

A) submit
B) mouseover
C) mouseout
D) load
سؤال
Using comparison operators, you can create a(n) __________ statement, in which two values are compared and if the result is true, one or more statements are executed.

A) if
B) compare
C) which
D) for
سؤال
<strong>  Referring to the figure above, the code in this figure creates a(n) __________.</strong> A) function B) if statement C) variable D) event listener <div style=padding-top: 35px> Referring to the figure above, the code in this figure creates a(n) __________.

A) function
B) if statement
C) variable
D) event listener
سؤال
If Patrice wants to reference the content of an object and wants her code to work for users if IE8, she will use the __________ property.

A) textContent
B) innerHTML
C) src
D) classValue
سؤال
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
Alicia can change the CSS styles of the image with the mouse pointer over it by changing the element's __________ property with JavaScript to add or remove class values from the element.

A) elementName
B) className
C) value
D) textContent
سؤال
To call a function in response to a user action, a developer creates a(n) __________.

A) event listener
B) variable
C) event
D) operator
سؤال
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
Alicia can create code that responds to an event using a(n) __________.

A) variable
B) if statement
C) eventListener
D) property
سؤال
<strong>  Referring to the figure above, the code addressState.textContent === CO is a(n) __________.</strong> A) variable B) function C) expression D) event listener <div style=padding-top: 35px> Referring to the figure above, the code addressState.textContent === "CO" is a(n) __________.

A) variable
B) function
C) expression
D) event listener
سؤال
<strong>  Referring to the figure above, what is the role of the line of code labeled with the number 2?</strong> A) function call B) event listener C) function D) conditional statement <div style=padding-top: 35px> Referring to the figure above, what is the role of the line of code labeled with the number 2?

A) function call
B) event listener
C) function
D) conditional statement
سؤال
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
In Alicia's JavaScript code, she can refer to a user moving the mouse pointer over an element with the __________ event.

A) load
B) mouseover
C) mouseout
D) submit
سؤال
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
Alicia can create a set of statements to make the changes to her web page and reference the statements as a single unit by creating a(n) __________.

A) function
B) variable
C) event listener
D) if statement
سؤال
A common method to change the CSS styles of an element in response to a user's actions is to add or remove __________ values from the element in response to events.

A) ID
B) form
C) class
D) CSS
سؤال
<strong>  Referring to the figure above, the word addEventListener is an example of a(n) __________.</strong> A) property B) variable C) method D) value <div style=padding-top: 35px> Referring to the figure above, the word addEventListener is an example of a(n) __________.

A) property
B) variable
C) method
D) value
سؤال
<strong>  Referring to the figure above, which of the following describes when the statements within the braces are executed?</strong> A) Only if the expression is true. B) Only if the expression is false. C) Whether the expression is true or false. D) Only in response to an event. <div style=padding-top: 35px> Referring to the figure above, which of the following describes when the statements within the braces are executed?

A) Only if the expression is true.
B) Only if the expression is false.
C) Whether the expression is true or false.
D) Only in response to an event.
سؤال
<strong>  Referring to the figure above, which of the following is a function name used in the code shown?</strong> A) greetingText B) addGreeting C) Good Morning! D) function <div style=padding-top: 35px> Referring to the figure above, which of the following is a function name used in the code shown?

A) greetingText
B) addGreeting
C) Good Morning!
D) function
سؤال
JavaScript supports the use of symbols known as __________ to compare or change the values of multiple objects or properties.

A) statements
B) functions
C) operators
D) variables
سؤال
Case-Based Critical Thinking Question Patrice is creating JavaScript code for her website. Her first task is to reference several HTML elements.
Patrice can reference HTML elements in JavaScript using the __________ method.

A) selectElement
B) selectId
C) querySelector
D) addEventListener
سؤال
<strong>  Referring to the figure above, which of the following is a variable name used in the code shown?</strong> A) greetingText B) addGreeting C) Good Morning! D) function <div style=padding-top: 35px> Referring to the figure above, which of the following is a variable name used in the code shown?

A) greetingText
B) addGreeting
C) Good Morning!
D) function
سؤال
<strong>  Referring to the figure above, what is the role of the line of code labeled with the number 1?</strong> A) It creates an event listener. B) It is a function. C) It creates a variable. D) It is a conditional statement. <div style=padding-top: 35px> Referring to the figure above, what is the role of the line of code labeled with the number 1?

A) It creates an event listener.
B) It is a function.
C) It creates a variable.
D) It is a conditional statement.
سؤال
<strong>  Referring to the figure above, what is the role of the three lines of code labeled with the number 1?</strong> A) function call B) event listener C) function D) conditional statement <div style=padding-top: 35px> Referring to the figure above, what is the role of the three lines of code labeled with the number 1?

A) function call
B) event listener
C) function
D) conditional statement
سؤال
Case-Based Critical Thinking Question Patrice is creating JavaScript code for her website. Her first task is to reference several HTML elements.
If Patrice follows common practice among JavaScript developers, she will store the HTML element references as __________.

A) functions
B) variables
C) event listeners
D) properties
سؤال
A function starts with the keyword __________.
سؤال
Name 3 ways that the punctuation for a function is similar to that of a CSS style rule.
سؤال
Explain the syntax of a statement that uses the assignment operator.
سؤال
Each item in the DOM tree--including elements, attributes, and text content--is known as a(n) __________.
سؤال
What kind of information can you store in a variable? How are variables useful when creating object references, and why?
سؤال
The querySelector() method is a child of the __________ object.
سؤال
Each DOM node is associated with a standard set of information; each piece of information is known as a(n) ________________.
سؤال
When creating a variable name that contains multiple words, it's common to use __________ case.
سؤال
Match between columns
the text content of an object, excluding any nested HTML tags
src
the text content of an object, excluding any nested HTML tags
textContent
the text content of an object, excluding any nested HTML tags
value
the text content of an object, excluding any nested HTML tags
innerHTML
the text content of an object, excluding any nested HTML tags
classValue
the path and source filename for an element with a src attribute
src
the path and source filename for an element with a src attribute
textContent
the path and source filename for an element with a src attribute
value
the path and source filename for an element with a src attribute
innerHTML
the path and source filename for an element with a src attribute
classValue
the value of an element's class attribute
src
the value of an element's class attribute
textContent
the value of an element's class attribute
value
the value of an element's class attribute
innerHTML
the value of an element's class attribute
classValue
the current value of a form field or an object property
src
the current value of a form field or an object property
textContent
the current value of a form field or an object property
value
the current value of a form field or an object property
innerHTML
the current value of a form field or an object property
classValue
the content of an object, including any nested HTML tags
src
the content of an object, including any nested HTML tags
textContent
the content of an object, including any nested HTML tags
value
the content of an object, including any nested HTML tags
innerHTML
the content of an object, including any nested HTML tags
classValue
سؤال
To execute the contents of a function, you must include a reference to the function name, known as a function __________, elsewhere in your code.
سؤال
Using comparison operators, you can create a(n) __________ statement, in which two values are compared and if the result is true, one or more statements are executed.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/71
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 13: Programming Web Pages With Javascript
1
The value property refers to the current value of a form field or an object property.
True
2
A common method for changing an element's CSS styles in response to a user's actions is to add or remove ID values from the element in response to events. _________________________
False
3
JavaScript names can include spaces.
False
4
JavaScript supports the use of symbols known as operators to compare or change the values of multiple objects or properties._________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
5
Whenever you use a method, you specify its parent object first, followed by a space and then the method name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
6
You can use browser developer tools to enter test code and view error messages related to JavaScript.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
7
You can access any HTML element by specifying a CSS selector using the querySelector() method. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
8
The contents of a function are executed automatically when they are parsed by a browser.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
9
The submit event takes place when a user clicks or touches an element.  _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
10
You can think of the DOM as a hierarchical arrangement of the content of an HTML document into a tree-like structure, which is known as a DOM root . _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
11
To retrieve data from or make changes to a web page element, you must first write code that identifies the specific object you want to work with.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
12
In the DOM, each HTML element is considered a(n) property . _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
13
To call a function in response to a user action, a developer creates a(n) object listener. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
14
To create a variable, you use the keyword create ._________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
15
It's common to store object references as variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
16
Method names are always followed by quotation marks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
17
A(n) property is a JavaScript instruction that performs an action. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
18
The assignment operator is simply a question mark (?).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
19
The addEventListener method is commonly used to access the element specified by a CSS selector.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
20
The script element is added to an HTML document to reference an external JavaScript file. _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
21
The __________, which is part of the developer tools in a modern web browser, can be used to enter test code and view error message related to JavaScript.

A) address bar
B) bookmarks list
C) console
D) emulator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
22
You can access any HTML element by specifying a CSS selector using the ____ method.

A) querySelector()
B) addEventListener()
C) checkValidity()
D) write()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
23
A(n) __________ is a JavaScript instruction that performs an action.

A) function
B) event
C) statement
D) operator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
24
Standard ____ for objects include the text content associated with an object, the name of the object, and the name of an associated attribute.

A) properties
B) statements
C) attributes
D) values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
25
Every JavaScript statement ends with a(n) __________.

A) colon ( : )
B) period ( . )
C) semicolon ( ; )
D) comma ( , )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
26
The __________ object is the parent element of the DOM tree.

A) Document
B) Element
C) Head
D) Body
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
27
The first line of a function begins with the word function , followed by its name and a pair of ____.

A) quotation marks
B) parentheses
C) equal signs
D) exclamation marks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
28
The DOM defines ____, which are actions that are associated with an object.

A) modes
B) methods
C) events
D) activities
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
29
To assign a new property value, you use the assignment operator, which is simply a(n) __________.

A) equal sign ( = )
B) plus sign ( + )
C) less-than sign (
D) greater-than sign ( > )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
30
The punctuation for a function is similar to that of a CSS style rule: an opening ____ goes at the beginning.

A) curly brace ( { )
B) bracket ( [ )
C) quotation mark ( " )
D) pound sign ( # )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
31
Multi-line comments in JavaScript use the same format as __________ comments.

A) WebVTT
B) XHTML
C) CSS
D) HTML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
32
JavaScript allows you to create __________, which are values that are stored and that you can access with a name that you specify.

A) events
B) variables
C) event listeners
D) statements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
33
Developers can write JavaScript that responds to actions, known as __________, which include many actions commonly performed on a web page.

A) methods
B) activities
C) events
D) statements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
34
Whenever you use a method, you specify its parent object first, followed by a(n) __________ and then the method name.

A) period
B) comma
C) semicolon
D) hyphen
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
35
You specify a CSS selector in __________ within the parentheses of the querySelector() method to reference an object.

A) square brackets ( [ ] )
B) curly braces ( { } )
C) angle brackets ( )
D) quotes ( " " )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
36
Writing code to look up and change data associated with parts of HTML documents requires a standardized way of referring to the parts of a Web page; this system is known as the Document _________ Model.

A) Element
B) Object
C) Property
D) Method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
37
The ____ event occurs when a user clicks or touches an element.

A) click
B) submit
C) focus
D) load
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
38
The statement that creates a variable starts with the keyword __________.

A) function
B) var
C) variable
D) create
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
39
The __________ property refers to the current value of a form field or an object property.

A) classValue
B) src
C) textContent
D) value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
40
The ____ event occurs when a user moves the mouse pointer over an element or touches an element.

A) submit
B) mouseover
C) mouseout
D) load
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
41
Using comparison operators, you can create a(n) __________ statement, in which two values are compared and if the result is true, one or more statements are executed.

A) if
B) compare
C) which
D) for
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
42
<strong>  Referring to the figure above, the code in this figure creates a(n) __________.</strong> A) function B) if statement C) variable D) event listener Referring to the figure above, the code in this figure creates a(n) __________.

A) function
B) if statement
C) variable
D) event listener
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
43
If Patrice wants to reference the content of an object and wants her code to work for users if IE8, she will use the __________ property.

A) textContent
B) innerHTML
C) src
D) classValue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
44
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
Alicia can change the CSS styles of the image with the mouse pointer over it by changing the element's __________ property with JavaScript to add or remove class values from the element.

A) elementName
B) className
C) value
D) textContent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
45
To call a function in response to a user action, a developer creates a(n) __________.

A) event listener
B) variable
C) event
D) operator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
46
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
Alicia can create code that responds to an event using a(n) __________.

A) variable
B) if statement
C) eventListener
D) property
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
47
<strong>  Referring to the figure above, the code addressState.textContent === CO is a(n) __________.</strong> A) variable B) function C) expression D) event listener Referring to the figure above, the code addressState.textContent === "CO" is a(n) __________.

A) variable
B) function
C) expression
D) event listener
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
48
<strong>  Referring to the figure above, what is the role of the line of code labeled with the number 2?</strong> A) function call B) event listener C) function D) conditional statement Referring to the figure above, what is the role of the line of code labeled with the number 2?

A) function call
B) event listener
C) function
D) conditional statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
49
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
In Alicia's JavaScript code, she can refer to a user moving the mouse pointer over an element with the __________ event.

A) load
B) mouseover
C) mouseout
D) submit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
50
Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript.
Alicia can create a set of statements to make the changes to her web page and reference the statements as a single unit by creating a(n) __________.

A) function
B) variable
C) event listener
D) if statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
51
A common method to change the CSS styles of an element in response to a user's actions is to add or remove __________ values from the element in response to events.

A) ID
B) form
C) class
D) CSS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
52
<strong>  Referring to the figure above, the word addEventListener is an example of a(n) __________.</strong> A) property B) variable C) method D) value Referring to the figure above, the word addEventListener is an example of a(n) __________.

A) property
B) variable
C) method
D) value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
53
<strong>  Referring to the figure above, which of the following describes when the statements within the braces are executed?</strong> A) Only if the expression is true. B) Only if the expression is false. C) Whether the expression is true or false. D) Only in response to an event. Referring to the figure above, which of the following describes when the statements within the braces are executed?

A) Only if the expression is true.
B) Only if the expression is false.
C) Whether the expression is true or false.
D) Only in response to an event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
54
<strong>  Referring to the figure above, which of the following is a function name used in the code shown?</strong> A) greetingText B) addGreeting C) Good Morning! D) function Referring to the figure above, which of the following is a function name used in the code shown?

A) greetingText
B) addGreeting
C) Good Morning!
D) function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
55
JavaScript supports the use of symbols known as __________ to compare or change the values of multiple objects or properties.

A) statements
B) functions
C) operators
D) variables
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
56
Case-Based Critical Thinking Question Patrice is creating JavaScript code for her website. Her first task is to reference several HTML elements.
Patrice can reference HTML elements in JavaScript using the __________ method.

A) selectElement
B) selectId
C) querySelector
D) addEventListener
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
57
<strong>  Referring to the figure above, which of the following is a variable name used in the code shown?</strong> A) greetingText B) addGreeting C) Good Morning! D) function Referring to the figure above, which of the following is a variable name used in the code shown?

A) greetingText
B) addGreeting
C) Good Morning!
D) function
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
58
<strong>  Referring to the figure above, what is the role of the line of code labeled with the number 1?</strong> A) It creates an event listener. B) It is a function. C) It creates a variable. D) It is a conditional statement. Referring to the figure above, what is the role of the line of code labeled with the number 1?

A) It creates an event listener.
B) It is a function.
C) It creates a variable.
D) It is a conditional statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
59
<strong>  Referring to the figure above, what is the role of the three lines of code labeled with the number 1?</strong> A) function call B) event listener C) function D) conditional statement Referring to the figure above, what is the role of the three lines of code labeled with the number 1?

A) function call
B) event listener
C) function
D) conditional statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
60
Case-Based Critical Thinking Question Patrice is creating JavaScript code for her website. Her first task is to reference several HTML elements.
If Patrice follows common practice among JavaScript developers, she will store the HTML element references as __________.

A) functions
B) variables
C) event listeners
D) properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
61
A function starts with the keyword __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
62
Name 3 ways that the punctuation for a function is similar to that of a CSS style rule.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
63
Explain the syntax of a statement that uses the assignment operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
64
Each item in the DOM tree--including elements, attributes, and text content--is known as a(n) __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
65
What kind of information can you store in a variable? How are variables useful when creating object references, and why?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
66
The querySelector() method is a child of the __________ object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
67
Each DOM node is associated with a standard set of information; each piece of information is known as a(n) ________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
68
When creating a variable name that contains multiple words, it's common to use __________ case.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
69
Match between columns
the text content of an object, excluding any nested HTML tags
src
the text content of an object, excluding any nested HTML tags
textContent
the text content of an object, excluding any nested HTML tags
value
the text content of an object, excluding any nested HTML tags
innerHTML
the text content of an object, excluding any nested HTML tags
classValue
the path and source filename for an element with a src attribute
src
the path and source filename for an element with a src attribute
textContent
the path and source filename for an element with a src attribute
value
the path and source filename for an element with a src attribute
innerHTML
the path and source filename for an element with a src attribute
classValue
the value of an element's class attribute
src
the value of an element's class attribute
textContent
the value of an element's class attribute
value
the value of an element's class attribute
innerHTML
the value of an element's class attribute
classValue
the current value of a form field or an object property
src
the current value of a form field or an object property
textContent
the current value of a form field or an object property
value
the current value of a form field or an object property
innerHTML
the current value of a form field or an object property
classValue
the content of an object, including any nested HTML tags
src
the content of an object, including any nested HTML tags
textContent
the content of an object, including any nested HTML tags
value
the content of an object, including any nested HTML tags
innerHTML
the content of an object, including any nested HTML tags
classValue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
70
To execute the contents of a function, you must include a reference to the function name, known as a function __________, elsewhere in your code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
71
Using comparison operators, you can create a(n) __________ statement, in which two values are compared and if the result is true, one or more statements are executed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 71 في هذه المجموعة.