Vidyalelo
Python · Q40

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 40

Q40

What is the type of the result when you add an integer and a floating-point number?

A.
Integer
B.
Floating-point
Answer
C.
String
D.
Boolean

Answer: Option B

Solution

Answer: Option B
Solution:
Adding an integer and a floating-point number results in a floating-point number.