What is the output of print(2 ** 3 ** 2)?
Show answerHide answer
Correct answer: (B) 512
Explanation
** is right-associative: 3 ** 2 = 9, then 2 ** 9 = 512.
Correct answer: (B) 512
Explanation
** is right-associative: 3 ** 2 = 9, then 2 ** 9 = 512.
This is question 143 of DSSSB TGT Computer Science Full Mock Test 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.