47th BCS Technical Exam — Question Solution | বিসিএস নিয়োগ পরীক্ষা — প্রশ্ন সমাধান
- BCS
- 10 questions · 0 MCQ, 10 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The 47th BCS Technical exam was held. The paper had 10 written questions. The subjects asked most were Data Structures (2), Electrical & General Engineering (2) and Networking (2). This page lists every question, with 2 answered and explained; the rest of the answers open with a free ARBS Academy account, where the paper can also be practised as a timed test.
বিসিএস নিয়োগ পরীক্ষার এই প্রশ্নপত্রে ১০টি প্রশ্ন ছিল, বেশিরভাগ ডেটা স্ট্রাকচার ও Electrical & General Engineering থেকে। এখানে ২টি প্রশ্নের ব্যাখ্যাসহ উত্তর দেওয়া আছে; বাকিগুলো ফ্রি অ্যাকাউন্টে খোলে।
- Organisation
- BCS
- Questions
- 10 (0 MCQ, 10 written)
- Exam guide
- BCS (ICT and CSE cadre) · বিসিএস (আইসিটি ও সিএসই ক্যাডার)
(a) Write down the Maxwell's equations in integral form and explain their physical interpretations in electromagnetics.
(b) Define phase velocity and group velocity. Explain the relationship between phase velocity and group velocity in dispersive medium.
(c) Convert decimal number 250.5 to base 3 and base 7. Round the answers keeping three digits after the point.
(a) Explain Thevenin's theorem. Describe the steps required to find the Thevenin equivalent voltage and resistance of a given linear circuit.
(b) What is a PN junction diode? Explain its V-I characteristics under forward and reverse bias conditions.
(c) A half-wave rectifier uses a diode with a forward resistance of 500 and is connected to a transformer secondary of 15V(rms) with a load resistance of 1KΩ. Find:
(i) The DC output voltage.
(ii) The peak current through the diode, and
(iii) The efficiency of the rectifier.
(a) Define Boolean algebra. State its fundamental laws and illustrate how these laws are applied to simplify logic expressions.
(b) What are combinational and sequential logic circuits? Explain the design procedure of a full adder with its truth table.
(c) Simplify the following Boolean function using K-map and implement it using NAND gates only. F(A, B, C, D) = Σ(3, 5, 7, 9, 11, 13, 14, 15). Show the simplification steps and draw the final logic diagram.
Sign up free to see the model answers to written questions 1–3 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) What are the differences between Harvard and Von Neumann architecture? Explain using a suitable diagram.
(b) How does DMA increase system concurrency? List the data transfer modes of 8237 DMA controller along with their speciality.
(c) Define addressing modes in microprocessors. Describe any four addressing modes used in the 8086 microprocessor with your own example.
(d) A frequency modulated voltage wave is given by
x(t) = 10 cos(6.28 × 10⁸t + 5 sin 1256 t).
Find: (i) Carrier frequency
(ii) Maximum frequency deviation, and
(iii) Power dissipation by the FM wave in a 10 ohm resistor.
Model answer
(a) Harvard vs Von Neumann architecture
| Feature | Von Neumann | Harvard |
|---|---|---|
| Memory | One shared memory for instructions and data | Separate memories for instructions and data |
| Buses | One common bus (address/data) for both | Separate instruction bus and data bus |
| Simultaneous access | Not possible: fetch and data access take turns (the "Von Neumann bottleneck") | Possible: an instruction can be fetched while data is read/written |
| Speed | Slower, usually more cycles per instruction | Faster, can complete an instruction per cycle with pipelining |
| Memory use | Flexible: free space can hold code or data | Fixed split: unused data memory cannot hold code |
| Cost/complexity | Simpler, cheaper | More hardware, costlier |
| Typical use | General-purpose PCs, laptops, servers | Microcontrollers (AVR, PIC), DSP chips |
graph LR
subgraph VN["Von Neumann"]
M1["Shared memory: instructions + data"] <-->|single bus| C1["CPU: ALU + Control Unit"]
end
subgraph HV["Harvard"]
IM["Instruction memory"] <-->|instruction bus| C2["CPU: ALU + Control Unit"]
DM["Data memory"] <-->|data bus| C2
end
Modern PCs use a modified Harvard design: split L1 instruction and data caches over one unified main memory.
(b) DMA and system concurrency; 8237 transfer modes
Direct Memory Access (DMA) lets an I/O device move data to or from memory through a DMA controller without the CPU copying each word.
How it increases concurrency:
- The CPU only programs the controller (memory address, byte count, direction, mode), then goes back to its own work.
- The device raises DREQ; the 8237 asks for the bus with HRQ (to the 8086's HOLD) and the CPU grants it with HLDA.
- The 8237 activates DACK to the device, drives the address and control lines (MEMR/IOW or IOR/MEMW), and data passes straight between device and memory.
- At terminal count (TC) the 8237 pulses EOP and drops HRQ, returning the bus; EOP (or the device) is normally wired to the interrupt controller so the CPU learns the block is done.
So computation and I/O overlap: the CPU is freed from the per-word load/store loop, it can keep executing from its cache or prefetch queue while the bus is held, and in cycle-stealing mode CPU and DMA share the bus cycle by cycle.
| 8237 mode | Speciality |
|---|---|
| Single transfer | One byte per request; the bus is given back to the CPU after every byte (cycle stealing), so the CPU is never locked out for long |
| Block transfer | Once started by DREQ, the whole block is moved until TC or external EOP; fastest, but the CPU is held off for the whole block |
| Demand transfer | Transfers continue while DREQ stays active; the device can pause by dropping DREQ and resume later; ends at TC or EOP; suits devices with buffers |
| Cascade | Connects further 8237s to expand the number of channels; the master channel only passes HRQ/HLDA and generates no addresses itself |
The 8237 has 4 channels, each doing read, write or verify transfers, plus a memory-to-memory transfer using channels 0 and 1, and auto-initialisation that reloads the address and count after each block.
(c) Addressing modes in the 8086
An addressing mode is the way an instruction specifies where its operand is: in the instruction, in a register, or in memory at an effective address (EA). In the 8086 the physical address = segment × 10H + EA.
Assume DS = 2000H, BX = 0300H, SI = 0010H:
| Mode | Example | Operand location |
|---|---|---|
| Immediate | MOV AX, 2500H |
Data 2500H is inside the instruction |
| Register | MOV BX, CX |
Operand is in register CX |
| Direct | MOV AL, [5000H] |
EA = 5000H → PA = 20000H + 5000H = 25000H |
| Register indirect | MOV AX, [BX] |
EA = BX = 0300H → PA = 20300H |
| Based-indexed with displacement | MOV AX, [BX+SI+05H] |
EA = 0300H + 0010H + 05H = 0315H → PA = 20315H |
Other 8086 modes: based [BX+disp]/[BP+disp], indexed [SI+disp]/[DI+disp], based-indexed [BX+SI], string, I/O port and relative (jumps).
(d) FM wave: x(t) = 10 cos(6.28 × 10⁸ t + 5 sin 1256 t)
Compare with x(t) = A cos(ωc t + β sin ωm t): A = 10 V, ωc = 6.28 × 10⁸ rad/s, ωm = 1256 rad/s, β = 5.
(i) Carrier frequency: fc = ωc/2π = 6.28 × 10⁸ / 6.28 = 10⁸ Hz = 100 MHz
(ii) Modulating frequency fm = 1256 / 6.28 = 200 Hz.
Maximum frequency deviation: Δf = β × fm = 5 × 200 = 1000 Hz = 1 kHz
(iii) The FM envelope is constant, so power depends only on the amplitude:
P = V_rms² / R = (10/√2)² / 10 = 50 / 10 = 5 W
(Taking 2π = 6.2832 gives fc ≈ 99.95 MHz and Δf ≈ 999.5 Hz; the question's 6.28 is 2π rounded, so 100 MHz and 1 kHz are intended.)
Exam tip: in FM, β = Δf/fm and the total power A²/2R does not change with modulation.
(a) Explain the concept of Entropy in information theory. How does it quantify the uncertainty of a random message source?
(b) Compare Amplitude Modulation (AM) and Frequency Modulation (FM) in terms of bandwidth requirement, noise performance, and power efficiency.
(c) A discrete memoryless source emits symbols A, B, C, D with probabilities 0.5, 0.25, 0.15, 0.10, respectively.
(i) Calculate the entropy of the source in bits per symbol, and
(ii) If each symbol is transmitted every millisecond, determine the information rate of the source.
(a) Define constructor, destructor, and copy constructor in object-oriented programming context.
(b) Write a program in C++ to check whether a given number is prime or not?
(c) Prove that a graph G is chordal if and only if every minimal separator of G is a clique.
(d) Define complement of a graph. Prove that for any graph of six vertices, either the graph or its complement contains a triangle.
Sign up free to see the model answers to written questions 5–6 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) Define a graph and explain the concepts of degree, path, cycle, and connectedness in an undirected graph: Differentiate between Eulerian and Hamiltonian graphs with examples.
(b) Explain the difference between Deterministic Finite Automata (DFA) and Non-Deterministic Finite Automata (NFA). Prove that for every NFA, there exists an equivalent DFA that recognizes the same language.
(c) Consider the following undirected weighted graph-
Vertices: A, B, C, D, E
Edges: (A-B)(4), (A-C)(2), (B-C)(1), (B-D)(5), (C-D)(8), (C-E)(10), (D-E)(2), (B-E)(6).
(i) Apply Dijkstra's algorithm to find the shortest path from vertex A to all other vertices.
(ii) Show the step-by-step table of distance updates, and
(iii) Determine the minimum distance from A to E.
Model answer
(a) Graph and its basic concepts
A graph G = (V, E) is a set of vertices V and a set of edges E, where each edge joins two vertices. In an undirected graph an edge {u, v} has no direction.
- Degree of a vertex v, deg(v): the number of edges incident on v (a self-loop counts 2). Handshaking lemma: Σ deg(v) = 2|E|, so the number of odd-degree vertices is always even.
- Path: a sequence of vertices v₁, v₂, …, vₖ in which each consecutive pair is joined by an edge and no vertex repeats (if vertices may repeat it is a walk).
- Cycle: a closed path v₁ … vₖ v₁ with k ≥ 3 in which no edge or vertex repeats except the first = last vertex.
- Connectedness: G is connected if there is a path between every pair of vertices; otherwise it splits into connected components.
Eulerian vs Hamiltonian graphs
| Aspect | Eulerian graph | Hamiltonian graph |
|---|---|---|
| Definition | has a closed trail (Euler circuit) using every edge exactly once | has a cycle visiting every vertex exactly once |
| Focus | edges | vertices |
| Test | connected (ignoring isolated vertices) and every vertex has even degree; exactly 2 odd vertices → only an Euler path | no simple necessary-and-sufficient test (NP-complete); sufficient: Dirac (n ≥ 3, every deg ≥ n/2) or Ore |
| Checking cost | polynomial, O(V + E) | no known polynomial algorithm |
Example 1 – Eulerian but not Hamiltonian (two triangles sharing C):
graph LR
A((A)) --- B((B))
B --- C((C))
C --- A
C --- D((D))
D --- E((E))
E --- C
Degrees A2, B2, C4, D2, E2 are all even → Euler circuit A-B-C-D-E-C-A. No Hamiltonian cycle: every cycle through both triangles must pass C twice.
Example 2 – Hamiltonian but not Eulerian (square P-Q-R-S with diagonal P-R):
graph LR
P((P)) --- Q((Q))
Q --- R((R))
R --- S((S))
S --- P
P --- R
Hamiltonian cycle P-Q-R-S-P exists, but deg(P) = deg(R) = 3 (odd) → not Eulerian (only an Euler path from P to R).
(b) DFA vs NFA
| Aspect | DFA | NFA |
|---|---|---|
| Transition function | δ: Q × Σ → Q | δ: Q × (Σ ∪ {ε}) → 2^Q (set of states) |
| Next state per symbol | exactly one | zero, one or many |
| ε-moves | not allowed | allowed |
| Acceptance | the single run ends in a final state | some run ends in a final state |
| Design | harder, more states | easier, fewer states |
| Running | one state at a time, fast | must track a set of states |
| Power | regular languages | the same regular languages |
Theorem: for every NFA N = (Q, Σ, δ, q₀, F) there is a DFA D with L(D) = L(N).
Proof (subset construction). Let E(S) be the ε-closure of a set S (S plus all states reachable from S by ε-moves). Define D = (Q_D, Σ, Δ, S₀, F_D):
- Q_D = all subsets of Q (at most 2^|Q| states);
- S₀ = E({q₀});
- Δ(S, a) = E( ∪ over q ∈ S of δ(q, a) ) for each subset S and symbol a;
- F_D = { S ⊆ Q : S ∩ F ≠ ∅ }.
Δ gives exactly one subset for each (S, a) (possibly ∅, a dead state), so D is deterministic.
Let δ*(q₀, w) be the set of states N can be in after reading w, and Δ*(S₀, w) the state of D after reading w. Claim: Δ*(S₀, w) = δ*(q₀, w) for every string w. Induction on |w|:
- Base w = ε: Δ*(S₀, ε) = S₀ = E({q₀}) = δ*(q₀, ε).
- Step w = xa: assume Δ*(S₀, x) = δ*(q₀, x) = T. Then Δ*(S₀, xa) = Δ(T, a) = E(∪ over q ∈ T of δ(q, a)), which is exactly the set of states N can reach from T on a followed by ε-moves = δ*(q₀, xa).
Hence w ∈ L(D) ⇔ Δ*(S₀, w) ∈ F_D ⇔ δ*(q₀, w) ∩ F ≠ ∅ ⇔ w ∈ L(N). So L(D) = L(N). ∎
(c) Dijkstra's algorithm from A
graph LR
A((A)) ---|4| B((B))
A ---|2| C((C))
B ---|1| C
B ---|5| D((D))
C ---|8| D
C ---|10| E((E))
D ---|2| E
B ---|6| E
(i) Method: dist(A) = 0, all others ∞. Repeatedly settle the unvisited vertex u with the smallest dist, then relax each neighbour v: if dist(u) + w(u, v) < dist(v), set dist(v) = dist(u) + w(u, v) and parent(v) = u.
(ii) Distance updates (value (parent); ✔ = settled)
| Step | Settled (dist) | A | B | C | D | E |
|---|---|---|---|---|---|---|
| 0 | start | 0 | ∞ | ∞ | ∞ | ∞ |
| 1 | A (0) | ✔ | 4 (A) | 2 (A) | ∞ | ∞ |
| 2 | C (2) | ✔ | 3 (C) | ✔ | 10 (C) | 12 (C) |
| 3 | B (3) | ✔ | ✔ | ✔ | 8 (B) | 9 (B) |
| 4 | D (8) | ✔ | ✔ | ✔ | ✔ | 9 (8 + 2 = 10, no change) |
| 5 | E (9) | ✔ | ✔ | ✔ | ✔ | ✔ |
Shortest paths from A
| Vertex | Distance | Path |
|---|---|---|
| B | 3 | A → C → B |
| C | 2 | A → C |
| D | 8 | A → C → B → D |
| E | 9 | A → C → B → E |
(iii) Minimum distance from A to E = 9, along A → C → B → E (2 + 1 + 6). The direct-looking routes A–C–E (12) and A–C–B–D–E (10) are longer.
Exam tip: in Dijkstra always settle the vertex with the smallest total distance from the start vertex, not the cheapest single edge, and remember it needs non-negative weights.
(a) Explain the differences between stack and queue data structures in terms of their operations, memory organization and real-life applications. Provide one example use-case for each.
(b) Given the following array of integers: A= [45, 23, 11, 89, 77, 98, 4, 28, 65, 43]
(i) Demonstrate how the array is sorted step-by-step using the quick sort algorithm (Choose the first element as pivot).
(ii) Show the contents of the array after each major partitioning step, and
(iii) Determine the average-case time complexity of Quick Sort algorithm and justify your answer.
(c) Explain the concepts of Entity-Relationship (ER) modeling and normalization in database design. How do these processes help in minimizing data redundancy and ensuring data integrity?
(a) State and explain the "Law conservation of bugs".
(b) What is the basic function of paging in OS? Why the page sizes are always power of 2?
(a) Explain the concept of congestion control in computer networks. Discuss briefly how TCP manages congestion during data transmission.
(b) Describe the main differences between symmetric key cryptography and public key cryptography. Give one example algorithm for each type and mention a typical use-case.
(c) A data packet of size 4000 bytes to be transmitted over an Ethernet network with a Maximum Transmission Unit (MTU) of 1500 bytes.
(i) Calculate how many fragments will be generated.
(ii) Determine the offset values of each fragment, and
(iii) Explain briefly how the receiver reassembles these fragments.
Sign up free to see the model answers to written questions 8–10 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
8 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৮টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 9 syllabus chapters; the biggest is Electrical Circuits & Electronics, in Electrical & General Engineering, with 2 questions. Electrical Circuits & Electronics is asked in 35 other papers too (2017–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Electrical Circuits & Electronics Electrical & General Engineering · 35 other papers, 2017–20262
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- Object-Oriented Programming Programming · 88 other papers, 2015–20261
- Transmission & Media Networking · 79 other papers, 2012–20261
- CPU Organization Computer Architecture · 77 other papers, 2011–20261
- Testing & Quality Software Engineering · 52 other papers, 2016–20261
From our own past papers: each question filed under one syllabus chapter. Practice and held questions are not counted.
Questions about this paper · সাধারণ প্রশ্ন
- How many questions were in the 47th BCS Technical exam?
- 10 written questions.
- Which subjects were asked most in the 47th BCS Technical exam?
- Data Structures (2), Electrical & General Engineering (2) and Networking (2), out of 10 questions.
- Where can I find the 47th BCS Technical exam question solution?
- On this page: 2 of the 10 questions are shown with worked answers. The rest of the answers open with a free ARBS Academy account, where the paper can also be practised as a timed test.
Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers