Computer Engineering practice questions (Jahziah exam)
One worked question for each of the 9 official subject areas of Computer Engineering, from a bank built on ETEC’s academic standards. Work them here, then practise the full set — with spaced review and timed mocks — in the app, free.
A 12 V battery is connected across a resistor and the current through it is measured to be 3 mA. What is the resistance of the resistor?
A250 Ω
B4 Ω
4 kΩ
D36 kΩ
WHY
Using Ohm's law, R = V/I = 12 V / 3 mA = 12 / 0.003 = 4000 Ω = 4 kΩ.
Sample — the full set, with spaced review and mocks, is in the app.
Area 02 · Computer architecture & organization
A system has a 4-way set-associative cache organized into 64 sets, with a block size of 32 bytes. How many bits are used for the set index field of a 32-bit memory address?
A5 bits
6 bits
C11 bits
D7 bits
WHY
The set index field selects one of the 64 sets. Its width is log2(64) = 6 bits.
Sample — the full set, with spaced review and mocks, is in the app.
Area 03 · Digital design
A 4-to-1 multiplexer has data inputs D0 = 0, D1 = 1, D2 = 0, D3 = 1 and select lines S1, S0 with S1 as the most significant bit. The output Y is taken from the multiplexer. An engineer claims: 'Y = S0 for every combination of the select lines.' Determine the actual value of Y for each combination of (S1, S0) and decide whether the claim is correct.
Y = 0, 1, 0, 1 for (S1,S0) = (0,0), (0,1), (1,0), (1,1); the claim is correct.
BY = 0, 1, 0, 1 for (S1,S0) = (0,0), (0,1), (1,0), (1,1); the claim is false, because Y also equals S0 only coincidentally and is not defined by S0.
CY = 1, 0, 1, 0 for (S1,S0) = (0,0), (0,1), (1,0), (1,1); the claim is false.
DY = 0, 1, 1, 0 for (S1,S0) = (0,0), (0,1), (1,0), (1,1); the claim is false.
WHY
For (S1,S0) = (0,0),(0,1),(1,0),(1,1), the MUX selects D0,D1,D2,D3 = 0,1,0,1 respectively. Thus Y = 0,1,0,1, which equals S0 in every case. Therefore the claim Y = S0 is correct for this configuration. Option A.
Sample — the full set, with spaced review and mocks, is in the app.
Area 04 · Embedded systems
An engineer uses a UART in 8N1 mode at 9,600 bps. If the receiver samples at 16× the bit rate, how many sampling clock cycles occur in one complete transmitted character frame?
A128
B144
160
D176
WHY
A UART 8N1 frame consists of 1 start bit, 8 data bits, and 1 stop bit, for a total of 10 bit periods. With 16× oversampling, the receiver generates 16 sampling clock cycles per bit period. Therefore the total number of sampling clock cycles in one complete frame is 10 × 16 = 160.
Sample — the full set, with spaced review and mocks, is in the app.
Area 05 · Computer networks
Three wireless architectures are described for a moving terminal that must keep a continuous voice session while roaming over a wide area: (i) a cellular network with a home location register and visitor location registers, (ii) an infrastructure Wi-Fi network using a single extended service set with one SSID, and (iii) a Bluetooth piconet. Which statement correctly contrasts their support for wide-area mobility?
AAll three provide equivalent wide-area mobility because each uses a unique device address for routing.
The cellular network supports wide-area roaming through location registers and inter-cell handoff, while the Wi-Fi extended service set and the Bluetooth piconet are limited to local coverage and lack inter-network location management.
CThe Bluetooth piconet provides the widest coverage because its master can hand a connection to any other piconet without prior registration.
DThe Wi-Fi extended service set provides wide-area mobility because all access points use the same SSID and therefore share one global location register.
WHY
Cellular networks use HLR/VLR for location management and support inter-cell handoff, enabling wide-area roaming. A Wi-Fi ESS with a single SSID provides only local coverage (a building or campus) and does not manage location across separate networks. A Bluetooth piconet is a short-range personal network with no wide-area mobility support. Hence B is correct.
Sample — the full set, with spaced review and mocks, is in the app.
Area 06 · Systems resource management
A process issues a read system call for data not currently in main memory. Which sequence of hardware and operating-system actions correctly completes this request?
AThe process reads the disk directly, then the OS invalidates the page table entry.
The MMU raises a page-fault exception, the OS saves the process state, loads the missing page into memory, updates the page table, and restores the process state to resume the instruction.
CThe cache controller loads the page from disk and continues execution without involving the OS.
DThe OS stalls the CPU until a direct-memory-access controller copies the whole process address space to memory.
WHY
When the referenced page is absent, the MMU raises a page fault. The OS saves the process state, brings the page into memory, updates the page table, and restores the process so the instruction can be retried. Option B is the correct sequence.
Sample — the full set, with spaced review and mocks, is in the app.
Area 07 · Signal processing
Two finite-length discrete-time sequences are x[n] = {1, 2} for n = 0, 1 and h[n] = {3, 4} for n = 0, 1, and both are zero elsewhere. Their linear convolution y[n] = x[n] * h[n] has how many nonzero samples, and what is the value of y[2]?
A3 nonzero samples, and y[2] = 10
3 nonzero samples, and y[2] = 8
C4 nonzero samples, and y[2] = 8
D3 nonzero samples, and y[2] = 11
WHY
Convolving the two two-point sequences gives y = {3, 10, 8}: three nonzero samples, with y[2] = 2 × 4 = 8.
Sample — the full set, with spaced review and mocks, is in the app.
Area 08 · Systems & project engineering
An engineering team interviews users for a new traffic-light controller. The users say the controller should 'switch phases when the road is empty.' The requirements document simply writes: 'The controller shall switch phases when the road is empty.' Which method most appropriately derives a precise system specification from this vague requirement?
AAdd the statement to the functional requirements list without changes so it stays traceable to the user.
BReplace the word 'empty' with 'when no vehicle is detected' and accept the requirement as final.
Derive measurable criteria by defining 'empty' as no vehicle detected by the loop sensors for 10 seconds, then state the controller action and timing in the specification.
DAsk the users to rewrite the statement themselves because only they know what 'empty' means.
WHY
To derive a precise specification from a vague requirement, the engineer must define measurable criteria. Option C defines 'empty' in terms of sensor input and duration, yielding a testable specification.
Sample — the full set, with spaced review and mocks, is in the app.
Area 09 · Programming & algorithms
A program has a global variable count initialized to 0 and a function increment() that does not declare its own variable named count; the function only executes count = count + 1. If increment() is called twice, what is the value of the global count after the second call returns?
A0
B1
2
DThe program fails to compile because count is not declared inside increment().
WHY
Because increment() does not shadow count, it updates the global variable. Two calls take 0 → 1 → 2.
Sample — the full set, with spaced review and mocks, is in the app.
Practise CpE questions free.
Every question explains why each option is right or wrong, and brings back what you miss.