T-Level DPDD: Maintainable Code Quiz

T-Level DPDD: Maintainable Code Quiz

11th Grade

9 Qs

quiz-placeholder

Similar activities

Programming - High Level Code & Machine Code

Programming - High Level Code & Machine Code

2nd - 11th Grade

10 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

PI Mod 1 quiz

PI Mod 1 quiz

9th - 12th Grade

10 Qs

Coding and Robotics

Coding and Robotics

8th - 12th Grade

12 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Selection Statements

Python Selection Statements

11th Grade

10 Qs

Python

Python

10th - 11th Grade

10 Qs

KS3 GCSE Computer Science (Programming / Python)

KS3 GCSE Computer Science (Programming / Python)

7th - 11th Grade

10 Qs

T-Level DPDD: Maintainable Code Quiz

T-Level DPDD: Maintainable Code Quiz

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Sara Burton

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does PEP8 stand for in Python programming?

Python Enhancement Proposal

Python Execution Protocol

Python Efficiency Program

Python Error Prevention

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a guideline provided by PEP8?

Naming conventions/styles

Use of comments

Use of white space

Use of global variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it important to use logical and sensible names when creating code?

To make the code run faster

To make it easier for someone else to understand the code

To reduce the size of the code

To increase the security of the code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why should single letter names like I, O, and l be avoided in code?

They are reserved keywords

They can be mistaken for 1 or 0

They slow down the code execution

They are not supported in Python

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'PEP' stand for?

Python Enhancement Proposal

Python Execution Protocol

Program Execution Plan

Python Efficiency Plan

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which construct should be styled in capital letters?

Constants

Variables

Functions

Classes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do comments help when code is being maintained?

They make the code run faster

They provide explanations and improve readability

They reduce the size of the code

They change the output of the code

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many spaces should be left either side of a single mathematical operator?

1

2

3

4

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify one element of code layout.

Indentation

Variable naming

Function definition

Loop structure