1.

Which of the following is incorrect?(a) x = 0b101(b) x = 0x4f5(c) x = 19023(d) x = 03964I had been asked this question in class test.This intriguing question comes from Numeric Types topic in portion Variable Names, Operators, Data Types & Numeric Types of Python

Answer»

The correct OPTION is (d) X = 03964

To explain I would say: NUMBERS STARTING with a 0 are octal numbers but 9 isn’t allowed in octal numbers.



Discussion

No Comment Found

Related InterviewSolutions