Quiz
CS revision
This quiz has question types that open in the usual player.
Questions in this quiz (8)
1When is the use of high level language good?
- AWhen it is critical to execute quickly.
- BWhen it the speed of execution doesn't matter.
2Low-level language looks like english.
- ATrue
- BFalse
3An [blank_start]assembler[blank_end] is a program, which converts the [blank_start]low[blank_end] level assembly [blank_start]programming[blank_end] language into machine code.
- Aassembler
- Blow
- Cprogramming
4what is an interpreter?
- AA program, which converts the low level assembly programming language into machine code.
- BA program that converts high level programs into machine code for execution at a later time (the entire program is converted, not one line at a time as with an interpreter).
- CA program, which converts code one line at a time, into machine code and executes it.
5What does a lexical analysis do?
- AComments and unneeded spaces are removed.
- BVariables are checked to ensure that they have been properly declared and used.
- CKeywords, constants and identifiers are replaced by 'tokens'.
- DTokens are checked to see if they match the spelling and grammar expected, using standard language definitions. This is done by parsing each token to determine if it uses the correct syntax for the programming language
6Code [blank_start]optimisation[blank_end] may be employed to make it more efficient/faster/less resource intense.
- Aoptimisation
- Bgeneration
7A compiler is a program that converts high level programs into machine code for execution at a later time.
- ATrue
- BFalse
8Variables are [blank_start]checked[blank_end] to ensure that they have been [blank_start]properly declared and used.[blank_end]
[blank_start]Variables[blank_end] are checked to ensure that they are of the correct data type, e.g. [blank_start]real values[blank_end] are not being assigned to [blank_start]integers[blank_end].
Operations are [blank_start]checked[blank_end] to ensure that they are legal for the type of [blank_start]variable[blank_end] being used, e.g. you would not try to store the result of a [blank_start]division operation[blank_end] as an integer.- Achecked
- Bproperly declared and used.
- CVariables
- Dreal values
- Eintegers
- Fchecked
- Gvariable
- Hdivision operation
Information
- Description
- Quiz on CS revision, created by Calum Roe on 31/03/2021.
- Author
- Calum Roe
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz