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
20 questions
Intro to Python

Quiz
•
6th - 8th Grade
20 questions
Introduction to Python programming

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware - Input&Output Devices for Situations

Quiz
•
1st - 12th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
20 questions
Kuis Informatika 1

Quiz
•
7th - 9th Grade
20 questions
AQA GCSE Computer Science -3.1.1 Representing algorithms

Quiz
•
8th - 10th Grade
15 questions
Year 9 Homework Quiz 1 - Python

Quiz
•
8th Grade
16 questions
Python Recap

Quiz
•
8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade