Assembly Flashcards

1
Q

What is assembly language?

A

Assembly language is a low-level programming language that is a symbolic representation of machine code making it easier for humans to understand and write programs that can be directly executed by a computer’s CPU.

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

Explain the difference between assembly language and machine code.

A

Machine code consists of binary instructions directly executed by the CPU while assembly language uses mnemonics and symbols to represent those instructions in a more human-readable form.

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

What is a mnemonic in assembly language?

A

A mnemonic is a symbolic representation of an operation code (opcode) in assembly language making it easier for programmers to remember and use.

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

Define an instruction set in the context of assembly language.

A

An instruction set is the collection of instructions that a particular CPU architecture understands and can execute.

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

What is the purpose of registers in a CPU?

A

Registers are small fast storage locations within a CPU that are used to hold data temporarily during program execution.

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

Explain the concept of addressing modes in assembly language.

A

Addressing modes define how the operands of an instruction are specified indicating where the data to be processed is located.

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

What is a jump instruction?

A

A jump instruction (or branch instruction) in assembly language transfers program control to a different part of the code enabling conditional or unconditional branching.

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

Define the stack in the context of assembly language.

A

The stack is a region of memory used for storing temporary data and managing subroutine calls in a program.

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

What is the role of an assembler in the assembly language programming process?

A

An assembler is a program that converts assembly language code into machine code allowing the CPU to execute the program.

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

Explain the concept of bitwise operations in assembly language.

A

Bitwise operations manipulate individual bits in binary numbers providing efficient ways to perform tasks such as shifting AND OR and XOR operations.

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