Python Revision

Quiz
•
Computers
•
8th Grade
•
Medium

Chloe Wilkes
Used 19+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is a comment?
" this is a comment "
# this is a comment
this is a comment
# this is a comment #
Answer explanation
Comments start with a #. " initiates a string.
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Find the invalid name for a variable
My_name
myName
1Name
My Name
@MyName
Answer explanation
A variable can't have spaces between the words and numbers or symbols at the start.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code will not generate an error?
Firstname = input()
print("Hello,",firstname)
firstname = input()
print("Hello," firstname)
firstname = input()
print("Hello," ,firstname)
firstname = input ()
print("Hello, firstname")
Answer explanation
This code is using concatenation!
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code will print "h"?
planet = "Earth"
print(planet[5])
planet = "Earth"
print(planet[4])
planet = "Earth"
print(planet,[4])
planet = "Earth"
print(planet,[5])
Answer explanation
Python codes always start counting at 0!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code print out? number = "5" + "10"
print(number)
15
5 10
510
An error
Answer explanation
This code is a string and it will only print out 5 and 10 like 510. If you wanted it to be 15 then you wouldn't put the " ".
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type...
Holds alphanumeric data as texts
String
Float
Integer
Boolean
Answer explanation
It's a string!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Strings are represented in code as....
str
int
float
Answer explanation
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python- Biến và KDL

Quiz
•
6th - 8th Grade
12 questions
python 1112

Quiz
•
6th - 8th Grade
12 questions
Python

Quiz
•
7th - 8th Grade
15 questions
Python

Quiz
•
6th Grade - University
16 questions
№5.2. Типи даних. Величини (16 q)

Quiz
•
5th - 11th Grade
18 questions
Python ծրագրավորման լեզու

Quiz
•
8th Grade
11 questions
Python 1 модуль

Quiz
•
6th - 8th Grade
14 questions
Test 3 Python (2024-2025)

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