QUISS SYNTAKS PYTHON

QUISS SYNTAKS PYTHON

10th Grade

10 Qs

quiz-placeholder

Similar activities

7.3.3 Console Input & Output

7.3.3 Console Input & Output

10th Grade

11 Qs

Bài 29

Bài 29

10th Grade - University

15 Qs

Bài 27

Bài 27

10th Grade - University

15 Qs

مراجعة في الجملة التكرارية for

مراجعة في الجملة التكرارية for

10th Grade

10 Qs

Continue операторы

Continue операторы

9th - 12th Grade

10 Qs

Bài 25

Bài 25

10th Grade - University

15 Qs

Bài 24

Bài 24

10th Grade - University

15 Qs

Bài 26

Bài 26

10th Grade - University

15 Qs

QUISS SYNTAKS PYTHON

QUISS SYNTAKS PYTHON

Assessment

Quiz

Information Technology (IT)

10th Grade

Hard

Created by

Agustina Diun

FREE Resource

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

.............................. ("Hello World")

Answer explanation

The correct choice is 'print' because it is the function used in Python to output text to the console. Therefore, 'print("Hello World")' correctly displays 'Hello World'.

2.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

...... ini adalah komentar

Answer explanation

The comment provided does not contain any specific information or context that would lead to a correct answer. Therefore, the correct choice is 0, indicating no relevant answer is present.

3.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

jika 5 > 2:
..........("Lima lebih besar dari dua!")

Answer explanation

The statement 'if 5 > 2:' checks if five is greater than two, which is true. The correct action is to execute the print function to display 'Five is greater than two!'. Thus, the answer is 0, indicating the print function.

4.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

.........................adalah wadah untuk menyimpan nilai data.


Answer explanation

Variabel adalah wadah yang digunakan untuk menyimpan nilai data dalam pemrograman. Dengan variabel, kita dapat menyimpan, mengubah, dan mengakses data dengan mudah.

5.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Answer explanation

Output dari pernyataan print(x) adalah 5, karena x didefinisikan sebagai integer dengan nilai 5. Pilihan yang benar adalah 0, tetapi seharusnya 5.

6.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

z = .............(3)  # z akan menjadi 3.0


Answer explanation

The expression 'z = 3' assigns the value 3 to z. Since 3 is an integer, it can be converted to a float, resulting in z being 3.0. Therefore, the correct choice is 'float', which indicates the type of z.

7.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

x = ......(3)    # x akan menjadi '3'

Answer explanation

In Python, the expression x = ......(3) indicates that x is assigned the value of 3. The correct answer is 0, as it represents the integer value 3, while 'str' refers to a string type, which is not applicable here.

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?