Question 63Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

What is the output of this code in Python Language: >>> x = 125

What is the output of this code in Python Language: >>> x = 125 >>> y = 13 >>> x //= y >>> x
  1. A9
  2. B125/13
  3. C10
  4. D9.62
Show answerHide answer

Correct answer: (A) 9

Explanation

x //= y is floor division: 125 // 13 = 9 (13 × 9 = 117, remainder 8), so x becomes 9.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 63 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. 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.