Top 350+ Solved Web Technology MCQ Questions Answer
Q. 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
Q. 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
Q. The ‘$’ present in the RegExp object is called a
a. character
b. matcher
c. metacharacter
d. metadata
Q. The regular expression to match any one character not between the brackets is
a. [...]
b. [^]
c. [^...]
d. [\D]
Q. 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
Q. 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
Q. When will the browser invoke the handler?
a. Program begins
b. Any event occurs
c. Specified event occurs
d. None of the above
Q. 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
Q. The events that represents occurrences related to the browser window are
a. Window
b. Element
c. Display
d. Handlers
Q. 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
Q. Which is the opposite to the load event in JavaScript?
a. dontload
b. postload
c. preload
d. unload
Q. 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
Q. 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
Q. The focus and blur events are also part of
a. Element events
b. Handler events
c. Window events
d. Scroll events