Search Header Logo

Post Test #4 - Python Fundamental #3

Authored by Rizki Tri Prasetio

Computers

University

Used 5+ times

Post Test #4 - Python Fundamental #3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MATCH QUESTION

1 min • 10 pts

Cocokan simbol berikut dengan data collection yang sesuai!

()

Tuple

{}

List

[]

Set

2.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

Diantara data collection berikut, mana yang memiliki sifat Index Sequential

List

Tuple

Set

Dictionary

3.

MULTIPLE SELECT QUESTION

45 sec • 10 pts

Manakah diantara karakteristik berikut yang merupakan kriteria dari sebuah List?

Dideklarasikan menggunakan simbol []

Memiliki index yang berurutan

Mutable

Dideklarasikan menggunakan simbol ()

Immutable

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Manakah diantara potongan kode berikut ini yang akan menghasilkan output:

[10000, 15000]

list = [5000, 10000, 15000, 20000, 25000] print(list[1:3])

list = [5000, 10000, 15000, 20000, 25000] print(list[:3])

list = [5000, 10000, 15000, 20000, 25000] print(list[1:])

list = [5000, 10000, 15000, 20000, 25000] print(list[1:2])

list = [5000, 10000, 15000, 20000, 25000] print(list[1:4])

5.

MATCH QUESTION

1 min • 20 pts

Diketahui terdapat sebuah list dengan anggota list sebagai berikut:

list = [1, "dua", 3.0, 4, "lima", 6.0]

['dua']

print(list[4:4])

6.0

print(list[4:])

[]

print(list[1:2])

['lima', 6.0]

print(list[:3])

[1, 'dua', 3.0]

print(list[5])

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Berapa output yang akan muncul apabila potongan kode berikut dijalankan?

coll = {"Januari", "Februari", "Januari", "Maret", "Februari", "April", "Mei", "Maret"} print(len(coll))

5

8

6

7

7.

DRAG AND DROP QUESTION

1 min • 10 pts

Lengkapi potongan kode berikut ini agar menjadi sebuah dictionary yang benar

dict ​ (a)    {'nilai' : 80​ (b)    'status' ​ (c)    'Lulus'​ (d)  

=
,
:
}
)
.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?