Search Header Logo

Python Exam Section 1

Authored by Ridho Akbar

Other

University

Used 1+ times

Python Exam Section 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • 2 pts

Tuliskan syntax untuk instalasi library python pandas

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

30 sec • 2 pts

Bagaimana cara mengecek apakah substring "world" ada di string "Hello world" dalam Python?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

30 sec • 2 pts

Apa hasil dari kode berikut? (Python code) x = 10 if x > 5: if x > 8: print("x besar") else: print("x sedang") else: print("x kecil")

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

30 sec • 2 pts

Apa output dari kode berikut? (Python code) x = 7 if x > 5: print("Lebih besar dari 5") if x > 8: print("Lebih besar dari 8") else: print("Tidak lebih besar dari 8")

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

30 sec • 2 pts

Apa output dari kode berikut? (Python code) x = 3 if x == 3: print("Tiga") elif x == 5: print("Lima") else: print("Lainnya")

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Manakah dari berikut ini adalah pernyataan kondisi dalam Python?

for

while

if

def

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Apa output dari kode berikut? (Python code) my_list = [1, 2, 3] print(my_list[1])

1

2

3

4

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?