Preview

04 - Importance of Maintainability

 1. What are factors that contribute to making a program maintainable and easily readable?

  all of the above

  Use of meaningful identifiers

  indentation of code

  use of comments

 2. Having evaluated the visual design of the software, the team must also focus on code structure. Ensuring m___________ and readability is important.

  marginality

  maintainability

  mixability

  minimalism

 3. There are generally three types of maintenance:
Corrective, Adaptive and Perfective

  False

  True

 4. This type of maintenance is necessary when the client needs the software to run on an environment other than the one that it was originally designed for

  perfective

  none of the above

  corrective

  adaptive

 5. This type of maintenance is concerned with altering the software to add new features or enhancements not originally requested in the software specification

  none of the above

  adaptive

  corrective

  perfective

 6. If the software is found to contain any errors that it should not have contained, it is necessary to perform _______________ maintenance.

  perfective

  corrective

  none of the above

  adaptive

 7. Maintainable software is incredibly difficult to extend or fix

  TRUE

  FALSE

 8. What is meant by using 'comments' in code?

  Writing down additional bits of code that do the same thing

  Speaking out loud as you code

  Providing alternative code (comments) that produce a different output

  Explaining the actions of a certain block or line of code

 9. ___________ helps with code being read easily by other programmers. It is also easier to test when this is used as you can see where code blocks begin and end

  Indentation

  Comments

  Building statements

  If statements

 10. What is the following excerpt describing?
Other programmers can understand what the creator is trying to achieve. Prevent a block of code from being translated so it can be used later on/to help with spotting errors.

  the disadvantages of indenting

  the advantages of commenting

  the disadvantages of commenting

  the advantages of indenting