OUTPUT and sequence · 出力と順序
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.
擬似言語は試験の言語
- Cambridge IGCSE Computer Science 0478カリキュラム(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の後に複数の項目を、コンマで区切ってanki-list。- 彼らは隙間なく横並びで印刷される。
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で問題ありません)。 - コマは1行目に項目をつなぎます;新しい
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 を押して出力を確認する。
- Check answer を押して確認する。
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を1行ずつ、その順序で出力してください。
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. · 1行にTotal:を出力し、その後スペース、そして数値7を出力してTotal: 7のように表示してください。コロンの後のスペースは引用符の内側に入れます。2つのアイテムはコンマで区切ってください。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。