
QUISS SYNTAKS PYTHON
Authored by Agustina Diun
Information Technology (IT)
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
x = 5
y = "John"
print(x)
print(y)
Perhatikan script program diatas dan tentukan output dari pernyataan print(x)
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Posttest Aplikasi Pengolah Kata
Quiz
•
9th - 12th Grade
10 questions
Conceitos de lógica usando Portugo Studio
Quiz
•
10th Grade
12 questions
2.1 Wire Ethernet
Quiz
•
9th - 12th Grade
8 questions
Quiz sobre P5.js e JavaScript
Quiz
•
1st Grade - University
10 questions
Kiểm Tra Bài Cũ
Quiz
•
10th Grade
15 questions
EXTRA PRACTICE - Coding & Gaming
Quiz
•
10th Grade
10 questions
Module 2.3.8 Quiz
Quiz
•
10th Grade
10 questions
Quiz 1 Produktif TKJ Kelas X SMK NU Miftahul Huda
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade