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
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.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
BCHS - Y8 Python

Quiz
•
8th Grade
25 questions
Python Quiz - print + input

Quiz
•
7th Grade
20 questions
Python 1

Quiz
•
7th - 9th Grade
15 questions
Scratch Programming

Quiz
•
5th - 9th Grade
16 questions
Intro to CS Unit 3

Quiz
•
7th Grade - University
20 questions
Intro to Python

Quiz
•
6th - 8th Grade
20 questions
GCSE J277 - 2.2.3 - Functions & Procedures

Quiz
•
7th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade