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
16 questions
ICT SPM Section A (Programming)

Quiz
•
1st - 10th Grade
16 questions
Scratch 3.0 Alıştırma 1

Quiz
•
5th - 6th Grade
20 questions
quiz dasar python

Quiz
•
1st Grade - University
21 questions
Struktur kawalan ulangan

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

Quiz
•
4th - 5th Grade
17 questions
Programiranje PYTHON - ponavljanje

Quiz
•
5th Grade
20 questions
Computer Parts

Quiz
•
3rd - 12th Grade
20 questions
Pyhton Input and Output Basics

Quiz
•
5th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade