wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Banana Tales - Mid Test 01/2021

Total questions: 30

Worksheet time: 30mins

Name
Class
Date
1.

What type of computer language been using in Banana Tales?

a)

Python

b)

Java Script

c)

HTML

2.

Which animal is NOT found in Banana Tales?

a)

Zebra

b)

Giraffe

c)

Snake

3.

Which property is found in Banana Tales?

a)

height

b)

giraffe

c)

blow

4.

How to define a method in Banana Tales?

a)

whale.blow

b)

giraffe.height

c)

x = 20

5.

Which value is considered argument in the statement shown as above?

a)

3

b)

5

c)

none of them

6.

A list can be considered as a/an ..?

a)

array

b)

name

c)

function

7.

How to define a list for snakes in Banana Tales..?

a)

snakes[3]

b)

snakes(3)

c)

snakes{3}

8.

Which one is the shortcut key to perform "Run!"..?

a)

shift + enter

b)

ctrl + enter

c)

alt + enter

9.

What is the actual height for this giraffe..?

a)

4

b)

5

c)

6

10.

Objects of giraffes, snakes & whales are appeared in which world of Banana Tales?

a)

Lonely Island

b)

Urban Jungle

c)

Cloudy Skies

11.

From your experience gained, which algorithm is suitable for the diagram shown as above?

a)
b)
c)
12.

How to define a loop for whales in Banana Tales..?

a)

for whale in whales:

b)

for whale in whales;

c)

for whale in whales

13.

Which diagram is the best outcome for the algorithm shown as above?

a)
b)
c)
14.

What is for loop in Python language?

a)

which allows code to be executed repeatedly

b)

which allows code to be perform all the time

c)

which allows code to be run one by one

15.

What is range( ) used for in Banana Tales..?

a)

returns the sequence of numbers starting from a given start integer to a stop integer

b)

to calculate a specific of numbers

c)

is a feature that enables accessing parts of sequences

16.

How to define a range..?

a)

range( )

b)

range[ ]

c)

range{ }

17.

what number/s will be show if print range(5)..?

a)

[0, 1, 2, 3, 4]

b)

[0, 1, 2, 3, 4, 5]

c)

[1, 2, 3, 4, 5]

18.

what number/s will be show if print range(3, 9)..?

a)

[3, 4, 5, 6, 7, 8]

b)

[3, 4, 5, 6, 7, 8, 9]

c)

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

19.

what number/s will be show if print range(2, 11, 3)..?

a)

[2, 5, 8]

b)

[2, 5, 8, 11]

c)

[2, 3, 4, 5, 6, 7, 8, 9, 10]

20.

What is the outcome for the statement shown as above?

a)

9

b)

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

c)

0

21.

What is variable mean in Banana Tales?

a)

a reserved memory location to store values

b)

a method to repeat the statement again and again

c)

a kind of property of the object

22.

Which statement is to create a variable?

a)

for s in snakes:

b)

while snake.sleeping( )

c)

if snake.length < 3

23.

What is the result for the algorithm shown as above?

a)
b)
c)
24.
a)
b)
c)
25.

What kind of data be stored in variable?

a)

String

b)

Number

c)

Both of them

26.

What is slice in Banana Tales?

a)

is a feature that enables accessing parts of sequences

b)

piece of cake in slicing with different part

c)

a reserved memory location to store values

27.

How to define a slice in Banana Tales?

a)

for g in giraffes[4:8]:

b)

for g in giraffes(4:8):

c)

for g in giraffes{4:8}:

28.

What are the common place with range and slice?

a)

both are using for loop to define

b)

both are using if else to define

c)

both are using while loop to define

29.

Which snakes' length is equal to 3?

a)

snakes[1], snakes[3], snakes[5]

b)

snakes[1], snakes[2], snakes[3], snakes[4], snakes[5]

c)

snakes[0], snakes[1], snakes[2], snakes[3], snakes[4], snakes[5]

30.

Which result is most suitable for the statements shown as above?

a)

giraffes[1].height = 4 | giraffes[3].height = 5 | giraffes[5].height = 6 | giraffes[7].height = 7 | giraffes[9].height = 8

b)

giraffes[1].height = 1 | giraffes[2].height = 2 | giraffes[3].height = 3 | giraffes[4].height = 4 | giraffes[5].height = 5

c)

giraffes[1].height = 8 | giraffes[3].height = 7 | giraffes[5].height = 6 | giraffes[7].height = 5 | giraffes[9].height = 4