Search Header Logo

Coding Juara - Python Basic for Data Science

Authored by Udacoding Official

Computers

3rd Grade

Used 1+ times

Coding Juara - Python Basic for Data Science
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

30 sec • 1 pt

Apa output dari kode berikut?

x = 10

if x > 5:

print("A")

else:

print("B")

B

A

Error

Tidak ada output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python tidak memiliki pernyataan switch case. Untuk menggantinya, kita bisa menggunakan:

if-elif-else

while

try-except

for loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Berikut ini bukan termasuk perulangan di Python:

for

while

do-while

foreach

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari kode berikut ini?

for i in range(3):

print(i)

1 2 3

0 1 2

0 1 2 3

1 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Operator aritmatika ** pada Python digunakan untuk:

Modulus

Perkalian

Pangkat

Pembagian

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Manakah dari berikut ini merupakan operator pembanding?

=

:=

==

+

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi di Python didefinisikan menggunakan kata kunci:

Define

def

function

fun

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?