Python Basics Quiz

Quiz
•
Information Technology (IT)
•
8th Grade
•
Hard
imam ibrahim
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Battle Royale: Who Will Survive in the End?❤️🤔

Quiz
•
9th - 12th Grade
11 questions
Câu Lệnh Rẽ Nhánh IF ELSE

Quiz
•
10th Grade
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
7 questions
9 клас. Дії над списками у мові програмування Python

Quiz
•
9th Grade
10 questions
LOOPS AND FLOW CONTROL STATEMENTS

Quiz
•
8th Grade
14 questions
C++ QUIZ

Quiz
•
12th Grade
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
10 questions
Quiz: Programming Basics Review

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
18 questions
Identifying Functions Practice

Quiz
•
8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade