wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Class12: CS - Ch1 : Python Revision Tour(part1)

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which is the correct operator for power(xy)?

a)

x^y

b)

x**y

c)

x^^y

d)

x*y

2.

What is the answer to this expression, 22 % 3 is?

a)

7

b)

1

c)

0

d)

5

3.

Which one of these is floor division?

a)

//

b)

/

c)

%

d)

None of the above

4.

Which data type can store unique values?

a)

List

b)

Tuple

c)

Set

d)

Dictionar

5.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
6.

num1= 10

num2 = 30

(num1<num2) or (num2<0)

a)

true

b)

false

c)

nothing

7.

Which of these collections defines a LIST?

a)

["apple", "banana", "cherry"]

b)

{"name": "apple", "color": "green"}

c)

("apple", "banana", "cherry")

d)

{"apple", "banana", "cherry"}

8.

Which statement is used to stop a loop?

a)

exit

b)

break

c)

return

d)

stop

9.
What button do you press to compile (run) your program so that it runs in the shell?
a)
F3
b)
F5
c)
F7
d)
F9
10.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean