Question 58Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

Which of the following statements is true about JavaScript arrays?

  1. AJavaScript arrays can store elements of multiple data types.
  2. BJavaScript arrays are of fixed size.
  3. CJavaScript arrays cannot be modified once created.
  4. DJavaScript arrays can store elements of only one data type.
Show answerHide answer

Correct answer: (A) JavaScript arrays can store elements of multiple data types.

Explanation

JavaScript arrays are dynamic objects. One array can hold numbers, strings, objects and other types together, and it can grow, shrink or be changed after it is created.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

This is question 58 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.