Top 350+ Solved Web Technology MCQ Questions Answer

From 301 to 315 of 417

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

  • a. Reverses and stores in the same array

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

  • a. decrements the total length by 1

Q. The ‘$’ present in the RegExp object is called a

a. character

b. matcher

c. metacharacter

d. metadata

  • c. metacharacter

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

  • a. event type

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

  • b. event target

Q. In general, event handler is nothing but

a. function

b. interface

c. event

d. handler

  • a. function

Q. When will the browser invoke the handler?

a. Program begins

b. Any event occurs

c. Specified event occurs

d. None of the above

  • c. Specified event occurs

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

  • c. Submit and reset events

Q. The events that represents occurrences related to the browser window are

a. Window

b. Element

c. Display

d. Handlers

  • a. Window

Q. Which is the opposite to the load event in JavaScript?

a. dontload

b. postload

c. preload

d. unload

  • 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

  • c. Both a and b

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

  • a. When mouse is moved over a new element

Q. The focus and blur events are also part of

a. Element events

b. Handler events

c. Window events

d. Scroll events

  • c. Window events
Subscribe Now

Get All Updates & News