Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2.2.3 Arrays

Total questions: 10

Worksheet time: 12mins

Name
Class
Date
1.

day = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]

Using the one-dimensional array output the day beginning with the letter M



(a)  

2.

day = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]

Using the one-dimensional array output the days beginning with the letter S



(a)  

3.

day = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]

Using the one-dimensional array output the days beginning with the letter T



(a)  

4.

day = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]

employee = ["Raj", "Megan", "Saba", "Jerome", "Adam"]

Saba works on Wednesday. Output this information using the template below.



(a)  

5.

day = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]

employee = ["Raj", "Megan", "Saba", "Jerome", "Adam"]

Raj works on Monday. Output this information using the template below.



(a)  

6.

number= [ 27, 96, 45, 34,23,18,19]

Match the values to the array

a)

number[0]

1.

27

b)

number[1]

2.

96

c)

number[3]

3.

34

d)

number[2]

4.

45

e)

number[5]

5.

18

7.

symbols = [ "A", "B", "C", "D", "E", "F"]

​ (a)   index =0 to ​ (b)  

print (​ (c)   [​ (d)   ])

​ (e)   index

Choose from the below words
index
symbols
next
for
5
6
endfor
while
8.

colour= [ "Grey", "Blue", "Black" ,"Yellow", "Red", "Pink" ]

9.

In an array, what is the first numbered position in which data can be stored?

a)

Position 0

b)

Position 1

10.

Casting is converting to another data type . What is the value of x for each cast

a)

x= str(345)

1.

"345"

b)

x=int("3")

2.

3

c)

x=real("4.52")

3.

4.52

d)

x=bool("True")

4.

True

e)

x=int(4.2)

5.

4