Python CodeHS Standards: Number Guessing Game

Quiz
•
Computers
•
10th Grade
•
Hard
PRESTON COLE
Used 6+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Part 2 - Python CodeHS Standards: Number Guessing Game

Quiz
•
10th Grade
15 questions
Python_Exam

Quiz
•
6th - 10th Grade
15 questions
Cyber Security KS4

Quiz
•
8th - 12th Grade
10 questions
Computer Quiz For Grade 10 (First Term)

Quiz
•
10th Grade
18 questions
3.1.2 Access Control

Quiz
•
9th - 12th Grade
10 questions
Google Sheets Vocab

Quiz
•
9th - 12th Grade
15 questions
Negative Binary Quiz

Quiz
•
10th Grade
20 questions
GCSE Networks and Internet

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade