How Computers Work
- 36Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In a simple computer circuit, what voltage level is typically supplied between the positive terminal and ground?
In a simple computer circuit, what voltage level is typically supplied between the positive terminal and ground?
36 questions
- 1
In a simple computer circuit, what voltage level is typically supplied between the positive terminal and ground?
- A
1.5 V or 2.0 V
- B
0 V or 1 V
- C
3.3 V or 5 V
- D
9 V or 12 V
Correct answer
C3.3 V or 5 V
Explanation
Modern computer components typically supply 3.3 or 5 volts between the positive terminal and ground.
- A
- 2
How does a computer treat information based on voltage levels?
- A
As binary: on/off, true/false, 1/0 based on high or low voltage
- B
As decimal numbers from 0 to 9
- C
As analog signals with continuous values
- D
As base-10 numbers represented by voltage magnitude
Correct answer
AAs binary: on/off, true/false, 1/0 based on high or low voltage
Explanation
Computers treat information as binary, with high voltage representing 1/true/on and low voltage representing 0/false/off.
- A
- 3
What is the difference between a push-to-make switch and a push-to-break switch?
- A
Push-to-make requires a person to press; push-to-break is automatic
- B
Push-to-make breaks the circuit when pressed; push-to-break completes the circuit when pressed
- C
Push-to-make completes the circuit when pressed; push-to-break breaks the circuit when pressed
- D
Both complete the circuit when pressed, but with different materials
Correct answer
CPush-to-make completes the circuit when pressed; push-to-break breaks the circuit when pressed
Explanation
A push-to-make switch completes the circuit when pressed, while a push-to-break switch breaks the circuit when pressed.
- A
- 4
Which type of MOSFET conducts electricity when a high voltage is applied to its gate?
- A
Neither type
- B
N-channel MOSFET
- C
P-channel MOSFET
- D
Both N-channel and P-channel
Correct answer
BN-channel MOSFET
Explanation
An N-channel MOSFET conducts when a high voltage is applied to the gate, similar to a push-to-make switch.
- A
- 5
In a CMOS pair, what is the relationship between the gate terminals of the N-channel and P-channel MOSFETs?
- A
They are connected to the output
- B
They are always connected together so they receive the same input
- C
They are always connected to different inputs
- D
They are not connected; each has its own independent gate
Correct answer
BThey are always connected together so they receive the same input
Explanation
In CMOS, the gate terminals of a given pair are always connected together so they receive the same input voltage.
- A
- 6
What is the output of a CMOS NOT gate when the input is a high voltage (1)?
- A
Undefined
- B
High voltage (1)
- C
Depends on the supply voltage
- D
Low voltage (0)
Correct answer
DLow voltage (0)
Explanation
In a CMOS NOT gate, when input is high, the N-channel opens a path to low voltage, so output is low (0).
- A
- 7
Which elements are used to dope silicon to create P-type and N-type materials respectively?
- A
Silicon for P-type, Germanium for N-type
- B
Boron for N-type, Phosphorus for P-type
- C
Gallium for P-type, Arsenic for N-type
- D
Arsenic for P-type, Gallium for N-type
Correct answer
CGallium for P-type, Arsenic for N-type
Explanation
Gallium has three valence electrons (one less than silicon) creating P-type; arsenic has five (one more) creating N-type.
- A
- 8
In lithography, what is the purpose of a photoresist?
- A
To conduct electricity between layers
- B
To protect areas from etching after being selectively exposed to light
- C
To dope the silicon with impurities
- D
To connect transistors with metal tracks
Correct answer
BTo protect areas from etching after being selectively exposed to light
Explanation
Photoresist is deposited, exposed through a mask, and then selectively removed to create gaps for etching; unexposed photoresist protects areas from etching.
- A
- 9
What is the fundamental resolution limit in lithography?
- A
The wavelength of light used for exposure
- B
The speed of light
- C
The number of masks available
- D
The thickness of the silicon die
Correct answer
AThe wavelength of light used for exposure
Explanation
Exposed areas must be at least as large as the wavelength of light used; hence very short wavelength ultraviolet light is used.
- A
- 10
Which logic gate outputs 1 only when all inputs are 1?
- A
NAND gate
- B
AND gate
- C
XOR gate
- D
OR gate
Correct answer
BAND gate
Explanation
An AND gate outputs 1 only when all inputs are 1.
- A
- 11
What is the output of an XOR gate when inputs are 0 and 1?
- A
Undefined
- B
0
- C
1
- D
Depends on the order of inputs
Correct answer
C1
Explanation
An XOR gate outputs 1 when inputs are different (one 0 and one 1).
- A
- 12
Why is the NAND gate considered universal?
- A
It is the most commonly used gate in computers
- B
It operates at the highest speed
- C
It can be used to create any other logic gate
- D
It uses the least number of transistors
Correct answer
CIt can be used to create any other logic gate
Explanation
The NAND gate is universal because any other gate can be created using only NAND gates.
- A
- 13
In a CMOS NAND gate, what happens when both inputs are high (1)?
- A
The output is high
- B
The output is undefined
- C
The output is low
- D
The circuit shorts out
Correct answer
CThe output is low
Explanation
In a CMOS NAND gate, when both inputs are high, the N-channel paths to ground open and the P-channel paths to high voltage close, so output is low (0).
- A
- 14
What does the binary number 101 represent in base 10?
- A
3
- B
5
- C
6
- D
101
Correct answer
B5
Explanation
101 in binary is 1×4 + 0×2 + 1×1 = 5.
- A
- 15
In binary addition of two 1-bit numbers, which gates are used to produce the sum and carry bits respectively?
- A
OR for sum, NAND for carry
- B
AND for sum, XOR for carry
- C
XOR for sum, OR for carry
- D
XOR for sum, AND for carry
Correct answer
DXOR for sum, AND for carry
Explanation
The sum bit is 1 when inputs differ (XOR) and carry is 1 only when both inputs are 1 (AND).
- A
- 16
How does a computer multiply a binary number by 2?
- A
Add the number to itself
- B
Shift all bits right by one position
- C
Shift all bits left by one position and add a 0
- D
Multiply by 10 in base 10
Correct answer
CShift all bits left by one position and add a 0
Explanation
Multiplying by 2 (10 in binary) is done by a left shift, which adds a 0 at the end (bit shift).
- A
- 17
How does a computer check if two binary numbers are equal?
- A
Use XNOR gates on each bit and AND the results
- B
Use a single AND gate on the whole number
- C
Use OR gates on each bit and check if any bit is different
- D
Use XOR gates on each bit and OR the results
Correct answer
AUse XNOR gates on each bit and AND the results
Explanation
XNOR returns 1 when bits are equal; AND of all XNOR outputs is 1 only if all bits are equal.
- A
- 18
In a signed binary number, what does the leading bit indicate?
- A
The magnitude of the number
- B
The sign (0 for positive, 1 for negative)
- C
The number of bytes used
- D
Whether the number is even or odd
Correct answer
BThe sign (0 for positive, 1 for negative)
Explanation
In signed numbers, the leading bit is 0 for positive and 1 for negative.
- A
- 19
What is a D-latch used for in a computer?
- A
To perform arithmetic operations
- B
To store a single bit of data
- C
To decode instructions
- D
To generate clock signals
Correct answer
BTo store a single bit of data
Explanation
A D-latch latches and holds a bit value; it is used to store data.
- A
- 20
What is the purpose of the enable input in a D-latch?
- A
To reset the latch to zero
- B
To allow the input bit to propagate to the output when enable is 1
- C
To invert the stored value
- D
To connect the latch to the clock
Correct answer
BTo allow the input bit to propagate to the output when enable is 1
Explanation
When enable is 1, the input D propagates to the output; when enable is 0, the output holds its previous value.
- A
- 21
What is a register composed of?
- A
A single D-latch
- B
A set of logic gates
- C
A capacitor and a transistor
- D
8 D-latches (to store a byte)
Correct answer
D8 D-latches (to store a byte)
Explanation
A register typically stores a byte (8 bits) using 8 latches.
- A
- 22
Why does a computer have a clock?
- A
To measure time for the user
- B
To determine the number of instructions per second
- C
To synchronize operations and ensure signals finish before reading results
- D
To power the components
Correct answer
CTo synchronize operations and ensure signals finish before reading results
Explanation
The clock synchronizes events and ensures enough time for signals to propagate before reading outputs.
- A
- 23
How is data stored in dynamic random-access memory (DRAM)?
- A
Using optical discs
- B
Using magnetic domains
- C
Using flip-flops made of transistors
- D
Using capacitors that hold charge (leaking over time)
Correct answer
DUsing capacitors that hold charge (leaking over time)
Explanation
DRAM uses capacitors that are charged (1) or discharged (0); the charge leaks and must be refreshed.
- A
- 24
What is the difference between a 32-bit and 64-bit program?
- A
32-bit programs run twice as fast
- B
32-bit programs cannot use registers
- C
64-bit programs use 64-bit processors only
- D
64-bit programs can use more RAM because they have larger memory addresses
Correct answer
D64-bit programs can use more RAM because they have larger memory addresses
Explanation
64-bit systems use 64-bit addresses, allowing more than 4 GB of RAM to be addressed (32-bit addresses limit to ~4 GB).
- A
- 25
Which storage type has the fastest access time?
- A
Solid-state drive
- B
Hard disk drive
- C
Random access memory (RAM)
- D
Processor cache
Correct answer
DProcessor cache
Explanation
Cache is small but quick to access; it is the fastest among these options.
- A
- 26
In the von Neumann architecture, where are instructions stored?
- A
In the same memory as data, as binary numbers
- B
Only in the processor's registers
- C
In a separate instruction memory only
- D
On a hard disk never in RAM
Correct answer
AIn the same memory as data, as binary numbers
Explanation
Von Neumann architecture stores instructions and data in the same memory, both as binary numbers.
- A
- 27
How does the computer know where the next instruction is in memory after executing an instruction?
- A
It uses a separate pointer for each instruction type
- B
Each instruction type has a fixed length, and the computer advances by that number of bytes
- C
It always increments a program counter by one byte
- D
The instruction itself contains the address of the next instruction
Correct answer
BEach instruction type has a fixed length, and the computer advances by that number of bytes
Explanation
Each instruction type has a set length; after executing, the computer advances by that many bytes to the next instruction.
- A
- 28
What does a jump instruction do?
- A
It skips the next instruction
- B
It halts the processor
- C
It moves execution to a specified memory address instead of the next sequential instruction
- D
It swaps two registers
Correct answer
CIt moves execution to a specified memory address instead of the next sequential instruction
Explanation
A jump instruction causes the program to continue from a given memory address, enabling loops.
- A
- 29
What makes a computer Turing complete?
- A
The ability to add binary numbers
- B
Running at a clock speed above 1 GHz
- C
Having conditional jumps (branching) in addition to jumps
- D
Having a large enough hard disk
Correct answer
CHaving conditional jumps (branching) in addition to jumps
Explanation
Conditional jumps allow the computer to execute different instructions based on conditions, making it Turing complete.
- A
- 30
What is the role of a compiler?
- A
To translate high-level programming language into machine instructions and memory addresses
- B
To manage memory at runtime
- C
To execute code directly
- D
To act as an operating system
Correct answer
ATo translate high-level programming language into machine instructions and memory addresses
Explanation
A compiler translates human-readable code into the specific instructions and memory layout that the processor understands.
- A
- 31
What is a DLL file on Windows?
- A
A file that stores the operating system's configuration
- B
A dynamic link library containing compiled functions that programs can use
- C
A device driver
- D
A type of executable program
Correct answer
BA dynamic link library containing compiled functions that programs can use
Explanation
DLL stands for Dynamic Link Library; it contains compiled functions that can be shared across programs.
- A
- 32
How many bytes are used to define the color of a single pixel in a typical red-green-blue display?
- A
4 bytes (including alpha channel)
- B
2 bytes (65536 colors)
- C
3 bytes (one each for red, green, blue)
- D
1 byte (256 possible colors)
Correct answer
C3 bytes (one each for red, green, blue)
Explanation
Each of the three colors (red, green, blue) uses one byte, so 3 bytes per pixel for color.
- A
- 33
What is the Bresenham algorithm used for?
- A
Sorting numbers
- B
Drawing lines between two points on a display
- C
Encrypting data
- D
Compressing audio files
Correct answer
BDrawing lines between two points on a display
Explanation
The Bresenham algorithm draws a straight line between two (x,y) coordinates on a pixel grid.
- A
- 34
How does a speaker produce sound?
- A
By heating a wire to cause air expansion
- B
By varying the voltage across an LED
- C
By moving a membrane back and forth using an electromagnet
- D
By spinning a magnet near a coil
Correct answer
CBy moving a membrane back and forth using an electromagnet
Explanation
A speaker has a membrane with a permanent magnet inside a coil; an oscillating current moves the membrane, creating sound waves.
- A
- 35
How does a computer identify which key on a keyboard was pressed?
- A
The keyboard sends the ASCII code directly
- B
The computer measures the time since the last key press
- C
Each key has a unique frequency transmitted to the computer
- D
Keys are arranged in a grid; pressing a key connects a row and column, identifying the key
Correct answer
DKeys are arranged in a grid; pressing a key connects a row and column, identifying the key
Explanation
Keys are arranged in a matrix; pressing a key makes electrical contact between a row and column, allowing identification.
- A
- 36
When a user clicks a button on the screen, how does the computer determine if the click is inside the button?
- A
It uses a random number generator to guess
- B
It checks if the mouse coordinates are within the button's rectangle using comparisons
- C
It sends a signal to the button hardware
- D
It compares the click location to a list of previously stored click locations
Correct answer
BIt checks if the mouse coordinates are within the button's rectangle using comparisons
Explanation
The program checks if the mouse x and y coordinates are within the button's left/right and top/bottom boundaries using conditional comparisons.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.