OUTPUT and sequence · SAÍDA e sequência
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.
Pseudocódigo é a linguagem do exame
- O programa Cambridge IGCSE Computer Science 0478 para 2026, 2027 e 2028 escreve algoritmos em pseudocódigo — não Python ou Java.
- Parece passos simples, executados de cima para baixo. Essa ordem é chamada de sequência.
- Abaixo, você pode realmente executar o pseudocódigo que escreve.
OUTPUT "Wake up"
OUTPUT "Brush teeth"
OUTPUT "Go to school"
One line after another · Uma linha após a outra
Pseudocode runs top to bottom — each line after the one above it. This order is sequence. · O pseudocódigo é executado de cima para baixo — cada linha após a anterior. Essa ordem é sequência.
OUTPUT shows text
OUTPUTdisplays a value on the screen.- Text goes in double quotes:
"Hello". - Each
OUTPUTstarts a new line.
OUTPUT mostra texto
OUTPUTexibe um valor na tela.- Texto vai entre aspas duplas:
"Hello". - Cada
OUTPUTinicia uma nova linha.
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 pode juntar itens
- Liste vários itens após
OUTPUT, separados por vírgulas. - Eles são impressos lado a lado, sem espaços.
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.
Atenção
- Texto precisa de aspas duplas; números não (
OUTPUT 7está correto). - Uma vírgula junta itens em uma linha; um novo
OUTPUTinicia uma nova linha. - O espaço após os dois pontos em
Total: 7pertence dentro das aspas:OUTPUT "Total: ", 7.
Common mistakes
OUTPUTshows a value; statements run in the order written.- Use the exam's exact keywords (
OUTPUT, notprint).
Erros comuns
OUTPUTmostra um valor; instruções são executadas na ordem escrita.- Use as palavras-chave exatas da prova (
OUTPUT, nãoprint).
Now you try
- Type pseudocode in the box, then press Run to see its output.
- Press Check answer to test it.
Agora você tenta
- Digite pseudocódigo na caixa, depois pressione Run para ver sua saída.
- Pressione Check answer para testá-lo.
Use OUTPUT to print the word Hello. · Use OUTPUT para imprimir a palavra Hello.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.
Print Red, Green and · e Blue, one per line, in that order. · Imprima Red, Green e Blue, um por linha, nessa ordem.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.
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. · Em uma linha, saia Total: depois um espaço e depois o número 7, para que fique Total: 7. O espaço após os dois pontos pertence dentro das aspas. Separe os dois itens com uma vírgula.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.