Python CodeHS Standards: Number Guessing Game
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
PRESTON COLE
Used 6+ times
FREE Resource
Enhance your content in a minute
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?
//
/*
#
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Python Recap
Quiz
•
7th Grade - University
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
10 questions
Explore Scratch 3: Motion and Pen
Quiz
•
3rd Grade - University
20 questions
From Binary To Denary Conversion - IGCSE
Quiz
•
7th Grade - Professio...
15 questions
History of Computers
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
