Number Guessing Game

Number Guessing Game

10th Grade

15 Qs

quiz-placeholder

Similar activities

Networks, WiFi and Encryption

Networks, WiFi and Encryption

9th - 10th Grade

10 Qs

INTERNET AND ME

INTERNET AND ME

4th Grade - Professional Development

15 Qs

Online Safety: CyberSecurity

Online Safety: CyberSecurity

6th - 12th Grade

16 Qs

GCSE Networks and Internet

GCSE Networks and Internet

9th - 11th Grade

20 Qs

Part 2 - Python CodeHS Standards: Number Guessing Game

Part 2 - Python CodeHS Standards: Number Guessing Game

10th Grade

10 Qs

Python_Exam

Python_Exam

6th - 10th Grade

15 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

Number Guessing Game

Number Guessing Game

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Luke McGinty

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Define a constant NUMBER_OF_ATTEMPTS = 10

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Define a constant SECRET_NUMBER

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Initialize a variable guesses = 0

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

while guesses < NUMBER_OF_ATTEMPTS:

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Ask the user to input a guess

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Increment guesses by 1

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

if guess equals SECRET_NUMBER:

Evaluate responses using AI:

OFF

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?