Night 1: Wake up your pet
You already finished this night, in Python or pseudocode. It counts for both. Practise again if you like.
تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
English
Tonight: make your pet talk
- Your pet is asleep in its egg. Tonight you wake it up.
- You will learn one thing:
OUTPUT. - You write Cambridge AS-Level pseudocode (9618). It is the language of your exam.
- It takes about 10 minutes.
Words for tonight
| Word | Meaning |
|---|---|
| code | instructions for the computer |
| output | what the program shows on the screen |
| keyword | a special word, written in CAPITALS, like OUTPUT |
English
OUTPUT shows words
OUTPUTtells the computer: show this on the screen.- Put the words inside quotes
" ". - Write the keyword in capital letters:
OUTPUT.
OUTPUT "Hello!"
- Press Run. The output is
Hello!

English
One line, one OUTPUT
- Each
OUTPUTmakes a new line. - The program runs from top to bottom.
OUTPUT "Good morning!"
OUTPUT "I am a pet."
OUTPUT "I like code."
English
Small mistakes
- Every
"needs a partner". OUTPUTneeds no brackets. WriteOUTPUT "Hi".- Spaces and capitals inside the quotes are shown exactly.
OUTPUT "Spaces and capitals inside quotes are kept: A B C"
English
Now you try
- Do the tasks below. Press Run to see your output.
- Then press Check answer. Your pet wakes up when all tasks pass.
- The star task is extra. Try it if you have time.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Make your pet say I am awake! Use OUTPUT. Copy the words exactly.
اضغط تشغيل لرؤية المخرجات هنا.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Your pet says three things, one per line: Hello!, then I am hungry., then Good night! Use three OUTPUT lines.
اضغط تشغيل لرؤية المخرجات هنا.
الصعوبة 2/5 · 140 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Draw your pet's face with text. Output بالضبط these three lines:
(\_/)
(o.o)
(> <)
Each line starts with one space.
اضغط تشغيل لرؤية المخرجات هنا.