Part 1 Flashcards

1
Q

What are variables?

A

Variables are used to store information. A variable is an area of memory that has a unique name and value contained within it. This value can change as a program runs.
A variable is associated with a particular data type.

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

What is data?

A

Unprocessed information.

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

Explain the different data types.

Character, Integer, Real, Boolean

A

Characters store single characters, letters and symbols.
Strings store alphanumeric combinations.
Integers are whole numbers.
Real store numbers with decimal places and integers.
Boolean are True or False.

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

What is mod?

A

The remainder of a division

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

What is a sequence?

A

A set of instructions to be carried out. The sequence can contain any number of actions, but no actions can be skipped in the sequence.

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

What is an iteration?

A

A set of instructions that could be repeated zero or more times

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

What is an iteration?

What is a loop?

When to use for loop?

A

A set of instructions that could be repeated zero or more times.

Repeatedly execute a sequence of program statements until, as a result of this repetition; some condition for termination is satisfied.

If we knew how many times a loop is to be executed we can use another type of loop, the for loop.

Loops which are executed an UNKNOWN number of times awaiting some event must use either while do or do while

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

What are logical operators?

A

Logical operators are used for comparison

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

What is a case statement?

A

An alternative to if statement

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

Parameter?

A

In information technology, a parameter is an item of information - such as a name, a number, or a selected option - that is passed to a program by a user or another program. Parameters affect the operation of the program receiving them.

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

What is a data type?

A

a classification of data which tells the compiler or interpreter how the programmer intends to use the data.

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

What is parameter passing?

A

Parameter passing The mechanism used to pass parameters to a procedure (subroutine) or function. The most common methods are to pass the value of the actual parameter (call by value), or to pass the address of the memory location where the actual parameter is stored (call by reference).

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

What is a selection?

A

In a selection structure, a question is asked, and depending on the answer, the program takes one of two courses of action

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

What is a case statement?

A

A selection process with multiple outcomes as opposed to the traditional IF statement with two outcomes

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

What is modular approach?

A

Modular programming is the process of subdividing a computer program into separate sub-programs.

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

What is syntax rule?

A

Programming syntax rule means you must obey the rules as regards the precise spelling of commands and use of punctuation as defined by the maker of the programming language or it will not compile.

17
Q

What is a data dictionary?

A

A ‘data dictionary’ describes the structure of data ‘items’ to be used within a software application.

18
Q

Detailed Design?

A

A finalised and refined design that is presented in a way, that is independent of any programming language

19
Q

Black Box Testing?

A

The structure of the program is not taken into account. The tests are performed based on what the program does.

20
Q

What is a compiler?

A

a program that converts instructions into a machine-code or lower-level form so that they can be read and executed by a computer.

21
Q

Stepwise Refinement

A

A way of developing a computer program by first describing general functions, then breaking each function down into details which are refined in successive steps until the whole program is fully defined. Also called top-down design