Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Understanding Python Output

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Whats the output of

print('welcome to oman")

a)

welcome to oman

b)

Error

c)

no output

d)

None of these

2.

Print('I like cats') is there any error if yes then whats the reason if not then whats the output

a)

No error and output is I like cats

b)

Error and reason is print should be all small case

c)

No error and the output is print cat

d)

None of theses

3.

What is the output of the below

print("10*10=",10*10)

a)

10+10=10+10

b)

100=10*10

c)

10*10=100

d)

Error

4.

print('20/20 = 20/20')

a)

20/20=1

b)

20/20=20/20

c)

Error

d)

None of these

5.

Find the error, print('Gulf College)

a)

No Error

b)

closing ' missing

c)

Gulf College

d)

None of the above

6.

What is the output print('I love Oman'

a)

I love Oman

b)

Error as closing bracket missing

c)

No output

d)

None of the above

7.

What is the output of print(100-50)

a)

50

b)

150

c)

Error Message

d)

None the above

8.

What will be the output print('20/20 = '20/20)

a)

20/20 = 20/20

b)

Error message as , missing

c)

20/20 = 1

d)

None of the above

9.

a=2

b='Oman'

print(a+b)

a)

2Oman

b)

OmanOman

c)

error

d)

a+b

10.

a=5

b='Gulf College'

print(b*a)

a)

5Gulf College

b)

Gulf CollegeGulf CollegeGulf CollegeGulf CollegeGulf College

c)

Error

d)

b*a