EN
🇺🇸 US

Quiz · Ján Stríž – ModernScholar Team · ✔ checked content

🇺🇸 Computer science · Grade 9 › Introduction to programming

Grade 9 Computer Science: Introduction to Programming Quiz

Answer questions about data types, operators and control structures in Python.

🏆 Leaderboard

  1. No scores yet – be the first!

Report a problem with this activity

Share

Questions in this game (10 items)

  1. Which data type is "hello" in Python?
  2. Which data type is 3.14 in Python?
  3. Which data type has only the values True and False?
  4. What does the % operator give in Python?
  5. What does 7 // 2 give in Python?
  6. What does 2 ** 3 give in Python?
  7. What kind of error is a missing colon after if x > 5?
  8. A program runs but gives the wrong answer. What kind of error is that?
  9. What is the result of "5" + "3" in Python?
  10. Which loop is best when you know exactly how many times to repeat?
Show answers
  1. Which data type is "hello" in Python? → string (str)
  2. Which data type is 3.14 in Python? → float
  3. Which data type has only the values True and False? → Boolean (bool)
  4. What does the % operator give in Python? → the remainder after division
  5. What does 7 // 2 give in Python? → 3
  6. What does 2 ** 3 give in Python? → 8
  7. What kind of error is a missing colon after if x > 5? → a syntax error
  8. A program runs but gives the wrong answer. What kind of error is that? → a logic error
  9. What is the result of "5" + "3" in Python? → "53"
  10. Which loop is best when you know exactly how many times to repeat? → a for loop

👩‍🏫 For teachers

Level
11–14 years
Subject
Computer science
Questions
10
Time
about 2 min
Last updated

How to use it: A quick starter or exit ticket: project it and let the class answer together, or set it as homework to see who needs more help.

🇺🇸 More Computer Science games – Grades 6–8 →

✔ How we check our games →

Similar activities

It's free – just create an account

Create a free account