Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PyTron

Total questions: 15

Worksheet time: 3mins

Name
Class
Date
1.

What's the value of z

a)

10

b)

-10

c)

0

d)

21

2.

Select the correct list of transfer statements

a)

Break, Continue

b)

Join, Continue, Pass

c)

Null, Break, Join

d)

Break, Pass, Continue

3.

Select the last number that is printed

a)

4

b)

2

c)

1

d)

3

4.

Select the correct list that is printed

a)

0,1,2,4,5,7,8

b)

0,1,2,3,4,5,6,7,8,9

c)

1,2,3,4,5,6,7,8,9

d)

0,2,4,6,8

5.

Select the incorrect statement

a)

Loop starts with i = 0

b)

First 101 numbers are printed

c)

The loop increments two

d)

Last number printed is 100

6.

Select the correct statement regarding brackets

a)

List - []

b)

Tuples - []

c)

Sets - ()

d)

List - {}

7.

Select the correct pair

a)

list1[1] is 20

b)

list1[5] is 100

c)

list1[2] is 30

d)

list1[0] is 0

8.

What is the incorrect statemnet about List data Structure

a)

List are ordered

b)

List are mutable

c)

List are unchangeable

d)

List are indexed

9.

Select the value that is printed

a)

'hello'

b)

('hello', 'world')

c)

('world', 'hello')

d)

'world'

10.

What is the incorrect statement about Tuple data Structure

a)

Tuples are ordered

b)

Tuples are changeable

c)

Tuples are mutable

d)

Tuples are indexed

11.

Select the odd one out

a)

'one'

b)

'two'

c)

1

d)

3

12.

What is the incorrect statement about Dictionary data Structure

a)

Dictionaries are changeable

b)

Dictionaries are mutable

c)

Dictionaries can have duplicate keys

d)

Dictionaries have a key

13.

How to access data from a Set

a)

Using index

b)

Using key

c)

Using a for loop

d)

Using links

14.

What is the correct statement about Set data Structure

a)

Sets are changeable

b)

Sets are indexed

c)

Sets are ordered

d)

set can have duplicates

15.

What's the answer for the following code

a)

Error

b)

3

c)

5

d)

2