NIELIT O Level Exam

What will be the value of = round (247, -2)?

What will be the value of = round (247, -2)?

=round(247,-2) का क्या मान आएगा?

A. 247

B. 200

C. 240

D. 200.47




Correct Answer is :

B. 200



Explanation

The round() function is commonly used to round a number to a specified number of decimal places. However, in this case, the second argument is -2, which means rounding to the nearest multiple of 100 (10 to the power of -2).

So, for the input round(247, -2), the result will be:

Identify the position to round to based on the negative exponent (in this case, -2).

The number 247 rounded to the nearest multiple of 100 is 200.

Therefore, round(247, -2) equals 200.

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad