
Python Basics Quiz for Grade 8
Information Technology (IT)
8th Grade

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
Which of the following is a valid variable name in Python?
1st_variable
firstVariable
first-variable
first variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python x = 10 if x > 5: print("Greater") else: print("Smaller") ```
Greater
Smaller
Error
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the error in the following code: ```python for i in range(5) print(i) ```
Missing colon (:) after range(5)
Indentation error
Syntax error in print statement
No error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python x = 3 y = 5 if x < y and y > 2: print("True") else: print("False") ```
True
False
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a logical operator in Python?
and
or
not
then
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python for i in range(3): print(i) ```
0 1 2
1 2 3
0 1 2 3
1 2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about indentation in Python is true?
Indentation is optional in Python.
Indentation is used to define blocks of code.
Indentation can be replaced with semicolons.
Indentation is only required in loops.
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
Lego Spike & Python - Challenge 3 Quiz
Quiz
•
6th - 8th Grade
10 questions
Informatika Kelas 8
Quiz
•
8th Grade
12 questions
Тест з теми 'Списки – змінювані послідовності'
Quiz
•
7th Grade - University
10 questions
Common Webpage Buttons
Quiz
•
8th Grade - University
15 questions
Quiz sobre el ornitorrinco y la programación
Quiz
•
8th Grade - University
10 questions
Information Technology Concepts
Quiz
•
8th Grade
9 questions
Увлекательный мир Python
Quiz
•
6th 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
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade