wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GSCE J277 - 2.3.1 - Maintainability

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
Which of the following isn't a method of improving maintainability in a program
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
2.
Which of the following explain key features of what a program does
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
3.
Which of the following gives suitable names to locations in memory
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
4.
Which of the following allows you to track the flow of data in a program more easily
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
5.
Which of the following shows parts of selection and iteration more easily
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
6.
d would be a good example of a variable name for storing distance
a)
True
b)
False
7.
Could cause a sytnax error in your program if not done correctly
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
8.
Code which isn't indented is easier to debug
a)
True
b)
False
9.
Comments should explain what key features of your program does
a)
True
b)
False
10.
Comments don't help visually divide section of a program
a)
True
b)
False
11.
Use of functions and procedures helps eliminate duplicate code
a)
True
b)
False
12.
Which of these describes maintainability
a)
Making the program easier to use for the user
b)
Making the code easier to read for the user
c)
Making the code easier to read for the programmer
d)
Making the program easier to use for the programmer
13.
In order to explain what you mean to another programmer, you use
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
14.
Why do we use code indentation
a)
To group together a function
b)
The code requires it for sytnax purposes
c)
To make the code easier to read
d)
All of the above
15.
Why should comments be used within a program
a)
To help describe what code and structures are expected to do
b)
To remind the developer when they finished each day
c)
To include what tests must be carried out on a program
d)
To include what they've missed out
16.
Why do programmers want code to be maintainable
a)
To make it easier to edit by other programmers
b)
To lessen the chances of mistakes being made
c)
To make it easier to make corrections and additions
d)
All of the above
17.
Some programming languages do these automatically
a)
Comments
b)
Indentations
c)
Meaningful Variable Names
d)
Functions and Procedures
18.
Comments serve no purpose when the program is running
a)
True
b)
False
19.
Indenting code makes it easier to debug
a)
True
b)
False
20.
Functions and Procedures don't remove repeating code
a)
True
b)
False