Programming Flashcards
What kind of programming languages are the most commonly used today?
Object Oriented, particularly Java and C derivatives
Example of a second generation language and why would it be used?
All assembly languages, they are used when a developer needs to control a core in detail usually to develop efficient code
What does a NOT gate do?
A NOT gate inverts the signal passing through it. It’s used when something is intended to activate when signal is not detected
In what situation would you use an interpreter rather than translator, why?
Typically when testing code as it allows the location of any errors to be more easily located while avoiding lengthy compile times
What is the first stage of translation and what happens at this stage?
Lexical Analyser- Identifies what are words, removes comments
What is flowchart useful for?
For presenting code or an application concept to a non-programming audience, allowing them to input if the information flow is sensible
Where is declarative programming used?
It is typically found in databases and configuration management software. Examples are SQL and Prolog
What is the second stage of translation and what happens at this stage?
Parser- Identifies keywords and organises code into statements based upon this
What is the third stage of translation and what happens at this stage?
Code Generator- Turns the statements into machine code