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 syllabus for 2026, 2027 and 2028은 알고리즘을 Python이나 Java가 아닌 가구문(pseudocode) 으로 작성합니다.
- 이는 plain steps처럼 보이며, 상단에서 하단(top to bottom) 으로 실행됩니다. 이 순서를 순차(sequence) 라고 합니다.
- 아래에서 작성한 가구문을 실제로 실행(run) 할 수 있습니다.
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뒤에 여러 항목을 나열하고,逗号为分隔符。- 그들은 **옆에(side by side)**printed되고, 간격 없이 출력됩니다.
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의 콜론(colon)后面的空格属于引号内部: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. · 출력을 보려면 '실행'을 클릭하세요.