OUTPUT and sequence · 출력과 순서
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
English
Pseudocode is the exam's language
- Cambridge International AS Computer Science 9618 writes algorithms in pseudocode.
- Use the guide for exams in 2026. The guide for 2027, 2028 and 2029 uses the same syntax.
- Statements run from top to bottom. That order is sequence.
한국어
가상의 코드는 시험의 언어입니다
- Cambridge International AS Computer Science 9618은 가상의 코드(Pseudocode) 로 알고리즘을 작성합니다.
- 2026년 시험용 가이드를 사용하십시오. 2027, 2028, 2029 가이드는 동일한 구문 syntax를 사용합니다.
- 문장은 위에서 아래로 실행됩니다. 이 순서는 순서(Sequence) 입니다.
OUTPUT "Wake up"
OUTPUT "Brush teeth"
OUTPUT "Go to school"
Explore · 탐색하기
One line after another · 한 줄씩 나열됨
Pseudocode runs top to bottom — each line after the one above it. · 가상 코드는 위에서 아래로 실행됩니다 — 각 줄은 위 줄의 다음에 위치합니다.
English
OUTPUT shows a value
OUTPUTdisplays a value. Text goes in double quotes.- Each
OUTPUTstarts a new line. - Several values, separated by commas, print on one line.
한국어
OUTPUT은 값을 표시합니다
- **
OUTPUT**는 값을 표시합니다. 텍스트는 이중 따옴표 안에 넣습니다. - 각
OUTPUT는 새 줄을 시작합니다. - 쉼표로 구분된 여러 값은 한 줄에 출력됩니다.
OUTPUT "Hello, world!"
OUTPUT "You have ", 3, " lives left"
English
Watch out
- Keywords are capitals:
OUTPUT, notprint. - A comma keeps values on one line. A new
OUTPUTstarts the next line. - Joining two strings with
&is taught with the string functions.
한국어
주의사항
- 키워드는 대문자:
OUTPUT,print가 아님. - 쉼표는 값을 한 줄에 유지합니다. 새로운
OUTPUT는 다음 줄을 시작합니다. - 두 문자열을
&로 연결하는 방법은 문자열 함수와 함께 가르칩니다.
English
Common mistakes
- Text needs quotes. A number does not:
OUTPUT 42. - Comments start with
//and run to the end of the line.
한국어
흔한 실수
- 텍스트는 Quotes가 필요합니다. 숫자는 필요 없습니다:
OUTPUT 42. - 주석은
//로 시작하여 해당 줄의 끝까지 이어집니다.
English
Now you try
- Type pseudocode in the box, then press Run.
- Press Check answer to test it.
한국어
이제 직접 해보기
- 상자에 가상의 코드를 입력한 후 실행 버튼을 누르십시오.
- 답안 확인을 눌러 테스트해 보십시오.
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 You have , the number 3, then lives left. · 한 줄에 You have , 숫자 3, 그리고 lives left을 출력하십시오.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.