Chapter 7 - High and Low-level Languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a computer program?

A

a list of instructions that enable a computer to perform a specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a translator?

A

convert a program into binary instructions that a computer can understand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do high-level languages allow a programmer to do?

A

focus on the problem to be sold with no knowledge of the hardware and the instruction set of the computer that will use the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What type of language is portable and can be used on different types of computer?

A

high-level languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do low-level languages relate to?

A

the specific architecture and hardware of a particular type of computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are assembly languages?

A

low-level programming language

needs to be translated into machine code by an assembler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is machine code?

A

binary instructions that a computer understands - no translation is required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three types of translators?

A

compilers
interpreters
assemblers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are compilers?

A

a computer program that translates a program written in high-level language into machine code
so it can be directly used by a computer to perform a required task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are interpreters?

A

a computer program that reads a statement from a program written in a high-level language, performs the action specified and then does the same with the next statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are assemblers?

A

a computer programs that translates a program written in an assembly language into machine code
so that it can be directly used by a computer to perform a required task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do compilers do?

A

translates a high level language program into machine code
executable file of machine code produced
one HLL statement –> several machine code statements
compiled programs used without compilers
distributed for general use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do interpreters do?

A

executes a HLL one statement at a time
no executable file of machine code produced
one HLL statement –> needs several machine code instructions
interpreted programs need interpreters
used when a program is being developed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What do assemblers do?

A

translates a low level language into machine code
executable file of machine code produced
one low level language statement –> one machine code instruction
assembled programs used without assemblers
distributed for general purpose

How well did you know this?
1
Not at all
2
3
4
5
Perfectly