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.

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad