Python Basics Quiz
Quiz
•
Information Technology (IT)
•
8th Grade
•
Hard
imam ibrahim
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Comandos SQL
Quiz
•
University
10 questions
Continue операторы
Quiz
•
9th - 12th Grade
10 questions
Chapter Quiz
Quiz
•
University
15 questions
The Linux Vault
Quiz
•
University
15 questions
ITEC 70 - Quiz # 2
Quiz
•
University
10 questions
8 клас Типи даних у програмуванні. Введення й виведення даних. В
Quiz
•
8th Grade
10 questions
MongoDB Concepts 1
Quiz
•
University
14 questions
1st Quiz
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
20 questions
Figurative Language Review
Quiz
•
8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
22 questions
Newton's Laws of Motion
Lesson
•
8th Grade
24 questions
3.1 Parallel lines cut by a transversal
Quiz
•
8th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
