Programming languages Flashcards

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

Name of computer language

A

machine code

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

What is a program

A

instructions that enable computer to perform tasks

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

Features of high-level languages (4)

A

programming language

independent of hardware

requires no knowledge of hardware using program

designed with programmer in mind

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

Features of low-level language (3)

A

programming language

dependent on hardware

refer to machine code, binary, assembly language

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

Advantages of high-level language (4)

A

quicker to write programs

easier to debug programs

independent of type of computer used

direct manipulation of hardware

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

Disadvantages of high-level language (3)

A

larger programs

longer for programs to be executed

programs may not be able to use special hardware

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

Advantages of low-level language (4)

A

can use special hardware

code performs task quickly

has machine-dependent instructions

code doesn’t take much primary memory

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

Disadvantages of low-level language (2)

A

longer to write programs

programs more difficult to understand

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

Define a translator (2)

A

utility program

translates program to binary so computer can use it

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

3 types of translators (3)

A

compiler

Interpreter

Assembler

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

Features of compilers (7)

A

program

translates HLL to machine code

1 HLL statement = several machine code instructions

translates whole code at same time

produces executable file of machine code

usually distributed for general use

program able to run without compiler

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

Features of interpreters (4)

A

executes HLL program 1 statement at a time

1 HLL statement = multiple machine code instructions to be executed

does not produce executable file

program cannot run without interpreter

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

How compilers react to error

A

error report produced instead of compiled program

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

How interpreters react to error

A

stops execution

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

Features of assemblers (6)

A

program

translates assembly language/low-level language to machine code

machine code can be used again without re-assembly

1 LLL statement translates = 1 machine code instruction

usually distributed for general use

translated programs able to run without assembler

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

Advantages of interpreters (2)

A

quicker to debug/test programs in development

easier to edit programs in development

17
Q

Disadvantages of interpreters (2)

A

longer to execute

cannot be run without interpreter

18
Q

Benefits of compilers (4)

A

compiled program can be stored for use

compiled program can be executed without compiler

compiled program takes up less memory when executed

compiled program executed in shorter time

19
Q

Disadvantages of compilers

A

longer to write/test/debug programs during development

20
Q

What does IDE stand for

A

integrated development environment

21
Q

Function of IDE

A

help writing/development of programs

22
Q

IDE features (3)

A

error diagnostics

auto-completion

auto-correction

prettyprinting