Classification of programming languages and translators

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 12
Easy

Three different representations of a program designed to calibrate a digital temperature sensor are shown in Figure 1.

Figure 1

Program Code PProgram Code QProgram Code R
reading = 45LDR R1, #451011 0001 0010 1101
offset = 5LDR R2, #51011 0010 0000 0101
adjusted = reading + offsetADD R3, R1, R21100 0011 0001 0010
print(adjusted)STR R3, [OUT]1111 0011 0000 0000

Consider the following two descriptions of program translators:

Statement A: This translator parses the entire high-level source code (such as Program Code P) in a single operation, converting it into a separate, standalone machine-code executable file that can run independently of the translator.

Statement B: This translator analyzes and executes the high-level source code step-by-step, instruction by instruction. No standalone binary executable is produced, meaning translation must occur every time the program is executed.

Identify the program translator described in:

a.

Statement A

[1]
b.

Statement B

[1]

Classification of programming languages and translators Questions

  1. GCSE
  2. /Computer Science
  3. /Classification of programming languages and translators