Part 1 of 5

Concept

Four questions about today's words. Tap the answer you choose.

Q1What is a program?

  • AA picture the computer draws by itself.
  • BA list of steps the computer follows in order.
  • CThe screen the computer shows text on.
  • DThe printed paper copy of what the computer shows.

Q2What does print do?

  • AIt shows text on the screen.
  • BIt reads text that you type in.
  • CIt sends your words to a paper printer.
  • DIt saves your words in a file for later.

Q3Which of these is a string?

  • Aprint
  • BRun
  • C"hello"
  • Dhello

Q4You type print("Cat") and press Run. What appears on the screen?

  • Aprint("Cat") — the whole line you typed.
  • BCat — the quote marks only mark where the text starts and ends.
  • C"Cat" — with the quote marks, because you typed them.
  • DNothing, until you press Run a second time.
Part 2 of 5

Code Reading

Run each program in your head. What does it print or draw?

CR1What does this program show?

print("Red")
print("Blue")
  • ABlue on the first line, Red on the second line
  • BRedBlue with no space
  • CRed Blue on one line
  • DRed on the first line, Blue on the second line

CR2How many lines does this program put on the screen?

print("One")
print()
print("Three")
  • A3 lines — the empty print makes a blank line
  • B1 line — everything joins together
  • C4 lines
  • D2 lines — the empty print does nothing

CR3What does this program show?

print("*****")
print("* Mia *")
print("*****")
  • AOne line: ***** * Mia * *****
  • BThree lines, but the stars are gone because they are not letters
  • CThree lines: a row of stars, * Mia *, then the same row of stars
  • DAn error, because a string cannot hold star characters
Part 3 of 5

Debugging

This program is broken. You do not have to fix it — say what is wrong.

BROKENA student wants the screen to show Hello. They press Run and the screen shows nothing at all. What is wrong?

print()
  • AThe program needs a second print line before the first one shows anything.
  • Bprint is spelled wrong.
  • CThe quote marks are missing, so Python printed nothing.
  • DThere is no string inside the brackets, so there is nothing to show.
Part 4 of 5

Building

Pick one. Type it in any chapter runner and run it.

Show your teacher: Run your program and show your teacher the screen, then point at the line of code that made the first line appear.

Tick what your program does. Be honest — this is how you see what to practise.

0 of 4 ticked

Part 5 of 5

Communicating

Explain it out loud

Show a classmate your program and say what the word string means, using your own screen as the example.

Tick what you said out loud.

0 of 4 ticked

Finish

0 of 0 answered