Programming Flashcards

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

High level languages

A

Program language that allows code to be written
-uses instructions based on a recognisable human language – usually English.
provides abstraction.
It hides (abstracts) more complex instructions from
the programmer.
must be either compiled or interpreted into a low-level language.

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

Low-Level Languages

A

uses instructions that are closer to what a computer understands.

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

Assembly Language

A

a low level language
Programmers have to write instructions using acronyms to control the components of the CPU and move data around the CPU’s registers.

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

assembler

A

converts assembly language into machine code.

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

Machine Code

A

a low level language
the set of instructions that a computer processor actually uses.
Machine code is binary that represents both instructions and data.

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

Advantages of High-Level Programming Languages

A

Easier for humans to understand.
Easier to write programs
Easier to debug programs
Programs can be written on one type of computer (e.g. Windows) but run on many different types of computer (e.g. Apple, Linux).

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

Disadvantages of High-Level Programming Languages

A

Programs need to be converted into a low-level language before they can be run.
This can make a program run slower if it is interpreted.

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

Advantages of Low-Level Programming Languages

A

Programs are considerably faster.

Programs use less memory space (RAM).

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

Disadvantages of Low-Level Programming Languages

A

Low-level programs are very complex for a human to write.
They are also very difficult to debug.
The programs may only run on one specific computer architecture e.g. an Intel processor.

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

Compilers

A

changes a computer program written in a high-level programming language into either assembly language or machine code.

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

Interpreters

A

convert a high-level computer program into machine code line-by-line.

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

Translators

A

Compilers, interpreters and assemblers are all types of translator.
They translate a computer program from one language to another language.

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

Domain-Specific Languages

A

computer languages are written for a specific purpose within a specific area of ICT.
HTML is only used to create webpages.
SQL is only used to work with databases.

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

Static Variables

A

is created when the program starts and is stored in memory until the program ends.
It cannot be deleted and re-created

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

Dynamic Variables

A

is only stored in memory when it is being used by a program. It is deleted from memory when it is not being used anymore.

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

Global Variables

A

are available to the entire program.

17
Q

Local Variables

A

declared inside methods (functions)

They can only be used inside the method in which they are declared.

18
Q

Constants

A

A constant is a value that never changes

19
Q

Variable Scope

A

refers to which parts of a program can see a variable, or which parts of a program have access to a variable

20
Q

Syntax error

A

An error that occurs when a command does not follow the expected syntax of the language

21
Q

Runtime/execution error

A

An error that only occurs when the program is running and is difficult to foresee before a program is compiled and run

22
Q

Logical error

A

And Error that causes a program to output an incorrect answer

23
Q

Linking error

A

An Error that occurs when a programmer calls a function within a program and the correct library has not been linked to that program

24
Q

Rounding error

A

Rounding is when a number is approximated to the nearest whole number

25
Q

Truncation error

A

Truncating is when a number is approximated to a whole number