
NOTA RALAT MASA LARIAN
Presentation
•
Other
•
8th Grade
•
Hard
Nad Rempit Moe
Used 8+ times
FREE Resource
17 Slides • 0 Questions
1
NOTA
RALAT MASA LARIAN
SILA SALIN NOTA HANYA SLIDE 2, 3, 4, 5, 6, 7, 8, 13, 14 DAN 15 SAHAJA
2
Ralat masa larian
Menyebabkan pelaksanaan segmen kod terhenti secara tiba-tiba
Mesej ralat akan dipaparkan apabila ralat masa larian ditemui.
3
Contoh kesilapan yang menyebabkan kejadian ralat masa larian.
4
1.Pembahagian dengan sifar
5
2.Melaksanakan operasi untuk dua pemboleh ubah yang berlainan jenis data
6
3.Menggunakan pemboleh ubah, fungsi, modul atau objek yang belum ditakrifkan
7
4.Mengakses nilai pustaka atau objek atribut yang tidak wujud
8
5.Mengakses fail yang tidak wujud
9
CONTOH MASALAH
Anda ditugaskan oleh guru anda untuk mengira jumlah perbelanjaan setiap peserta untuk aktiviti perkhemahan di sekolah pada bulan depan. Anda diberitahu bahawa, jumlah kos terdiri daripada dua jenis kos, iaitu kos tetap dan kos berubah. Item-item yang tergolong dalam kos tetap ialah kelengkapan peribadi (RM13.50), pakaian (RM105.90) dan sewaan khemah (RM12.00). Kos berubah terdiri daripada barangan keperluan memasak yang perlu dimasukkan oleh pengguna. Anda diminta menunjukkan jumlah kos tetap, kos berubah dan jumlah kos dalam senarai yang kemas kepada guru anda.
10
JAWAPAN OUTPUT YANG SEPATUTNYA TERHASIL APABILA ALGORITMA DI "RUN"
11
Segmen kod yang dihasilkan untuk memenuhi kehendak soalan dan output tetapi terdapat kesalahan pada segmen kod tersebut
12
Paparan mesej ralat yang keluar apabila segmen kod yang dibina dilaksanakan atau di "RUN"
13
Pelaksanaan segmen kod terhenti secara tiba-tiba dan baris kod yang tidak dapat dibaca tersenarai dalam paparan mesej ralat.
Pengesanan ralat bermula dengan memahami mesej yang dipaparkan
14
Mesej di sebelah bermaksud, pengisytiharan pemboleh ubah dengan menggunakan jenis data float adalah tidak betul. Kedudukan pemboleh ubah data iaitu "float" dan pengecam iaitu "peribadi" adalah tidak betul.
15
Kedudukan pemboleh ubah data iaitu "float" dan pengecam iaitu "peribadi" adalah tidak betul ADALAH PUNCA KESALAHAN
16
17
OUTPUT YANG DIHASILAKAN BETUL SEPERTI KEHENDAK SOALAN
NOTA
RALAT MASA LARIAN
SILA SALIN NOTA HANYA SLIDE 2, 3, 4, 5, 6, 7, 8, 13, 14 DAN 15 SAHAJA
Show answer
Auto Play
Slide 1 / 17
SLIDE
Similar Resources on Wayground
13 questions
Pemerintah dalam kegiatan ekspor
Presentation
•
8th Grade
11 questions
Unsur Intrinsik Puisi
Presentation
•
8th Grade
14 questions
LATIHAN TOPIKAL UNIT 11
Presentation
•
8th Grade
14 questions
There Is & There Are
Presentation
•
7th - 8th Grade
15 questions
SISTEM PERSAMAAN LINEAR DUA VARIABEL
Presentation
•
8th Grade
16 questions
ARTICLE
Presentation
•
8th Grade
14 questions
Simple Past Tense ( Nominal Pattern)
Presentation
•
8th Grade
11 questions
Prakarya
Presentation
•
7th Grade
Popular Resources on Wayground
5 questions
A Home on the Shore
Quiz
•
3rd Grade
28 questions
US History Regents Review
Quiz
•
11th Grade
6 questions
A Horse Tale
Quiz
•
3rd Grade
20 questions
Math Review
Quiz
•
3rd Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
20 questions
Dividing Fractions
Quiz
•
5th Grade
55 questions
A Long Walk to Water Final Review
Quiz
•
6th - 8th Grade
10 questions
Equation Word Problems
Quiz
•
7th Grade
Discover more resources for Other
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
55 questions
A Long Walk to Water Final Review
Quiz
•
6th - 8th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
30 questions
Circles, Area, & Volume II 2026
Quiz
•
8th Grade
20 questions
summer trivia
Quiz
•
8th Grade
28 questions
A Rover's Story, part 1
Quiz
•
6th - 8th Grade
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
5 questions
8th Grade- Multi Step Equations
Presentation
•
8th Grade