CBSE Class 11 Informatics Practices Question 3 of 102

Python Programming Fundamentals — Question 3

Back to all questions
3
Question

Question 3

Assertion (A): In Python, integers are zero, positive or negative whole numbers without a fractional part.

Reasoning (R): -45, 655.55, -1000, 55.89 are the integer values in Python.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

A is true but R is false.

Explanation
Integer represents whole numbers without any fractional part. They can be zero, positive or negative. -45, -1000 are the integer values in Python while 655.55, 55.89 are floating-point numbers.