Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

University

15 Qs

Python Lists and Tuples

Python Lists and Tuples

University

11 Qs

Mastering Python Basics

Mastering Python Basics

University

8 Qs

Python Spotkanie #1

Python Spotkanie #1

University

7 Qs

CodeHS Basic Data Structures in Python

CodeHS Basic Data Structures in Python

9th Grade - University

10 Qs

Python Quiz 2.0

Python Quiz 2.0

University

14 Qs

Python List

Python List

University

10 Qs

Python revision

Python revision

10th Grade - University

15 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

Assessment

Quiz

Computers

University

Hard

Created by

Rizki Tri Prasetio

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MATCH QUESTION

1 min • 10 pts

Cocokan simbol berikut dengan data collection yang sesuai!

()

Set

{}

List

[]

Tuple

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]

[1, 'dua', 3.0]

print(list[5])

6.0

print(list[4:4])

['lima', 6.0]

print(list[1:2])

['dua']

print(list[:3])

[]

print(list[4:])

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)  

=
,
:
}
)
.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?