Which of these is the correct way to save what the user has typed on the keyboard as "userValue"?
Y8 Python

Quiz
•
Computers
•
7th - 8th Grade
•
Hard

S Walker
Used 25+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
input(userValue)
userValue=input
userValue=input()
input=userValue()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these will print a message and the variable "userValue" to the screen?
print(Hello userValue)
print("Hello userValue")
print("Hello" userValue)
print("Hello", userValue)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these will make userValue into a number?
userValue=input(int())
int(userValue)=input()
userValue=int(input())
userValue=int(input)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I have two variables "answer" and "guess", which will check they are equal?
if answer = guess:
IF answer == guess:
if answer == guess
if answer == guess:
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is wrong with this code:
lucky = 5
guess = int(input("Enter a guess: "))
if lucky == input:
print("You win!")
The if statement checks the wrong values.
The guess needs to be a number.
The lucky number is wrong.
Nothing is wrong.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is wrong with this code:
lucky = 5
guess = input("Enter a guess: ")
if lucky == guess:
print("You win!")
The if statement checks the wrong values.
Guess needs to be an integer (number).
The lucky number is wrong.
Nothing is wrong.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is wrong with this code:
lucky = 5
guess = int(input("Enter a guess: "))
if lucky == guess:
print("You win!")
The if statement checks the wrong values.
The guess needs to be a number.
The lucky number is wrong.
Nothing is wrong.
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Python Review

Quiz
•
7th - 8th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
20 questions
Python turtle year 8 assessment

Quiz
•
7th - 9th Grade
20 questions
Kuis Informatika 1

Quiz
•
7th - 9th Grade
15 questions
Python Part 1

Quiz
•
8th Grade
16 questions
Iteration Recap

Quiz
•
8th - 9th Grade
15 questions
Year 8 | Intro to Python | Quiz 1

Quiz
•
7th Grade
18 questions
Python basics

Quiz
•
7th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade