Producing Robust Programs Flashcards

1
Q

What is used to check the input is the correct data type?

A

Type Check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is used to check the input is within the correct range?

A

Range Check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is used to check data has been entered?

A

Presence Check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is used to check input is in the correct format?

A

Format Check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is used to check the input has the correct number of characters?

A

Length Check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name three things you can do to make a program more maintainable?

A
  • Comments (explain purpose of section)
  • White Space (Makes sections of code stand out)
  • Indentation (to show the flow of the program)
  • Variable Names (clarify use for variable)
  • Sub Programs (Structure of code)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly