Procedural Programs Flashcards

1
Q

What is selection?

A

Choosing what code to run dependent on either an IF statement with conditions or a SELECT CASE statement.

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

What is a SELECT CASE statement?

A

A SELECT CASE statement allows multiple values and is easy to add more onto. It is generally simpler than an IF statement.

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

What is Iteration?

A

The repetition of code for a set number of times or until a condition is met.

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

What are the three iterative loops?

A

FOR
WHILE
DO UNTIL

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

What is a statement?

A

An self-contained element in a programming language.

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

What is a subroutine?

A

A self-contained block of code, which usually performs one specific job.

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

What is a procedure?

A

A self-contained block of code, which usually performs one specific job, and often needs data passed to it for it to work.

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

What is a function?

A

A self-contained block of code that performs one job, usually needs data passed to it for it to work and always returns only one piece of data.

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

What is a parameter?

A

A piece of data that is passed to a function or procedure for it to work.

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

What is a recursive function?

A

A function that calls itself from within itself.

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

What is recursion?

A

It is where a sub-program is called from within itself.

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