返回卡包市场

2.5 - Languages & Translators

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 22内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (22 张)

#1
正面 (问题)

What is a high-level programming language?

背面 (解答)

• 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
正面 (问题)

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

背面 (解答)

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

#3
正面 (问题)

What is a low-level language?

背面 (解答)

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

#4
正面 (问题)

State the pros/cons of low-level languages

背面 (解答)

-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
正面 (问题)

What are the two types of low-level language?

背面 (解答)

• Machine Code • Assembly Language

#6
正面 (问题)

What is machine code?

背面 (解答)

Binary

#7
正面 (问题)

What is assembly language?

背面 (解答)

Uses specialised command mnemonics to perform actions

#8
正面 (问题)

Why do computers use binary?

背面 (解答)

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

#9
正面 (问题)

What are the two types of translator?

背面 (解答)

• Interpreter • Compiler

#10
正面 (问题)

What are 2 differences between compilers and interpreters?

背面 (解答)

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
正面 (问题)

What are the benefits of using a compiler?

背面 (解答)

• 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
正面 (问题)

What are the drawbacks of using a compiler?

背面 (解答)

-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
正面 (问题)

What are the benefits of using an interpreter?

背面 (解答)

-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
正面 (问题)

What are the disadvantages of using an interpreter?

背面 (解答)

• Source code needed to run • Slower to execute

#15
正面 (问题)

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

背面 (解答)

Provides programmers with tools to help create programs

#16
正面 (问题)

What are some of the functions of the IDE?

背面 (解答)

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

#17
正面 (问题)

What does the editor do?

背面 (解答)

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

#18
正面 (问题)

What does a break point do?

背面 (解答)

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

#19
正面 (问题)

What does a variable watch / watch window do?

背面 (解答)

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

#20
正面 (问题)

What does trace do?

背面 (解答)

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

#21
正面 (问题)

What do the error diagnostics and debugger do?

背面 (解答)

• 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
正面 (问题)

What does a runtime environment do?

背面 (解答)

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