KnowledgeBoat Logo
|

Computer Science

Assertion (A): The function ceil() is a commonly used function from math module.

Reasoning (R): The ceil() function takes a numeric argument and returns the smallest integer that is greater than or equal to the argument.

  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.

Python Modules

2 Likes

Answer

Both A and R are true and R is the correct explanation of A.

Explanation
The function ceil() is a commonly used function from math module. The ceil() function takes a numeric argument and returns the closest integer that is greater than or equal to the argument. The syntax is math.ceil(x).

Answered By

2 Likes


Related Questions