Search Header Logo

PRA UAS 2023 - PBO dengan PYTHON

Authored by Fadli Wattiheluw

Computers

University

Used 5+ times

PRA UAS  2023 - PBO dengan PYTHON
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa output dari kode berikut? num = 8 if num > 0: print("Positif") elif num < 0: print("Negatif") else: print("Nol")

Negatif
Positif
Nol
Tidak ada output

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Berapa kali loop for i in range(3): akan dijalankan?

4
2
3
1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa output dari kode berikut? for i in range(1, 6, 2): print(i, end=" ")

1 2 3 4
2 4 6
1 2 3 4 5
1 3 5

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa hasil dari operasi 2 ** 3 ?

8
6
12
18

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa hasil dari operasi 15 % 4 ?

0
1
2
3

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Bagaimana cara menambahkan elemen 6 ke dalam list my_list ?

my_list.extend(6)
my_list.insert(6)
my_list.append(6)
my_list.add(6)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Apa hasil dari operasi my_list[1:3] jika my_list = [10, 20, 30, 40]?

[20, 30, 40]
[30, 40]
[10, 20]
[20, 30]

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?