gregorysmith1987
gregorysmith1987 1d ago • 0 views

Python Print and Variable Quiz for Grade 5

Hey there, young coders! 👋 Ready to test your Python print and variable skills? This quick study guide and quiz will help you shine! Let's get started! ✨
💻 Computer Science & Technology
🪄

🚀 Can't Find Your Exact Topic?

Let our AI Worksheet Generator create custom study notes, online quizzes, and printable PDFs in seconds. 100% Free!

✨ Generate Custom Content

1 Answers

✅ Best Answer
User Avatar
johnson.jean48 Dec 30, 2025

📚 Quick Study Guide

  • 🖨️ The print() function displays text or numbers on the screen. For example, print("Hello!") shows 'Hello!'
  • 🏷️ A variable is like a container that stores information. Think of it as a name for a value.
  • ➕ You assign a value to a variable using the equals sign (=). For instance: age = 10
  • 🔢 Variables can store different types of data: numbers (like 5 or 3.14), text (like "apple"), and more.
  • ✏️ Variable names should be descriptive and easy to understand (e.g., student_name instead of just x).
  • 🔗 You can use variables with the print() function to display their values. For example, if name = "Alice", then print(name) shows 'Alice'.
  • 💡 Remember that Python reads code from top to bottom, so the order in which you assign values to variables matters!

Practice Quiz

  1. What will the following code print?
    name = "Bob"
    print(name)
    1. Bob
    2. name
    3. "Bob"
    4. No output, it's an error
  2. What does a variable do?
    1. Displays text on the screen.
    2. Stores information.
    3. Performs calculations.
    4. Connects to the internet.
  3. Which of these is a good variable name?
    1. x
    2. 123
    3. student_age
    4. a+b
  4. What will the following code print?
    age = 8
    print("My age is", age)
    1. My age is age
    2. age
    3. My age is 8
    4. Error
  5. What symbol is used to assign a value to a variable?
    1. +
    2. -
    3. =
    4. *
  6. What type of data is stored in the variable in this code?
    fruit = "banana"
    1. Number
    2. Text
    3. True/False
    4. A fruit
  7. What will the following code print?
    number = 5
    print(number + 2)
    1. 5 + 2
    2. number + 2
    3. 7
    4. 52
Click to see Answers
  1. A
  2. B
  3. C
  4. C
  5. C
  6. B
  7. C

Join the discussion

Please log in to post your answer.

Log In

Earn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! 🚀