OUTPUT and sequence · OUTPUT dan urutan
Pseudocode is the exam's language
- The Cambridge IGCSE Computer Science 0478 syllabus for 2026, 2027 and 2028 writes algorithms in pseudocode — not Python or Java.
- It reads like plain steps, run from top to bottom. This order is called sequence.
- Below, you can actually run the pseudocode you write.
Pseudocode adalah bahasa ujian
- Silibus Sains Komputer Cambridge IGCSE 0478 untuk 2026, 2027 dan 2028 menulis algoritma dalam pseudokod — bukan Python atau Java.
- Ia terbaca seperti langkah-langkah biasa, dijalankan dari atas ke bawah. Urutan ini dipanggil juran.
- Di bawah, anda sebenarnya boleh menjalankan pseudokod yang anda tulis.
OUTPUT "Wake up"
OUTPUT "Brush teeth"
OUTPUT "Go to school"
One line after another · Satu baris setelah baris lainnya
Pseudocode runs top to bottom — each line after the one above it. This order is sequence. · Pseudocode berjalan dari atas ke bawah — setiap baris setelah baris di atasnya. Urutan ini disebut sekuensial.
OUTPUT shows text
OUTPUTdisplays a value on the screen.- Text goes in double quotes:
"Hello". - Each
OUTPUTstarts a new line.
OUTPUT menunjukkan teks
OUTPUTmemaparkan nilai di skrin.- Teks masuk dalam tanda petik dua:
"Hello". - Setiap
OUTPUTmemulai baris baru.
OUTPUT "Hello, world!"
OUTPUT "IGCSE Computer Science"
OUTPUT can join items
- List several items after
OUTPUT, separated by commas. - They print side by side, with no gaps.
OUTPUT boleh menggabungkan item
- Senaraikan beberapa item selepas
OUTPUT, dipisahkan oleh koma. - Mereka dicetak bersebelahan, tanpa jurang.
OUTPUT "Total: ", 7 // → Total: 7
Watch out
- Text needs double quotes; numbers do not (
OUTPUT 7is fine). - A comma joins items on one line; a new
OUTPUTstarts a new line. - The space after the colon in
Total: 7belongs inside the quotes:OUTPUT "Total: ", 7.
Hati-hati
- Teks memerlukan tanda petik dua; nombor tidak memerlukan (
OUTPUT 7adalah sesuai). - Koma menggabungkan item dalam satu baris; barisan baru
OUTPUTmemulakan barisan baharu. - Ruang selepas titik dua dalam
Total: 7berada di dalam tanda petik:OUTPUT "Total: ", 7.
Common mistakes
OUTPUTshows a value; statements run in the order written.- Use the exam's exact keywords (
OUTPUT, notprint).
Kesalahan umum
OUTPUTmemaparkan nilai; pernyataan dijalankan mengikut urutan yang ditulis.- Gunakan perkataan kunci peperiksaan yang tepat (
OUTPUT, bukanprint).
Now you try
- Type pseudocode in the box, then press Run to see its output.
- Press Check answer to test it.
Sekarang Anda coba
- Ketik pseudokod dalam kotak, kemudian tekan Jalankan untuk melihat hasilnya.
- Tekan Cek jawaban untuk mengujinya.
Use OUTPUT to print the word Hello. · Gunakan OUTPUT untuk mencetak kata Hello.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.
Print Red, Green and Blue, one per line, in that order. · Cetak Red, Green dan Blue, satu per baris, dalam urutan tersebut.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.
On one line, output Total: then a space then the number 7, so it reads Total: 7. The space after the colon belongs inside the quotes. Separate the two items with a comma. · Pada satu baris, outputkan Total: lalu spasi kemudian angka 7, sehingga terbaca Total: 7. Spasi setelah titik dua berada di dalam tanda kutip. Pisahkan kedua item dengan koma.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.