Midterm Exam Flashcards
Get me prepared for midterm exam covering Chapter 1 to 4 (110 cards)
What is an assembler?
A utility program that converts assembly language source code programs into machine language.
What does a linker do?
A utility program that combines individual files created by an assembler into a single executable program.
What is the function of a debugger?
Lets you trace the execution of a program and examine contents of registers and memory.
How does assembly language relate to machine language?
Assembly language consists of statements written with short mnemonics, and has a one-to-one relationship with machine language.
What is the native machine language of a computer referred to as?
Language L0.
What is Language L1?
A more human-friendly language constructed above machine language.
What are the two ways programs written in L1 can run?
- Interpretation
- Translation
What is a virtual machine?
An abstraction that allows programs written in higher-level languages to run on different hardware.
What does the term ‘MSB’ stand for?
Most Significant Bit.
What does ‘LSB’ stand for?
Least Significant Bit.
What is binary addition?
The process of adding binary digits, where the outcomes include carrying over when both bits are 1.
What is the hexadecimal system?
A base-16 number system where each digit corresponds to 4 binary bits.
How are signed integers represented in binary?
Using two’s complement notation.
What is the Boolean NOT operation?
Inverts (reverses) a boolean value.
What is the truth table for the AND operator?
The output is true only when both inputs are true.
What does the OR operator do?
The output is false only when both inputs are false.
What is a truth table?
A table that shows all the inputs and outputs of a Boolean function.
What are the main components of a CPU?
- Registers
- High-frequency clock
- Control unit
- Arithmetic logic unit (ALU)
What is the instruction execution cycle?
- Fetch
- Decode
- Fetch operands
- Execute
- Store output
What is a cache hit?
When data to be read is already in cache memory.
What is a cache miss?
When data to be read is not in cache memory.
What is an operand?
A value that is either an input or an output to an operation.
What is the purpose of general-purpose registers?
To hold values used in operations and to optimize speed.
What does the EIP register do?
Contains the address of the next instruction to be executed.