
Python Indentation and PEP 8 Quiz

Quiz
•
Computers
•
1st Grade
•
Easy
Adham Elmuntser
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Part 1 Reviewer-ICT1 1st Quarter

Quiz
•
1st Grade
13 questions
Coding- The New Literacy

Quiz
•
KG - 5th Grade
20 questions
Advanced Excel

Quiz
•
KG - University
15 questions
Austine Text

Quiz
•
1st Grade
10 questions
Coding Baseline

Quiz
•
1st - 5th Grade
20 questions
COMPUTING YEAR 1

Quiz
•
1st Grade
10 questions
Flappy Allay

Quiz
•
1st Grade
12 questions
Team 44893 Techno Rebels Robot Design Quick Quiz 4/30/2021

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade