Other stuff Flashcards

1
Q

What is a record?

A

A data structure which allows related data of different data types to be stored together

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

Flowchart notation:

A

Arrow - denotes next process
Rectangle - Process
Parallelogram - Input/ Output
Oval - Start/End
Rhombus - Decision

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

What are the advantages of using local variables?

A

Can only be changed within the structure they’re declared in, so programmer doesn’t accidently alter other parts of the program.
Can declare the same variable outside the program, as parameters are not present unless the subroutine is called.
Subroutine with only local variables is self-contained, so can reuse it in another program without having to declare any variables.

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

What are some examples of structured programming?

A

Subroutines
Decomposition
Interface to interact with user

  • all make the program easier to read and understand.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can the efficiency of an algorithm be determined?

A

e.g. fewer variables, fewer steps,

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

What are the advantages of using subroutines?

A

e.g. save time by avoiding repeating code, make program easier to read, programmer can

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

How does notation make a program easier to maintain?

A

It improves readability and separate different statements in a program.

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

How can comments make a program easier to maintain?

A

Used to explain code.

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

How can appropriate variable names make a program easier to maintain?

A

The make it clear what the purpose of the variable is which makes the program easier to understand

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