
ASK T2 Bab 3.1.2 Mengesan dan Membaiki Ralat pada Segmen Kod
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
Medium
Aina Safiqah
Used 1+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah jenis ralat yang berlaku apabila tanda titik koma ; tertinggal dalam satu baris kod?
A. Ralat logik
B. Ralat semantik
C. Ralat sintaks
D. Ralat pengulangan
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kod berikut menghasilkan output yang tidak dijangka. Apakah jenis ralat yang berlaku?
umur = 17
if umur > 18:
print("Anda layak ambil lesen")
A. Ralat sintaks
B. Ralat logik
C. Ralat semantik
D. Ralat runtime
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah yang dimaksudkan dengan ralat sintaks ?
A. Berlaku disebabkan oleh kesilapan dalam penggunaan bahasa pengatucaraan
B. Kod yang menghasilkan output yang salah
C. Kod yang mempunyai nilai berubah-ubah
D. Kod yang tidak lengkap dari segi logik
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Antara berikut, yang manakah merupakan contoh ralat sintaks?
A. Pemboleh ubah harga digunakan tetapi tidak ditakrifkan
B. Menggunakan rumus yang salah untuk pengiraan diskaun
C. Tertinggal titik dua (:) selepas pernyataan if
D. Menggunakan formula yang betul tetapi hasil tidak seperti dijangka
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kenyataan manakah BENAR tentang ralat sintaks?
A. Berlaku apabila output tidak seperti yang dikehendaki
B. Berlaku apabila logik dalam kod tidak betul
C. Berlaku kerana kod tidak ikut peraturan bahasa pengaturcaraan
D. Berlaku hanya jika komputer rosak
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah antara berikut ialah contoh ralat logik?
A. Tertinggal titik koma dalam arahan
B. Salah taip nama fungsi
C. Gunakan simbol tambah + untuk tolak
D. Tidak menggunakan tanda petik dalam nilai string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah yang dimaksudkan dengan ralat logik dalam pengaturcaraan?
A. Kesalahan struktur bahasa dalam kod
B. Kod tidak boleh dijalankan langsung
C. Kod berjalan tetapi hasilnya tidak seperti yang diharapkan
D. Kod mengandungi pemboleh ubah yang tidak ditakrif
Create a free account and access millions of resources
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
KUIS IP ADDRESS
Quiz
•
11th Grade
10 questions
Excel
Quiz
•
12th Grade
15 questions
INFORMATIKA KLS IX UH
Quiz
•
9th - 12th Grade
10 questions
Sikap dan Perilaku Wirausaha
Quiz
•
10th Grade
15 questions
Quiz Topologi dan Arsitektur Jaringan
Quiz
•
11th Grade
10 questions
Uji Pemahaman BAB 1
Quiz
•
9th Grade
10 questions
QUIZZ LOGIKA MATEMATIKA
Quiz
•
10th Grade
10 questions
Quiz Pert 1
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Information Technology (IT)
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
