
Python Basics Quiz
Authored by imam ibrahim
Information Technology (IT)
8th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? print("Hello, World!")
Hello
Hello World
Hello, World!
"Hello, World!"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to write a comment in Python?
// This is a comment
/* This is a comment */
# This is a comment
-- This is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed? print("3 + 2 =", 3 + 2)
3 + 2 = 3 + 2
3 + 2 = 32
3 + 2 = 5
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a correct Python data type?
list
float
string
decimal
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this code? print("Result:", 5 * "2")
Result: 10
Result: 22222
Result: 2*5
Error
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the correct way to print the following text including quotes? She said, "Python is fun!"
print('She said, "Python is fun!"')
print("She said, "Python is fun!"")
print(She said, "Python is fun!")
print("She said, \"Python is fun!\"")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed? # This is a comment print("Hello")
# Another comment
# This is a comment Hello # Another comment
Hello
This is a comment Hello Another comment
Error
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
10 questions
DB-Quiz1
Quiz
•
University
10 questions
Contadores y Acumuladores
Quiz
•
University
12 questions
CLC Lesson 8&9 Quiz
Quiz
•
University
11 questions
G 10- Understanding Main Memory and Cache
Quiz
•
10th Grade - University
15 questions
Module 5: Creating Dynamic Web Pages with Scripting
Quiz
•
University
10 questions
Conhecimentos sobre o App Inventor
Quiz
•
9th Grade - University
12 questions
Структуры в С++
Quiz
•
University
10 questions
Informatika2
Quiz
•
11th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
7 questions
SMS Playground Expectations Quiz
Quiz
•
6th - 8th Grade
16 questions
Mario Trivia Challenge
Quiz
•
6th - 8th Grade
14 questions
SMS Car & Bus Expectations Quiz
Quiz
•
6th - 8th Grade
20 questions
Scatter Plots and Line of Best Fit
Quiz
•
8th Grade
12 questions
8th U6 L4 - Fitting a Line to Data
Quiz
•
8th Grade
22 questions
Phases of the moon
Quiz
•
8th Grade