Computer Engineering Flashcards
6 cards from real BE/B Eng Bachelor of Engineering practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 Computer Engineering flashcards as text
What is the primary function of the ALU (Arithmetic Logic Unit) in a CPU?
Answer: To perform arithmetic and logical operations on data
The ALU performs all arithmetic (addition, subtraction) and logical (AND, OR, NOT) operations on binary data as directed by the control unit.
In computer architecture, what is cache memory?
Answer: A small, fast memory close to the CPU that stores frequently accessed data
Cache memory is a small, high-speed SRAM buffer between the CPU and main memory that reduces latency by storing frequently or recently accessed data and instructions.
What does pipelining in a CPU refer to?
Answer: Overlapping the execution of multiple instructions by dividing processing into stages
CPU pipelining divides instruction execution into discrete stages (fetch, decode, execute, writeback) so multiple instructions can be in different stages simultaneously, improving throughput.
In binary arithmetic, what is the two's complement of 0110 (representing +6)?
Answer: 1010
Two's complement of 0110: invert all bits to get 1001, then add 1 to get 1010, which represents -6 in two's complement notation.
What is virtual memory in an operating system?
Answer: A technique that allows programs to use more memory than physically available by using disk space
Virtual memory abstracts physical RAM by using a page file on disk, giving each process the illusion of a large contiguous address space regardless of actual RAM size.
Which data structure uses LIFO (Last In, First Out) order?
Answer: Stack
A stack follows LIFO order, where the last element pushed onto the stack is the first one popped off, used in function call management and expression evaluation.