O Level M2R5 JavaScript MCQ Practice

Practice O Level M2R5 JavaScript MCQs online. Free JavaScript MCQ practice test for M2R5 Web Designing module. Chapter-wise JavaScript MCQs with answers.

M2R5 JavaScript MCQ Practice - Master JavaScript Concepts

Master JavaScript for O Level M2R5 with our comprehensive MCQ practice tests. Our M2R5 JavaScript MCQs cover all essential topics including variables, functions, DOM manipulation, events, and more.

Practice with our JavaScript MCQ questions to test your understanding and improve your score in the M2R5 Web Designing exam. Each question includes detailed explanations.

JavaScript MCQ Practice Questions

1

Which method converts a Python dictionary into a JSON string?

A. json.parse()
B. json.stringify()
C. json.dumps()
D. json.load()
2

Which method converts a JSON string back into a Python dictionary?

A. json.dump()
B. json.parse()
C. json.loads()
D. json.read()
3

Which method is used to write a Python object directly into a JSON file?

A. json.write()
B. json.dump()
C. json.save()
D. json.put()
4

Which argument in json.dumps() is used to make the output human-readable with indents?

A. space
B. tab
C. indent
D. pretty
5

What is 'JSON' in IoT?

A. A type of sensor
B. A lightweight data-interchange format often used for sensor data
C. A programming language
D. A wireless protocol
6

What does the '...' operator do when used in a function parameter?

A. Spread operator
B. Rest parameter
C. Arithmetic operator
D. Increment
7

Which method is used to add one or more elements to the end of an array?

A. push()
B. pop()
C. shift()
D. unshift()
8

What is the purpose of 'use strict'?

A. Speeds up execution
B. Enforces stricter parsing and error handling
C. Allows global variables
D. Deletes unused code
9

Which keyword is used to create a read-only reference to a value?

A. let
B. var
C. const
D. readonly
10

What is 'Hoisting' in JavaScript?

A. Lifting elements in the DOM
B. Variables and functions moved to the top of their scope during compilation
C. A type of animation
D. A way to delete variables

Master M2R5 JavaScript

Get access to complete study material and practice tests

View Plans