Testing and test data Activity 3 (Spot the bug - Python version)

Testing and test data Activity 3 (Spot the bug - Python version)

9 Qs

quiz-placeholder

Similar activities

សំណួរតេស្តICT

សំណួរតេស្តICT

KG - University

10 Qs

"Understanding Mail-In Voting Rules"

"Understanding Mail-In Voting Rules"

KG - University

10 Qs

CE 9 Unit Test

CE 9 Unit Test

7th Grade

10 Qs

SS7CG1 African Governments

SS7CG1 African Governments

7th Grade

11 Qs

Module 8 Lesson 2 Quiz

Module 8 Lesson 2 Quiz

6th Grade

12 Qs

Mr. Raymond Civics EOC Academy Quiz 2

Mr. Raymond Civics EOC Academy Quiz 2

7th Grade

10 Qs

Testing and test data Activity 3 (Spot the bug - Python version)

Testing and test data Activity 3 (Spot the bug - Python version)

Assessment

Quiz

others

Hard

Used 2+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ")) if (your_age >= VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ")) if (you_age >= VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input(How old are you? )) if (your_age >= VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ")) if (VOTING_AGE >= VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ")) if (your_age >= VOTING_AGE): print("You are old enough to vote") else print("You are not old enough to vote") Spot the bug!
Syntax
Logical

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ")) if (your_age >= VOTING_AGE): prnt("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ")) if (your_age > VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = (input("How old are you? ")) if (your_age >= VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#program to work out if you are old enough to vote VOTING_AGE = 18 your_age = int(input("How old are you? ") if (your_age >= VOTING_AGE): print("You are old enough to vote") else: print("You are not old enough to vote") Spot the bug!
Syntax
Logical