Menu

Low and High Level Languages

Card 1 of 20 0 got it 0 still learning
Question
TapClick or press space to see the answer
Answer
Low and High Level Languages exam questions19 questions with mark schemes and example answers
All 20 cards in this set
Which term describes the way of writing programs that uses short codes such as LDA and ADD, where each instruction corresponds directly to a single machine code instruction?
Assembly language
What is meant by machine code?
The binary instructions that a processor can execute directly
What is meant by a high-level language?
A language whose statements look similar to English or maths
What is meant by a low-level language?
A language whose instructions each correspond to one machine code instruction
What is the name for the feature of a high-level language that lets the same program run on different types of processor with few or no changes to the statements?
Machine independence
Which term describes the program statements that a programmer writes, before they are translated into instructions a processor can execute?
Source code
What name is given to a short code such as LDA or STO in assembly language?
A mnemonic
Which of these is a feature of high-level languages rather than low-level languages?
Data structures such as arrays and records
Which of these languages is a low-level language?
Assembly
Why is assembly language classified as a low-level language?
Each instruction corresponds to one machine code instruction
Assembly language is processor-specific. What does this mean for a program written in it?
It must be changed to run on a different processor
Why are high-level languages generally easier to learn than low-level languages?
Their statements look like English or maths
Why can a program written in a high-level language be run on different types of processor?
A different compiler or interpreter translates it for each processor
What usually happens to a single statement written in a high-level language?
It is translated into several machine code instructions
Which type of program is most likely to be written in assembly language?
A device driver that controls hardware
Which is an advantage of high-level languages over low-level languages?
Programs are easier to understand and debug
A robot arm must respond instantly, so its control program must run very quickly and use very little memory. Which language is most suitable?
A low-level language such as assembly
Why was writing programs in machine code slow and difficult for early programmers?
Each instruction is written in binary and does one very small task
An assembly language program must be translated into machine code before it can be executed. Why is this?
A processor can only carry out instructions written in machine code
A programmer has to finish writing a program before a tight deadline. Why does choosing a high-level language help?
Each statement does the work of several machine code instructions