adplus-dvertising
frame-decoration

Question

What is the result of round(0.5) – round(-0.5)?

a.

1.0

b.

2.0

c.

0.0

d.

None of the mentioned

Posted under Python

Answer: (b).2.0

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the result of round(0.5) – round(-0.5)?

Similar Questions

Discover Related MCQs

Q. What does 3 ^ 4 evaluate to?

Q. The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same. State whether true or false.

Q. The value of the expression:

4 + 3 % 5

Q. Which of the following expressions involves coercion when evaluated in Python?

Q. Which of the following expressions is an example of type conversion?

Q. Which of the following expressions results in an error?

Q. The expression 2**2**3 is evaluates as: (2**2)**3. State whether this statement is true or false.

Q. It is not possible for the two’s complement value to be equal to the original value in any case. State whether this statement is true or false.

Q. Which of the following Boolean expressions is not logically equivalent to the other three?

Q. Operators with the same precedence are evaluated in which manner?

Q. What is the output of this expression, 3*1**3?

Q. Which one of the following have the same precedence?

Q. The expression Int(x) implies that the variable x is converted to integer. State whether true or false.

Q. Which one of the following have the highest precedence in the expression?

Q. Evaluate the expression given below if A= 16 and B = 15.

A % B // A

Q. Which of the following operators has its associativity from right to left?

Q. What is the value of x if:

x = int(43.55+2/2)

Q. What is the value of the following expression?

2+4.00, 2**4.0

Q. Which of the following is the truncation division operator?

Q. What is the value of the following expression:

8/4/2, 8/(4/2)