OUTPUT and sequence · OUTPUT וסדר
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.
פסאודוקוד הוא השפה במבחן
- המסלול Computer Science 0478 של Cambridge IGCSE עבור 2026, 2027 ו-2028 כותב אלגוריתמים ב-伪代码 — לא Python או Java.
- זה נקרא צעדים פשוטים, מתבצעים מלמעלה למטה. סדר זה נקרא רצף.
- למטה, ניתן בעצם לבצע את הקוד הפסאודו שכתבת.
OUTPUT "Wake up"
OUTPUT "Brush teeth"
OUTPUT "Go to school"
One line after another · שורה אחת לאחר השנייה
Pseudocode runs top to bottom — each line after the one above it. This order is sequence. · פסודוקוד רץ מלמעלה למטה — כל שורה אחרי השורה שעליה. סדר זה נקרא רצף.
OUTPUT shows text
OUTPUTdisplays a value on the screen.- Text goes in double quotes:
"Hello". - Each
OUTPUTstarts a new line.
OUTPUT מציג טקסט
OUTPUTמציג ערך על המסך.- הטקסט נכנס בתוך סימני עתק:
"Hello". - כל
OUTPUTמתחיל שורה חדשה.
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 יכול לחבר פריטים
- רשימה של מספר פריטים לאחר
OUTPUT, מופרדים בפסיקים. - הם מודפסים בצד אחד מהשני, ללא רווחים ביניהם.
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.
שימו לב
- לטקסט נדרשים סימני עתק; למספרים אין (
OUTPUT 7הוא בסדר). - פסיק מחבר פריטים בשורה אחת; פקודה חדשה של
OUTPUTמתחילה שורה חדשה. - הרווח אחרי הנקודה המשולשת ב-
Total: 7נמצא בתוך סימני העתק:OUTPUT "Total: ", 7.
Common mistakes
OUTPUTshows a value; statements run in the order written.- Use the exam's exact keywords (
OUTPUT, notprint).
טעויות נפוצות
OUTPUTמציג ערך; הפקודות מתבצעות בסדר הכתיבה.- השתמש במונחים המדויקים במבחן (
OUTPUT, לאprint).
Now you try
- Type pseudocode in the box, then press Run to see its output.
- Press Check answer to test it.
כעת תנסו בעצמכם
- כתוב קוד פסאודו בקופסה, ואז לחץ על Run כדי לראות את התוצאה.
- לחץ על בדיקת תשובה כדי לבדוק אותה.
Use OUTPUT to print the word Hello. · השתמש ב-OUTPUT כדי להדפיס את המילה Hello.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.
Print Red, Green and Blue, one per line, in that order. · הדפס Red, Green ו-Blue, שורה אחת בכל פעם, בסדר זה.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.
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. · בשורה אחת, הדפס Total: ולאחר מכן רווח ואז המספר 7, כך שיתקבל Total: 7. הרווח אחרי הנקודה זקופה נמצא בתוך הציטוט. הפרד בין שני הפריטים בפסיקה.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.