
G8 Python Programming Quiz
Authored by Kiers McFarlane
Computers
8th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of `print("3" + str(4))`?
7
"34"
"7"
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is `print("Age is", age)` better than `print("Age is" + age)` if age = 12?
It saves memory
It avoids a type error by using comma separation
It removes the need for quotation marks
It converts age to float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does `print("Hi".lower().count("h"))` return?
1
0
2
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If `msg = "hi there"`, what does `msg.find("e")` return?
6
7
True
"e"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between `input("Age: ")` and `int(input("Age: "))`?
The second one saves more memory
The second converts the string to an integer
The first checks type
The second is only used for decimals
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In `user_age = input("Enter age: ") + 1`, what kind of error occurs?
SyntaxError
TypeError
IndexError
RuntimeError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will `x = input("Enter number: "); print(type(x))` show if the user enters 8?
int
float
str
bool
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
40 questions
PC Anschlüsse und deren Kabel
Quiz
•
4th - 8th Grade
45 questions
Computer Basics
Quiz
•
6th - 12th Grade
40 questions
INFORMATIKA KELAS 8 2022
Quiz
•
8th Grade
35 questions
MINH ÔN TẬP TIN HỌC LỚP 3
Quiz
•
1st - 12th Grade
35 questions
SCRATCH
Quiz
•
4th Grade - University
44 questions
Electricidad y electrónica
Quiz
•
6th - 12th Grade
39 questions
PRÁCTICA 1 DE ORTOGRAFÍA GENERAL
Quiz
•
6th - 8th Grade
42 questions
App inventor
Quiz
•
7th Grade - University
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