programming languages and integrated development environments ides
使用闪卡高效复习COMPUTER-SCIENCE科目知识点
共计闪卡
30张
11 programming languages and integrated development environments
闪卡自测
Low-level language
所有闪卡
闪卡 1
问题
Low-level language
查看答案
答案
A low-level language is a programming language that directly translates to machine code understood by the processor.
闪卡 2
问题
First generation language
查看答案
答案
Machine code is a first-generation language where instructions are directly executable by the processor and written in binary code.
闪卡 3
问题
Second generation language
查看答案
答案
Assembly code is a second-generation language that uses mnemonics that correspond almost exactly to machine code instructions.
闪卡 4
问题
High-level language
查看答案
答案
A high-level programming language uses English-like statements to allow users to program with easy to use code.
闪卡 5
问题
True or False? Low-level languages give complete control over components and hardware.
查看答案
答案
True. The main advantage of low-level languages is complete control over the system components and hardware.
闪卡 6
问题
True or False? Low-level languages are easier to write than high-level languages.
查看答案
答案
False. The main disadvantage of low-level languages is that they are difficult to write, understand, and more prone to errors.
闪卡 7
问题
State two advantages of high-level languages?
查看答案
答案
The advantages of high-level languages are that they are easier to:
闪卡 8
问题
State two disadvantages of high-level languages?
查看答案
答案
The disadvantages of high-level languages are:
闪卡 9
问题
True or False? One line of high-level code translates to one machine code instruction.
查看答案
答案
False. One line of high-level code translates into many machine code instructions.
闪卡 10
问题
Give one example of a high-level programming language.
查看答案
答案
Examples of high-level programming languages include:
闪卡 11
问题
Translator
查看答案
答案
A translator is a program that translates program source code into machine code so it can be executed by a processor.
闪卡 12
问题
Compiler
查看答案
答案
A compiler is a translator that translates high-level languages into machine code all in one go, typically used when a program is finished.
闪卡 13
问题
Interpreter
查看答案
答案
An interpreter is a translator that translates high-level languages into machine code one line at a time as the program runs.
闪卡 14
问题
What does an assembler do?
查看答案
答案
An assembler is used to translate low-level assembly code into machine code.
闪卡 15
问题
What is the key difference between a compiler and interpreter?
查看答案
答案
A compiler translates the entire program code at once, while an interpreter translates line by line as it executes.
闪卡 16
问题
When is a compiler typically used?
查看答案
答案
A compiler is generally used when a program is finished and has been checked for syntax errors.
闪卡 17
问题
When is an interpreter typically used?
查看答案
答案
An interpreter is generally used when a program is being written in the development stage.
闪卡 18
问题
What is an advantage of compiled code?
查看答案
答案
An advantage of compiled code is the speed of execution since it is already fully translated to machine code.
闪卡 19
问题
What is a disadvantage of interpreted code?
查看答案
答案
A disadvantage of interpreted code is that it requires translation software to run since it is not pre-compiled.
闪卡 20
问题
True or False? If compiled code has an error, it needs to be recompiled after fixing the error.
查看答案
答案
True. If compiled code contains any errors, after fixing, it will need to be recompiled.
闪卡 21
问题
IDE
查看答案
答案
An Integrated Development Environment (IDE) is software designed to make writing high-level languages more efficient by providing various tools and facilities.
闪卡 22
问题
Editor
查看答案
答案
An editor is an IDE tool that provides an environment to write, edit and maintain high-level code.
闪卡 23
问题
Error diagnostics
查看答案
答案
Error diagnostics are IDE tools that help identify, understand and fix errors in code.
闪卡 24
问题
Run-time environment
查看答案
答案
A run-time environment is an IDE facility that allows users to run code and see the corresponding output.
闪卡 25
问题
Translator
查看答案
答案
A translator is an IDE tool that compiles or interprets code without needing additional software.
闪卡 26
问题
What features can an editor provide?
查看答案
答案
An editor can provide basic formatting tools such as:
闪卡 27
问题
How do error diagnostics help with errors?
查看答案
答案
Error diagnostics can:
闪卡 28
问题
What is the purpose of a run-time environment?
查看答案
答案
A run-time environment allows users to run their code and see the output within the IDE.
闪卡 29
问题
Why is a translator useful in an IDE?
查看答案
答案
A built-in translator is useful in an IDE to compile or interpret code without needing separate software.
闪卡 30
问题
True or False? IDEs make writing high-level code less efficient.
查看答案
答案
False. IDEs are designed to make writing high-level languages more efficient by providing helpful tools and facilities.