Ujian Pengukuhan Bab 3.1 Persekitaran Kod Arahan Python

Quiz
•
Computers
•
5th Grade
•
Medium
Umi Sarina
Used 1+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apakah fungsi input yang digunakan dalam baris kod aturcara Python di bawah?
nama = input("Masukkan nama anda: ")
input()
print()
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi arahan berikut:
a) print(x > y) __________
TRUE
FALSE
3.
OPEN ENDED QUESTION
3 mins • 10 pts
Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi kod arahan Python berikut:
print(x <= y)
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi kod arahan Python berikut:
print(x % y)
70
1.875
7
5.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Diberi pembolehubah berikut:
x = 15
y = 8
Tulis output bagi kod arahan Python berikut:
print(x // y)
1
1.875
7
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Situasi: Sebuah mesin layan diri menjual minuman pada harga RM2. Jika pelanggan memasukkan wang RM2 atau RM5, mesej 'Terima kasih' dipaparkan. Jika tidak, mesej 'Wang anda tidak mencukupi' dipaparkan.
Lengkapkan kod berikut:
wang = int(input('Masukkan wang: '))
if wang == 2 or wang == 5:
print("_______________________________")
Terima kasih
Wang anda tidak mencukupi
Null
output
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Apakah hasil bagi ungkapan berikut jika a = 5 dan b = 10? print(a >= b)
True
False
5
10
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Basic Python Quiz for Beginners

Quiz
•
3rd - 6th Grade
21 questions
Web 2.0 Araçları Kursu Sınavı

Quiz
•
1st Grade - University
20 questions
SAINS KOMPUTER TINGKATAN 4 (PENGATURCARAAN (SET 2))

Quiz
•
4th - 5th Grade
23 questions
Coding Vocabulary

Quiz
•
5th - 8th Grade
16 questions
Prawa autorskie oraz licencje komputerowe

Quiz
•
1st - 5th Grade
26 questions
kod arahan tingkatan 1

Quiz
•
4th - 8th Grade
20 questions
ASK T3 : 1.1 Pembangunan Aturcara

Quiz
•
1st - 12th Grade
18 questions
STM 32

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade