wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

module 3-4

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

break =

continue =

while =

for =

a)

stop

skip

iterasi terbatas

iterasi tidak terbatas

b)

skip

stop

iterasi terbatas

oterasi tidak terbatas

c)

stop

skip

iterasi tidak terbatas

iterasi terbatas

d)

stop

stop

iterasi terbatas

iterasi terbatas

2.

x = [2, 3, 4, 5, 6]

jenis data ?

print[-2:]?

print[:3]

a)

list

2,3,4

3,4,5,6

b)

list

5,6

2,3,4,5

c)

tuple

2,3

5,6

d)

string

3,5

5,6

3.

operasi logika ya..

true and true =

true and false =

false and false =

true or true =

true or false =

false or false =

a)

false

false

false

true

true

true

b)

true

false

false

true

true

false

c)

true

false

false

false

false

true

d)

false

false

true

true

false

false

4.

method yang digunakan menambahkan list untuk posisi terakhir?

method yang digunakan menambahkan list untuk posisi yang bisa di tentukan?

method yang digunakan untuk menghapus list?

a)

insert

append

remove

b)

sort

insert

remove

c)

append

insert

remove

d)

sort

append

remove

5.

method yang digunakan untuk mengurutkan dari kecil ke besar?

method yang digunakan untuk mengurutkan dari besar ke kecil?

a)

sort

reverse

b)

reverse

sort

c)

remove

filter

d)

append

insert

6.

list?

tuple?

dict?

a)

()

{}

[]

b)

[]

()

{}

c)

[]

{}

()

d)

{}

[]

()

7.

list ?

tuple ?

a)

mutable

immutable

b)

immutable

mutable

c)

memiliki key dan value

tidak memiliki key dan value

d)

tidak bisa dioperasikan

bisa dioperasikan

8.

dictionary ?

a)

value -> value

b)

value -> key

c)

key->key

d)

key-> value

9.

sorted?

a)

mengurutkan item

b)

mengurutkan value

c)

mengurutkan key

d)

mengurutkan dictionary

10.

fibbonacci?

factorial?

a)

1,2,6,24,..

1,1,2,3,5,8,..

b)

1,1,2,3,5,8,...

1,2,6,24,..

c)

1,3,5,7..

2,3,5,7,11,..

d)

2,4,6,8,..

1,3,5,7,...