Description and purpose of code indentation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Description and purpose of code indentation

A

Move lines of code inside constructs in by a few spaces (tab) to show clearly which code is inside which construct

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

Purpose and examples of maintainability

A
  • Create the system so that it can be easily maintained (changed, fixed, updated) by other people
  • Add comments and indent code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to anticipate misuse

A

Look at what people could do, and plan to restrict this, e.g. could they access data they shouldn’t ?

If so, plan to stop this by restricting the access

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

Purpose of authentication (defence design)

A

Only allow people with the correct username and password entry to the system

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

Purpose of system maintenance

A

Keeping a system running, e.g. correct errors, change its function, make it more efficient

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

Description and purpose of code comments

A

Text added to a program, which is not run, that explains the purpose/function of sections of code

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

Purpose of testing

A
  • To make sure a system works as intended

* To make sure a system is robust (cannot be easily broken)

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

Purpose of planning for contingencies

A

Plan what happens if something goes wrong, e.g. an error occurs or unexpected data is input, and how data will be recovered

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