Save
...
Paper 2
2.5 Programming Languages
Summary
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Pav Bath
Visit profile
Cards (22)
What are the three general types of translators?
High level languages
,
low level languages
, and
machine code
View source
What is a high level language?
A programming language that uses
English keywords
for syntax and is easily understandable for humans
View source
Why must high level languages be translated into machine code?
Because
computers
can only understand machine code
View source
How does the relationship between high level languages and machine code differ from that of low level languages?
High
level
languages can translate to
multiple
lines
of machine code, while
low
level languages have a
1-1
relationship
View source
What is low level language also known as?
Assembly code
View source
What is a characteristic of low level languages?
They use
mnemonics
or abbreviations of code
View source
What does it mean that low level languages are hardware specific dependent?
It means they are
designed
to work with
specific
types
of
hardware
View source
What is machine code?
Code for the
CPU
to execute, consisting of
binary
instructions
View source
Why does machine code not need to be translated?
Because it is already in a format that the
CPU
can execute
View source
What are the components of machine code?
Opcodes
and
operands
View source
What is the purpose of a translator?
To convert
source code
into
binary
or machine code
View source
What are the three types of translators?
Compiler
,
interpreter
, and
assembler
View source
How does a compiler work?
It translates code all at once and produces an
executable
file
View source
What happens when a compiler finds an error?
It reports all errors at the end of the
compilation
View source
How does an interpreter differ from a compiler?
An interpreter translates
code
line by line, while a compiler translates all at once
View source
What is an Integrated Development Environment (IDE)?
An environment that provides tools for
writing
and testing code
View source
What are some tools integrated into an IDE?
Text
editors
, error diagnostics,
translators
, and run time
environments
View source
What is the role of error diagnostics in an IDE?
To display information about errors and their
locations
View source
What is the purpose of the run time environment in an IDE?
To enable the
program
to be run and check if it works
View source
What are the advantages of using a high level language over a low level language for programming?
High level languages use
English words
and phrases, making them easily understandable by humans.
They are
processor independent
, allowing code to be written once for many processor types.
View source
What is an example of an IDE?
IDLE
View source
Why is it important for a programmer to use a high level language?
Because it simplifies the coding process and enhances
readability
View source