Back to marketplace

2.5 - Languages & Translators

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

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

Card preview (22)

#1
Front (Question)

What is a high-level programming language?

Back (Answer)

• Uses syntax similar to a natural human language to make it easier to understand and use • Must be translated into machine code before it can be run

#2
Front (Question)

What are the pros/cons of high-level languages?

Back (Answer)

• More easily written and understood by humans • Portable (can be run on many different CPUs) • Slow to run

#3
Front (Question)

What is a low-level language?

Back (Answer)

Does not closely resemble a natural human language making it harder for humans to understand and use

#4
Front (Question)

State the pros/cons of low-level languages

Back (Answer)

-Low-level languages are easier to optimise -Low-level languages allow the user to directly manipulate memory -Low-level languages are specific to particular CPUs

#5
Front (Question)

What are the two types of low-level language?

Back (Answer)

• Machine Code • Assembly Language

#6
Front (Question)

What is machine code?

Back (Answer)

Binary

#7
Front (Question)

What is assembly language?

Back (Answer)

Uses specialised command mnemonics to perform actions

#8
Front (Question)

Why do computers use binary?

Back (Answer)

Computers are made up of millions of transistors (switches) which can only represent two states (ON and OFF)

#9
Front (Question)

What are the two types of translator?

Back (Answer)

• Interpreter • Compiler

#10
Front (Question)

What are 2 differences between compilers and interpreters?

Back (Answer)

Execution method: - Interpreters translates the source code into machine code line-by-line - Compilers translate all the source code into machine code in one go and produce an executable file Execution speed: - Interpreters are slower than compilers because the code must be reinterpreted each time the program is run - Compilers can produce much more efficient code than interpreters, making the compiled programs run faster Complexity: - Interpreters are smaller, simpler programs - Compilers are large, complex programs Error reporting: - Interpreters report errors to the user immediately and stops translation - Compilers produces all the errors in an error file at the end of compilation Repetition: - Interpreters must reinterpret the program every time - Compilers doesn’t need reinterpretation, but must be re-compiled after changes are made

#11
Front (Question)

What are the benefits of using a compiler?

Back (Answer)

• Produces an executable program: No need to repeat this process more than once per version of the software • Hides the source code from the end user: Protects developers’ intellectual property • Source code not needed afterwards • Fast to execute afterwards

#12
Front (Question)

What are the drawbacks of using a compiler?

Back (Answer)

-Very slow compilation process: This can slow down development if many small changes need to be made • Errors only shown right at the end

#13
Front (Question)

What are the benefits of using an interpreter?

Back (Answer)

-Interpreted languages are ‘portable’: This means that they can be run on many different types of CPU as long as there is an interpreter available for the platform - Errors discovered straight away - Good for small changes

#14
Front (Question)

What are the disadvantages of using an interpreter?

Back (Answer)

• Source code needed to run • Slower to execute

#15
Front (Question)

What is the purpose of the IDE (Integrated Development Environment)?

Back (Answer)

Provides programmers with tools to help create programs

#16
Front (Question)

What are some of the functions of the IDE?

Back (Answer)

• Editor • Error diagnostics and debugger • Run time environment • Translator • Break point • Variable watch/watch window • Trace

#17
Front (Question)

What does the editor do?

Back (Answer)

Allows a programmer to enter and edit source code - Features may include: - Automatic formatting - Automatic line numbering - Automatic colour coding - Statement completion.

#18
Front (Question)

What does a break point do?

Back (Answer)

Allows the programmer to select a specific line and the program displays variable values at that point - a process called single-stepping

#19
Front (Question)

What does a variable watch / watch window do?

Back (Answer)

Displays the current value of a selected variable which can be watched line-by-line to see how the value changes

#20
Front (Question)

What does trace do?

Back (Answer)

Logs the values of variables and outputs of the program as the code is executed line by line

#21
Front (Question)

What do the error diagnostics and debugger do?

Back (Answer)

• Displays information about an error when it occurs (when the program fails to compile or run), such as the line it occurred on and the error type • The debugger helps locate, identify and rectify errors in a program • May also suggest solutions to help the programmer find and fix the error

#22
Front (Question)

What does a runtime environment do?

Back (Answer)

Allows user to run and test the program to determine if there are any logic errors