Python Indentation Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Christopher Nonweiler
Used 11+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of indentation in Python?
Indentation in Python is used to save memory. It means that you use less RAM.
Indentation in Python makes it look neat
Indentation in Python is used to define the structure. It shows which bits of code are linked together.
Indentation in Python makes the code run faster.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct indentation rule in Python?
Use two spaces for each level of indentation.
Use one tab for each level of indentation.
Do not use any indentation.
Use any amount of space, so long as you are consistent.
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What happens if you mix indentation in Python (e.g. use 2 spaces immediately followed by 3 spaces)?
[Choose 2]
The code will run without any errors
Your code won't run
The indentation will automatically be made into 4 spaces
You will get an indentation and/or syntax error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is "nested" indentation in Python?
Nested indentation is when you use indentation to create loops
Nested indentation is when you use indentation for code relating to birds
Nested indentation is when you use more than one level of indentation to show a sub-section of an indented part of code.
Nested indentation is another word for function indentation. It means that you have used indentation to define a function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to fix an indentation error in Python?
Remove the affected lines
Adjust the indentation of the affected lines
Ignore the indentation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol comes before an indented block in Python?
:
"
)
*
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which block(s) of code have indentation that will work?
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
20 questions
Google SketchUp Tool
Quiz
•
KG - University
20 questions
Prawo autorskie
Quiz
•
9th Grade
20 questions
Technology Innovations
Quiz
•
5th - 12th Grade
22 questions
Steve Jobs
Quiz
•
6th - 12th Grade
22 questions
1.2.4 Data Storage - OCR
Quiz
•
9th - 10th Grade
21 questions
HTML5 & CSS3 Refresher
Quiz
•
7th - 12th Grade
22 questions
PowerPoint 2013
Quiz
•
9th - 12th Grade
20 questions
iMovie App Quiz
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
