JavaScript MCQs with answers Page - 57

Here, you will find a collection of MCQ questions on JavaScript. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833K Points
Coach

Q. Which keyword catches all values except those specified?

  • (A) all
  • (B) any
  • (C) default
  • (D) otherwise

A

Admin • 833K Points
Coach

Q. Which of the following is not a property of window object?

  • (A) document
  • (B) menu
  • (C) navigator
  • (D) history

A

Admin • 833K Points
Coach

Q. DOM ____?

  • (A) is dedicated for JavaScript
  • (B) is a template engine
  • (C) describes the structure of the HTML or XML document
  • (D) cannot be manipulated by JavaScript

A

Admin • 833K Points
Coach

Q. Which function does the reverse of split()?

  • (A) append()
  • (B) unite()
  • (C) join()
  • (D) concat()

A

Admin • 833K Points
Coach

Q. Which declaration provides the value of a function?

  • (A) return
  • (B) cancel
  • (C) continue
  • (D) valueOf

A

Admin • 833K Points
Coach

Q. Which property is object oriented?

  • (A) function
  • (B) if statement
  • (C) variable
  • (D) keyword

A

Admin • 833K Points
Coach

Q. Which of the following IS NOT a valid function call?

  • (A) var x = display();
  • (B) display;
  • (C) x = display();
  • (D) display();

A

Admin • 833K Points
Coach

Q. To know the identifier of the user’s OS, we use ______?

  • (A) navigator.userAgent
  • (B) navigator.system
  • (C) navigator.platform
  • (D) navigator.os

A

Admin • 833K Points
Coach

Q. Which of the following functions of “Number” object returns a string of the current number?

  • (A) toString()
  • (B) toFixed()
  • (C) toLocaleString()
  • (D) toPrecision()

A

Admin • 833K Points
Coach

Q. Which of the following functions of “String” object divides a String object into an array of strings by separating the string into substrings?

  • (A) slice()
  • (B) split()
  • (C) replace()
  • (D) search()

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ