Past Paper 2019 Flashcards

1
Q

Give one example of 1st, 2nd, 3rd and 4th generation programming languages.

A

1st gen: Machine Language
2nd gen: Assembly Language
3rd gen: Java
4th gen: SQL

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

What’s the difference between relational database and flatbed database?

A

Relational databases have multiple tables in which the data is related and connected using keys. A flatbed is all in one table.

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

What is the difference between imperative and declarative programming?

A

Imperative programming focuses on how the program should achieve the result. Declarative programming focuses on what the program should accomplish.

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

Describe the machine cycle

A

Consists of the steps that a computer’s processor executes whenever it receives an instruction

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

How are flow charts and pseudocode used to aid implementing an algorithm?

A

Flow charts use shapes to define actions. Pseudocode is a simplified language using English and can be used as a template for an algorithm code

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

Role of the clock in the machine cycle

A

The clock performs millions of machine cycle per sec consisting of fetch-execute cycle

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

Describe a compiler

A

Takes the source code as a whole and translates it into object code all in one go.

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

Describe an assembler

A

Translates assembly language into object code.

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