Search Header Logo

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

others

Used 2+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?