MCQ
What is an array in JavaScript?
Unit-3 Programming Fundamentals
A
A single number value
B
A collection of values stored in one variable
C
A type of HTML tag
D
A CSS selector
Explanation
An array is a collection of values stored under one name, accessed using indices.
Related MCQs
Which tag defines a data cell in an HTML table?
Unit-3 Programming Fundamentals
View
Which loop condition correctly prints the numbers 1 to 10 using a for loop?
Unit-3 Programming Fundamentals
View
What is the sum of all elements of the array [1, 2, 3, 4] added by a loop?
Unit-3 Programming Fundamentals
View
What is the result of 5 + 3 in JavaScript?
Unit-3 Programming Fundamentals
View
Which tag defines a row in an HTML table?
Unit-3 Programming Fundamentals
View
Which attribute is used with the <a> tag to specify the destination of the link?
Unit-3 Programming Fundamentals
View