Python Homework

Quiz
•
Computers
•
8th Grade
•
Medium

Elizabeth Pike
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I wrote print("I am happy!") in Python, what would show on the screen when I ran the code?
print("I am happy!")
I am happy
I am happy!
Syntax error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why won't my code work in Python?
print(I love Ice cream)
The p needs to be a capital letter
It needs an exclamation mark after ice cream
There needs to be a gap in between print and the brackets
I have missed " " marks around I love Ice cream
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I typed the following in Python and ran it, what would show on the screen?
team=input("What is your favourite team?")
print(team + " are a great team")
It would ask you your favourite team and then reply with your team name are a great team.
It would print team are a great team
Syntax error
It would ask your favourite team then stop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I typed print("3+4") in Python and then ran the program, what would show on screen?
7
3+4
12
Syntax Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
age = int(input("What is your age?"))
Why have I included int before the brackets?
It is a mistake and should say input
It tells Python it is a question
It converts a number into words
The answer will be an integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the mistakes in this code?
name=int("What is your name?)
print(Hello + name)
Int should be written as input
Int should be written input, and speech marks should be added after name on the second line and around Hello
Speech marks are missing around Hello
Int needs to be input and you need double brackets.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Intro to Python

Quiz
•
KG - University
17 questions
Python Review

Quiz
•
7th - 8th Grade
14 questions
Data types and Input

Quiz
•
7th - 9th Grade
13 questions
3. Variables and Operators

Quiz
•
8th Grade
10 questions
Python L2 Input & Variable

Quiz
•
6th - 8th Grade
8 questions
Intro to coding

Quiz
•
8th Grade
10 questions
L4 Iteration

Quiz
•
8th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th 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
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade