Question 143

What is the output of print(list(range(2, 10, 3)))?

  1. A[2, 5, 8]
  2. B[3, 6, 9]
  3. C[2, 3, 4]
  4. D[2, 5, 8, 11]
Show answerHide answer

Correct answer: (A) [2, 5, 8]

Explanation

Starts at 2, step 3, stops before 10.

From DSSSB TGT Computer Science Full Mock Test 5

This is question 143 of DSSSB TGT Computer Science Full Mock Test 5. 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.