Q3

Week 3 Quiz

Conditionals and Decision Making

Student Information

Question 1: Multiple Choice (2 points)

Which operator is used to check if two values are equal in Python?

Question 2: Short Answer (3 points)

Write an if statement that checks if a variable called 'age' is 18 or older, and prints "You can vote!" if true:

Question 3: Multiple Choice (2 points)

What will this code print?
x = 10
if x > 5:
    print("Big")
else:
    print("Small")

Question 4: True/False (2 points)

In Python, you can have multiple elif statements in a single if-elif-else structure.

Question 5: Multiple Choice (1 point)

Which logical operator represents "AND" in Python?

← Back to Week 3 Lesson 📚 Semester Overview Next: Week 4 Lesson →