Programming Flashcards

1
Q

What kind of programming languages are the most commonly used today?

A

Object Oriented, particularly Java and C derivatives

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

Example of a second generation language and why would it be used?

A

All assembly languages, they are used when a developer needs to control a core in detail usually to develop efficient code

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

What does a NOT gate do?

A

A NOT gate inverts the signal passing through it. It’s used when something is intended to activate when signal is not detected

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

In what situation would you use an interpreter rather than translator, why?

A

Typically when testing code as it allows the location of any errors to be more easily located while avoiding lengthy compile times

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

What is the first stage of translation and what happens at this stage?

A

Lexical Analyser- Identifies what are words, removes comments

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

What is flowchart useful for?

A

For presenting code or an application concept to a non-programming audience, allowing them to input if the information flow is sensible

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

Where is declarative programming used?

A

It is typically found in databases and configuration management software. Examples are SQL and Prolog

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

What is the second stage of translation and what happens at this stage?

A

Parser- Identifies keywords and organises code into statements based upon this

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

What is the third stage of translation and what happens at this stage?

A

Code Generator- Turns the statements into machine code

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