
Python Indentation and PEP 8 Quiz
Authored by Adham Elmuntser
Computers
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum recommended line length in Python according to PEP 8?
50 characters
79 characters
100 characters
120 characters
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does consistent indentation help with in Python code?
Making the code colorful
Improving readability
Adding more functions
Increasing execution speed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an example of a bad indentation practice?
Using 4 spaces
Using inconsistent spaces
Using comments
Using functions
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why should lines be limited to 79 characters in Python?
To make the code colorful
To improve readability
To add more comments
To increase speed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an example of a good indentation practice?
Using 2 spaces
Using 4 spaces
Using tabs
Using no spaces
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How should imports be organized in code?
On separate lines
All on one line
In random order
Without any order
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the naming convention for variable and function names?
CamelCase
snake_case
UPPERCASE
lowercase
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
19 questions
Revision Practice DT
Quiz
•
1st - 2nd Grade
13 questions
Intro to IF statements
Quiz
•
KG - University
15 questions
Problem Analysis
Quiz
•
1st Grade
11 questions
Standby PSPM SC015
Quiz
•
1st - 5th Grade
15 questions
coding
Quiz
•
KG - Professional Dev...
20 questions
Photoshop Quiz
Quiz
•
1st - 3rd Grade
14 questions
Google Docs and Google Slides Review
Quiz
•
KG - University
16 questions
CyberSafety Pre-Assessment
Quiz
•
KG - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Life Cycle of a Frog
Quiz
•
1st - 2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
100th Day of School 1st/2nd
Quiz
•
1st - 2nd Grade
15 questions
Reading Comprehension
Quiz
•
1st - 5th Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade