Past Paper 2019 Flashcards
Give one example of 1st, 2nd, 3rd and 4th generation programming languages.
1st gen: Machine Language
2nd gen: Assembly Language
3rd gen: Java
4th gen: SQL
What’s the difference between relational database and flatbed database?
Relational databases have multiple tables in which the data is related and connected using keys. A flatbed is all in one table.
What is the difference between imperative and declarative programming?
Imperative programming focuses on how the program should achieve the result. Declarative programming focuses on what the program should accomplish.
Describe the machine cycle
Consists of the steps that a computer’s processor executes whenever it receives an instruction
How are flow charts and pseudocode used to aid implementing an algorithm?
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
Role of the clock in the machine cycle
The clock performs millions of machine cycle per sec consisting of fetch-execute cycle
Describe a compiler
Takes the source code as a whole and translates it into object code all in one go.
Describe an assembler
Translates assembly language into object code.