Deck 16: Javascript and Event Handling: Understanding Expressions, Methods, and Events

Full screen (f)
exit full mode
Question
JavaScript is a _______________ language

A)Object-Oriented
B)High-level
C)Assembly-language
D)Object-Based
Use Space or
up arrow
down arrow
to flip the card.
Question
A conditional expression is also called a

A)Alternate to if-else
B)Immediate if
C)If-then-else statement
D)None of the above
Question
The "var" and "function" are

A)Keywords
B)Declaration statements
C)Datatypes
D)Prototypes
Question
The method or operator used to identify the array is

A)isarrayType()
B)==
C)===
D)typeof
Question
What will happen if reverse() and join() methods are used simultaneously ?

A)Reverses and stores in the same array
B)Reverses and concatenates the elements of the array
C)Reverses
D)All of the above
Question
The pop() method of the array does which of the following task ?

A)decrements the total length by 1
B)increments the total length by 1
C)prints the first element but no effect on the length
D)None of the above
Question
The '$' present in the RegExp object is called a

A)character
B)matcher
C)metacharacter
D)metadata
Question
The regular expression to match any one character not between the brackets is

A)[...]
B)[^]
C)[^...]
D)[\D]
Question
The type that specifies what kind of event occured is

A)event type
B)even target
C)Both a and b
D)None of the above
Question
Which is the object on which the event occured or with which the event is associated?

A)event type
B)event target
C)Both a and b
D)None of the above
Question
In general, event handler is nothing but

A)function
B)interface
C)event
D)handler
Question
When will the browser invoke the handler?

A)Program begins
B)Any event occurs
C)Specified event occurs
D)None of the above
Question
Which are the events that have default actions that can be canceled by event handlers?

A)Submit and form-related events
B)Reset and form-related events
C)Submit and reset events
D)None of the mentioned
Question
The events that represents occurrences related to the browser window are

A)Window
B)Element
C)Display
D)Handlers
Question
Which event is fired when a document and all of its external resources are fully loaded and displayed to the user?

A)Window
B)Load
C)Element
D)Handler
Question
Which is the opposite to the load event in JavaScript?

A)dontload
B)postload
C)preload
D)unload
Question
When are the mouse events generated?

A)When user clicks the mouse over a document
B)When user moves the mouse over a document
C)Both a and b
D)None of the above
Question
When is the mouseover event fired?

A)When mouse is moved over a new element
B)When mouse is clicked
C)When mouse is both moved and clicked
D)None of the above
Question
The focus and blur events are also part of

A)Element events
B)Handler events
C)Window events
D)Scroll events
Question
Which syntax is used to describe elements in CSS?

A)Protectors
B)Selectors
C)Both a and b
D)None of the above
Question
The C in CSS stands for

A)Continuous
B)Cascaded
C)Contentional
D)Cascading
Question
When are the keyboard events fired?

A)When user manually calls the button
B)When user clicks a key
C)When the user calls the modifier
D)All of the above
Question
What PHP stands for?

A)Hypertext Preprocessor
B)Pre Hypertext Processor
C)Pre Hyper Processor
D)Pre Hypertext Process
Question
Which of the following tags is not a valid way to begin and end a PHP code block?

A)<% %>
B)<? ?>
C)<! !>
D)<? php ?>
Question
Variables always start with a ........ in PHP

A)Pond-sign
B)Yen-sign
C)Dollar-sign
D)Euro-sign
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 16: Javascript and Event Handling: Understanding Expressions, Methods, and Events
1
JavaScript is a _______________ language

A)Object-Oriented
B)High-level
C)Assembly-language
D)Object-Based
Object-Based
2
A conditional expression is also called a

A)Alternate to if-else
B)Immediate if
C)If-then-else statement
D)None of the above
Immediate if
3
The "var" and "function" are

A)Keywords
B)Declaration statements
C)Datatypes
D)Prototypes
Declaration statements
4
The method or operator used to identify the array is

A)isarrayType()
B)==
C)===
D)typeof
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
What will happen if reverse() and join() methods are used simultaneously ?

A)Reverses and stores in the same array
B)Reverses and concatenates the elements of the array
C)Reverses
D)All of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The pop() method of the array does which of the following task ?

A)decrements the total length by 1
B)increments the total length by 1
C)prints the first element but no effect on the length
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
The '$' present in the RegExp object is called a

A)character
B)matcher
C)metacharacter
D)metadata
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
The regular expression to match any one character not between the brackets is

A)[...]
B)[^]
C)[^...]
D)[\D]
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The type that specifies what kind of event occured is

A)event type
B)even target
C)Both a and b
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Which is the object on which the event occured or with which the event is associated?

A)event type
B)event target
C)Both a and b
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
In general, event handler is nothing but

A)function
B)interface
C)event
D)handler
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
When will the browser invoke the handler?

A)Program begins
B)Any event occurs
C)Specified event occurs
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Which are the events that have default actions that can be canceled by event handlers?

A)Submit and form-related events
B)Reset and form-related events
C)Submit and reset events
D)None of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
The events that represents occurrences related to the browser window are

A)Window
B)Element
C)Display
D)Handlers
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which event is fired when a document and all of its external resources are fully loaded and displayed to the user?

A)Window
B)Load
C)Element
D)Handler
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Which is the opposite to the load event in JavaScript?

A)dontload
B)postload
C)preload
D)unload
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
When are the mouse events generated?

A)When user clicks the mouse over a document
B)When user moves the mouse over a document
C)Both a and b
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
When is the mouseover event fired?

A)When mouse is moved over a new element
B)When mouse is clicked
C)When mouse is both moved and clicked
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The focus and blur events are also part of

A)Element events
B)Handler events
C)Window events
D)Scroll events
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Which syntax is used to describe elements in CSS?

A)Protectors
B)Selectors
C)Both a and b
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
The C in CSS stands for

A)Continuous
B)Cascaded
C)Contentional
D)Cascading
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
When are the keyboard events fired?

A)When user manually calls the button
B)When user clicks a key
C)When the user calls the modifier
D)All of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
What PHP stands for?

A)Hypertext Preprocessor
B)Pre Hypertext Processor
C)Pre Hyper Processor
D)Pre Hypertext Process
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following tags is not a valid way to begin and end a PHP code block?

A)<% %>
B)<? ?>
C)<! !>
D)<? php ?>
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Variables always start with a ........ in PHP

A)Pond-sign
B)Yen-sign
C)Dollar-sign
D)Euro-sign
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.