Y8 Python
Quiz
•
Computers
•
7th - 8th Grade
•
Practice Problem
•
Hard

S Walker
Used 26+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct way to save what the user has typed on the keyboard as "userValue"?
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.
Access all questions and much more by creating a free account
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
16 questions
Informatika Kelas 7
Quiz
•
7th Grade
20 questions
Web 2.0
Quiz
•
6th - 10th Grade
20 questions
L4 Homework
Quiz
•
8th Grade
16 questions
KS3 Data Types
Quiz
•
8th Grade
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
24 questions
แบบฝึกหัด IoT
Quiz
•
6th - 8th Grade
20 questions
Lisensi Perangkat Lunak - Komputer Joshua Level
Quiz
•
7th Grade
20 questions
Unit Test 1 Class 8 Computer
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
