Principles Of Programming. Flashcards

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

What is high level languages?

A

These languages are closer to the programmer’s natural language.

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

Why use high level language?

A

they are easier to understand and are less complex than machine code.

This makes both programming and debugging simpler.

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

Why not use high level language?

A

they are restricted to the number of statements built into them.

If the programmer wants a program to do something but a statement does not exist to do so, the task cannot be done.

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

What are some high level languages?

A

Python
Java
C++
C#

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

What is a source code?

A

Any program written in a high-level language is known as source code.

Source code must be translated into machine code before the computer can understand and execute it.

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

What is low level language?

A

Low-level languages are languages that sit close to the computer’s instruction set and do not resemble natural languages such as English or Welsh.

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

What are the 2 types of low level language?

A

machine code

assembly language

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

What is machine code?

A

a computer programming language consisting of binary or hexadecimal instructions which a computer can respond to directly.

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

Advantages of using machine code?

A

do things that might not be possible in a high-level language.

where machine code instructions are like predefined words.

to build complex sentences or to keep programs very short and simple.

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

What are some disadvantages of using machine code?

A

Machine code is notoriously difficult to write in, understand and debug because it consists of binary code.

Usually, when programmers need direct control they use another type of low-level language called assembly language.

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

What is assembly language?

A

Assembly language sits between machine code and high-level languages.

assembly language uses mnemonics (short abbreviations).

translates high-level languages into machine language.

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

Why use a low level language? Application

A

Low-level languages are used when speed is essential, for example anything that interacts with the software

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

Why use a high level language? Application

A

High-level languages are used for more common, everyday applications that need a lot of programming code and where speed is not essential during program execution.

Word processing packages are written in high-level languages.

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