Quiz on Python Basics

Test your knowledge of Python basics.

1

What is the result after the following program executes if the user inputs 2 and 5, respectively?

a = input ()
b = input ()
print (a+b)
A)

It shows (2+5) as a string.

B)

It shows 7 as a number.

C)

It shows 25 as a string.

D)

It shows 2+5 as a string.

Question 1 of 100 attempted

Get hands-on with 1200+ tech skills courses.