adplus-dvertising
frame-decoration

Question

What is the average value of the code that is executed below ?
>>>grade1 = 80
>>>grade2 = 90
>>>average = (grade1 + grade2) / 2

a.

85

b.

85.1

c.

95

d.

95.1

Answer: (b).85.1

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 average value of the code that is executed below ?

Similar Questions

Discover Related MCQs

Q. Select all options that print:

hello-how-are-you

Q. What is the return value of trunc() ?

Q. What is the output of print 0.1 + 0.2 == 0.3?

Q. Which of the following is not a complex number?

Q. What is the type of inf?

Q. What does ~4 evaluate to?

Q. What does ~~~~~~5 evaluate to?

Q. Which of the following is incorrect?

Q. What is the result of cmp(3, 1)?

Q. Which of the following is incorrect?

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

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?