Back to marketplace

Chapter 10 - Programming language translators

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What type of code is needed for the CPU to understand it and execute the instructions?

Back (Answer)

» Machine code

#2
Front (Question)

What is the relationship between assembly code and a binary code instruction?

Back (Answer)

» One - to -one

#3
Front (Question)

What does the machine code instructions that a particular computer can execute depend on?

Back (Answer)

» The instruction set

#4
Front (Question)

What is the processor instruction set?

Back (Answer)

» Manufacturer defines a set of these instructions that processor will be able to carry out that will only work with that particular processor » Each type of processor will have a different instruction set and different assembly code

#5
Front (Question)

What are 2 features of low level language?

Back (Answer)

» Specific to the instruction set of the processor » Non-portable (Meaning it can only be run on a processor of the same type that it was written for)

#6
Front (Question)

What is an advantage of using low level languages?

Back (Answer)

» Can make use of specific registers » Therfore programmers have greater control over the movement of data in and out of the processor

#7
Front (Question)

Why are low-level languages not portable?

Back (Answer)

» As the machine code and assembly code are designed for that specific processor » Therefore cannot be processed on other processors

#8
Front (Question)

What are 2 disadvantages of using low level languages?

Back (Answer)

» Difficult to write programs in low level languages as programmers need to have a very good understanding of the hardware being used » Do not have libraries

#9
Front (Question)

What are the categories of low level language?

Back (Answer)

» Assembly code » Machine code

#10
Front (Question)

What is the source code?

Back (Answer)

» Programming statements that are created by a programmer

#11
Front (Question)

What are 2 features of assembly code?

Back (Answer)

» Type of low-level-language, which is made up of commands/mnemonics » Each code translates into 1 machine code instruction

#12
Front (Question)

What are the advantages of high-level languages?

Back (Answer)

» Much easier to write/read words » Portable » Come with libraries

#13
Front (Question)

How are assembly code instructions translated into machine code? 4 marks

Back (Answer)

» Done by an assembler » Replaces mnemonic opcodes with machine code - LDA » Replaces numeric operands with machine code - NUM2 » Chekcs syntax and runs error diagnostics if erros is found

#14
Front (Question)

What does the compiler do?

Back (Answer)

» Translates whole program written in a high level language into executable machine code » Creates object code before being executed into machine code

#15
Front (Question)

How does a compiler work?

Back (Answer)

» Translates high-level code into machine all at once » Carrying out a number of checks first » Compiled code is non-portable » Code can be run without a translater being present

#16
Front (Question)

What does an interpreter do?

Back (Answer)

» Translate code from high level language into machine code line by line

#17
Front (Question)

What are the advantages of a compiler?

Back (Answer)

» Code can be optimised by the compilier » Can be distributed as machine code,meaning that the source code is hiddent

#18
Front (Question)

What are the disavantages of a compiler?

Back (Answer)

» You have to wait until the entire program is compiled before receiving any errors - may take a large time for a large program » Executable code is non-portable

#19
Front (Question)

What are the benefits of an interpreter?

Back (Answer)

» Errors will be reported as soon as they are ecountered - dont have to wait for the entire program to be compiled » Debugging is quick and easily

#20
Front (Question)

What are the drawbacks of an interpreter?

Back (Answer)

» Program requires an interpreter to be run » The interpreter takes up space in memory

#21
Front (Question)

What is object code?

Back (Answer)

» Halway code between high level and machine code » Set of instruction codes that is understood by a computer at the lowest hardware level, but not ready to be executed by the CPU

#22
Front (Question)

What is the difference between a compiler and an interpreter in terms of the steps to turn code in machine code?

Back (Answer)

» Compiler - Source code - Object code - Machine code » Interpreter - Source code - Machince code

#23
Front (Question)

What are 2 differences between a compiler and an interpreter?

Back (Answer)

» Compiler does produce object code - interpreter does not » Compiler translates the whole source code at once, intepreter analyses the code line by kine

#24
Front (Question)

What is a library, and give an example?

Back (Answer)

» Sections of code already pre-programmed by other developers containg useful routines » Such as RANDOM