differences between assembly code and high level language Flashcards

1
Q

What does assembly code use to represent machine code instructions/opcodes?

A

Mnemonics

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

What type of notation do high-level languages use?

A

More natural/mathematical notation

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

why does assembly code consist of many more lines compared to high-level languages?

A

Because assembly code consists of simple instructions

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

Is assembly code specific to the instruction set of a given processor?

A

Yes, assembly code is specific to the instruction set of a given processor.

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

Are high-level languages architecture specific?

A

No, high-level languages are not architecture specific.

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

What advantage does assembly code provide in terms of efficiency?

A

It allows the programmer to choose the exact instructions for highly efficient code.

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

What level of control over hardware does assembly code offer?

A

Direct control of hardware.

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

Can high-level language compilers optimize code efficiency?

A

Yes, high-level language compilers have optimizers that can sometimes outperform human-written assembly code.

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

Why is high-level code easier to follow and debug compared to assembly code?

A

Because high-level code is more intuitive and easier to read.

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

How does the ease of writing high-level code compare to assembly code in terms of time?

A

High-level code can be written in a much shorter time frame.

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

Can high-level code be recompiled for different architectures?

A

Yes, high-level code can be recompiled for different architectures.

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

Why might programmers prefer high-level languages for different problems?

A

High-level languages come in a variety of paradigms, allowing programmers to choose according to the problem/their preference.

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