types of programming language translators and integrated development environments ides
使用闪卡高效复习COMPUTER-SCIENCE科目知识点
共计闪卡
39张
闪卡自测
What is a programming language?
所有闪卡
闪卡 1
问题
What is a programming language?
查看答案
答案
A programming language is a bridge between what humans understand and what a computer understands.
闪卡 2
问题
Define low-level language.
查看答案
答案
A low-level language is a programming language that directly translates to machine code understood by the processor.
闪卡 3
问题
True or False? First generation programming languages are written in binary code.
查看答案
答案
True. First generation programming languages are written in binary code.
闪卡 4
问题
What is assembly code?
查看答案
答案
Assembly code is a second-generation language using mnemonics, abbreviated text commands such as LDA (Load), STA (Store).
闪卡 5
问题
Define high-level language.
查看答案
答案
A high-level programming language uses English-like statements to allow users to program with easy to use code.
闪卡 6
问题
True or False? High-level languages allow direct control over hardware components.
查看答案
答案
False. Low-level languages allow direct control over hardware components.
闪卡 7
问题
What are two advantages of high-level languages?
查看答案
答案
Two advantages of high-level languages are:
闪卡 8
问题
What are two disadvantages of low-level languages?
查看答案
答案
Two disadvantages of low-level languages are:
闪卡 9
问题
Define machine code.
查看答案
答案
Machine code is a first-generation language written in binary code that is directly executable by the processor.
闪卡 10
问题
What does one high-level language instruction typically translate to?
查看答案
答案
One high-level language instruction typically translates into many machine code instructions.
闪卡 11
问题
What is assembly language?
查看答案
答案
Assembly language is a second generation, low-level language designed to simplify the writing of machine code instructions for programmers.
闪卡 12
问题
What does the mnemonic LDA stand for in assembly language?
查看答案
答案
LDA stands for Load in assembly language.
闪卡 13
问题
True or False? Assembly language allows programmers to program with mnemonics.
查看答案
答案
True. Assembly language allows programmers to program with mnemonics.
闪卡 14
问题
What is a mnemonic in assembly language?
查看答案
答案
A mnemonic in assembly language is an abbreviated text command that represents a specific machine code instruction.
闪卡 15
问题
What tool is needed to convert assembly language to machine code?
查看答案
答案
An assembler is needed to convert assembly language to machine code.
闪卡 16
问题
What does the mnemonic STO stand for in assembly language?
查看答案
答案
STO stands for Store in assembly language.
闪卡 17
问题
True or False? Assembly language is considered a high-level language.
查看答案
答案
False. Assembly language is considered a low-level language.
闪卡 18
问题
What is one reason programmers use assembly language?
查看答案
答案
One reason programmers use assembly language is to make use of specific hardware or parts of the hardware.
闪卡 19
问题
Define assembler.
查看答案
答案
An assembler is a tool that checks assembly language mnemonics and converts them into relevant binary code.
闪卡 20
问题
What is a translator?
查看答案
答案
A translator is a program that translates program source code into machine code so that it can be executed directly by a processor.
闪卡 21
问题
Define compiler.
查看答案
答案
A compiler is a program that translates high-level languages into machine code all in one go.
闪卡 22
问题
What is an interpreter?
查看答案
答案
An interpreter is a program that translates high-level languages into machine code one line at a time.
闪卡 23
问题
True or False? Compiled code can be distributed without the need for translation software.
查看答案
答案
True. Compiled code can be distributed without the need for translation software.
闪卡 24
问题
What happens if an interpreter finds an error?
查看答案
答案
If an interpreter finds an error, the process stops.
闪卡 25
问题
State two advantages of using a compiler.
查看答案
答案
Two advantages of using a compiler are:
闪卡 26
问题
State two advantages of using an interpreter.
查看答案
答案
Two advantages of using an interpreter are:
闪卡 27
问题
True or False? Interpreted code is easier to distribute than compiled code.
查看答案
答案
False. Compiled code is easier to distribute than interpreted code.
闪卡 28
问题
What type of translator is used for assembly code?
查看答案
答案
An assembler is used to translate assembly code.
闪卡 29
问题
What happens if compiled code contains errors?
查看答案
答案
If compiled code contains errors, after fixing, it will need re-compiling.
闪卡 30
问题
What is an IDE?
查看答案
答案
An IDE (Integrated Development Environment) is software designed to make writing high-level languages more efficient.
闪卡 31
问题
What are four main tools/facilities provided by IDEs?
查看答案
答案
The four main tools/facilities provided by IDEs are:
闪卡 32
问题
Define prettyprint.
查看答案
答案
Prettyprint is using colour to make it easier to identify keywords in code, for example 'print', 'input' and 'if' in Python.
闪卡 33
问题
What is a debugger?
查看答案
答案
A debugger is a tool that provides a 'step through' command which shows what is happening to the code line by line, useful for finding logic errors.
闪卡 34
问题
True or False? ** IDEs include built-in** translators.
查看答案
答案
True. IDEs include built-in translators.
闪卡 35
问题
What is the purpose of a run-time environment in an IDE?
查看答案
答案
The purpose of a run-time environment in an IDE is to give users the ability to run and see the corresponding output of a high-level language.
闪卡 36
问题
What is auto-completion in an IDE editor?
查看答案
答案
Auto-completion in an IDE editor is a feature that automatically completes code as you type.
闪卡 37
问题
True or False? Error diagnostics in IDEs can only identify syntax errors.
查看答案
答案
False. Error diagnostics in IDEs can identify various types of errors, including syntax errors and logical errors.
闪卡 38
问题
What is the purpose of commenting code in an IDE?
查看答案
答案
The purpose of commenting code in an IDE is to stop sections of code from being run or to add explanations about what the program is doing.
闪卡 39
问题
What is bracket matching in an IDE editor?
查看答案
答案
Bracket matching in an IDE editor is a feature that helps ensure opening and closing brackets are correctly paired.