Coding languages Flashcards

(14 cards)

1
Q

What is a high-level language?

A

A high-level programming language uses English-like statements to allow users to program with easy to use code

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

What is low-level language?

A

A low-level language is a programming language that directly translates to machine code understood by the processor

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

How many generations of low-level language are there?

A

2

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

What is Low-Level Language First Generation?

A

1 Machine code is a first-generation language

#2 Instructions are directly executable by the processor
#3 Written in binary code

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

What is Low-Level Language Second Generation?

A

1 Assembly code is a second-generation language

#2 he code is written using mnemonics, abbreviated text commands such as LDA (Load), STA(Store)

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

TRUE OR FALSE One assembly language instruction translates to one machine code instruction

A

TRUE

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

TRUE OR FALSE Second Generation low-Level language needs to be translated into machine code for the computer to be able to execute it

A

TRUE

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

Advantages of Low-Level Languages

A

1 Complete control over the system components

#2 Occupy less memory and execute faster
#3 Direct manipulation of hardware

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

Disadvantages of Low-Level Languages

A

1 Knowledge of computer architecture is key to program effectively

#2 More prone to errors
#3 Machine dependant
#4 Difficult to write and understand

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

TRUE OR FALSE One instruction translates into one machine code instructions

A

FALSE One instruction translates into MANY machine code instructions

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

Advantages of High-Level Languages

A

1 Easier to read and write

#2 Easier to debug
#3 Portable so can be used on any computer
#4 One line of code can perform multiple commands

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

Disadvantages of High-Level Languages

A

1 The user is not able to directly manipulate the hardware

#2 Needs to be translated into machine code before running
#3 The program may be less efficient

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

Is Assembly language the first or second generation of low-level language?

A

Second

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

Is Machine Code the first or second generation of low-level language?

A

First

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