Question 10Asked in DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2

What is the total number of elements in a array E[-4: 1, 6: 10]?

  1. A30
  2. B20
  3. C9
  4. D11
Show answerHide answer

Correct answer: (A) 30

Explanation

Rows run from −4 to 1, which is 1 − (−4) + 1 = 6 rows. Columns run from 6 to 10, which is 10 − 6 + 1 = 5 columns. Total elements = 6 × 5 = 30.

From DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2

This is question 10 of DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2. 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.