Python CodeHS Standards: Number Guessing Game

Python CodeHS Standards: Number Guessing Game

10th Grade

15 Qs

quiz-placeholder

Similar activities

Revision Gr2-2025

Revision Gr2-2025

3rd Grade - University

12 Qs

Cyber Security

Cyber Security

1st - 10th Grade

10 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

UNIT 1.2 MEMORY

UNIT 1.2 MEMORY

10th Grade

19 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

computer Lab Manners

computer Lab Manners

5th - 10th Grade

19 Qs

Python CodeHS Standards: Number Guessing Game

Python CodeHS Standards: Number Guessing Game

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

PRESTON COLE

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? guess = '65.83' print(float(guess) + 1)

66.83

66

65.84

66.8

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator should be used in place of "?" to make the following expression evaluate to True? (5 ? 3) and (2 < 4)

>

<=

!=

==

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following? print(17 % 3)

5

4

3

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a number guessing game, which conditional statement would check if `guess` is equal to `15`?

if guess = 15:

if guess == 15:

if guess: 15

if guess is 15:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following loop print for a number guessing game where `number` is `10`? for i in range(3): if i == number: print("Correct!") break print("Incorrect!")

Correct!

Incorrect!

Correct! Incorrect! Incorrect!

Incorrect! Incorrect! Incorrect!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which case will the loop continue indefinitely? while guess != number: guess = int(input("Enter your guess: "))

`guess` is initialized as a string

`number` changes within the loop

`guess` is initialized with the same value as `number`

`input` function is not used

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what symbol is used to begin a comment?

//

/*

#

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?