4.4.1.2 Following and writing algorithms Flashcards

1
Q

What is an algorithm?

A

A step by step description of how to complete a task which is independent of any programming language.

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

What are the features of a well written program?

A
Meaningful identifiers that are easily understood
Avoiding using keywords as identifiers
Consistent case for identifiers
Indentations so you can see where structures start and end
Comments to help explain the algorithm
Subroutines that use parameters to execute repeated tasks
Use of selection and iteration
Avoiding using "goto" statements
Use of named constants
Use of user-defined data types
Use of libraries
Use of local variables where possible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly