
G8 Python Programming Quiz

Quiz
•
Computers
•
8th Grade
•
Hard
Kiers McFarlane
Used 10+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
39 questions
Ulangkaji ASK T2 Bab 3.2 Struktur Kod Arahan

Quiz
•
1st - 12th Grade
44 questions
MICROSOFT OFFICE ICON

Quiz
•
KG - 12th Grade
35 questions
Ujian Informatika Kelas VIII

Quiz
•
8th Grade - University
40 questions
SOAL UJIAN TIK

Quiz
•
8th Grade
41 questions
Midterm prep 7th

Quiz
•
7th Grade - University
40 questions
Python Programming Quiz

Quiz
•
8th Grade
37 questions
Quiz on Computational Thinking

Quiz
•
8th Grade
35 questions
Unit 9.1 - Textual Programming

Quiz
•
8th Grade - University
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