47th BCS Technical Written 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 Written exam was held. The paper had 10 written questions. The subjects asked most were Algorithms (2), Networking (2) and Cloud & Emerging Tech (1). This page lists every question, with 1 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.
বিসিএস নিয়োগ পরীক্ষার এই প্রশ্নপত্রে ১০টি প্রশ্ন ছিল, বেশিরভাগ অ্যালগরিদম ও নেটওয়ার্কিং থেকে। এখানে ১টি প্রশ্নের ব্যাখ্যাসহ উত্তর দেওয়া আছে; বাকিগুলো ফ্রি অ্যাকাউন্টে খোলে।
- Organisation
- BCS
- Questions
- 10 (0 MCQ, 10 written)
- Exam guide
- BCS (ICT and CSE cadre) · বিসিএস (আইসিটি ও সিএসই ক্যাডার)
(a) In the case of C programming, how does pointer arithmetic behave? Illustrate with an example.
(b) How do recursion and iteration exhibit different impacts in terms of stack usage and memory overhead? Explain with examples.
(c) Write a recursive C function to find out GCD of two integers. Using that function, explain steps of finding GCD of (96, 36).
(d) Explain differences between structure and union with examples.
(a) What are the purposes of using the protocols ARP and DVR? Explain with examples.
(b) What is Ethernet? Briefly describe technical specifications of 100 Base-T and Gigabit Ethernet standards.
(c) For determining 2's complement of 4-bit binary numbers, design a combinational logic circuit using necessary gates.
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) Discuss how floating point representation contributes to rounding errors.
(b) Through Newton-Raphson method, determine a root of the equation
f(x) = cos x - x, where x₀ = 0.5
(c) Write an algorithm to find out the second best minimum spanning tree (MST) from a graph.
Model answer
(a) How floating-point representation causes rounding errors
A real number is stored in IEEE-754 form as sign × 1.mantissa × 2^exponent, with a fixed number of bits:
| Format | Sign | Exponent | Fraction (mantissa) | Precision | Machine epsilon |
|---|---|---|---|---|---|
| Single (32-bit) | 1 | 8 | 23 (+1 hidden) | about 7 decimal digits | 2⁻²³ ≈ 1.19 × 10⁻⁷ |
| Double (64-bit) | 1 | 11 | 52 (+1 hidden) | about 15–16 decimal digits | 2⁻⁵² ≈ 2.22 × 10⁻¹⁶ |
Because only finitely many values fit, most real numbers are rounded to the nearest representable value:
- Representation error: many decimal fractions repeat in binary. 0.1 = 0.000110011001100…₂, so single precision actually stores 0.100000001490116…
- Rounding in every operation: the exact result of +, −, ×, ÷ may need more bits than the mantissa, so each operation adds a fresh rounding error (at most half a unit in the last place).
- Accumulation: millions of additions in a loop let these small errors build up.
- Absorption: adding a small number to a very large one can be lost completely; in double precision 10¹⁶ + 1 = 10¹⁶.
- Catastrophic cancellation: subtracting nearly equal numbers cancels the leading correct digits and leaves mostly rounding noise.
- Overflow/underflow: results beyond the exponent range become ∞ or lose precision near zero.
Example: in double precision 0.1 + 0.2 = 0.30000000000000004, so 0.1 + 0.2 == 0.3 is false.
(b) Newton-Raphson for f(x) = cos x − x, x₀ = 0.5 (x in radians)
f′(x) = −sin x − 1, so
xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ) = xₙ + (cos xₙ − xₙ)/(sin xₙ + 1)
| n | xₙ | f(xₙ) | f′(xₙ) | xₙ₊₁ |
|---|---|---|---|---|
| 0 | 0.500000 | 0.377583 | −1.479426 | 0.755222 |
| 1 | 0.755222 | −0.027103 | −1.685451 | 0.739142 |
| 2 | 0.739142 | −0.000095 | −1.673654 | 0.739085 |
| 3 | 0.739085 | ≈ −1.2 × 10⁻⁹ | −1.673612 | 0.739085 |
x₃ and x₄ agree to six decimal places, so the root ≈ 0.739085 (check: cos 0.739085 ≈ 0.739085). The number of correct digits roughly doubles at each step (quadratic convergence).
(c) Algorithm: second-best minimum spanning tree
Idea: the second-best MST differs from the MST T by exactly one swap: add one non-tree edge (u, v) and remove the heaviest tree edge on the cycle it forms (the T-path from u to v).
SECOND_BEST_MST(G = (V, E), w)
1. T ← MST(G) using Kruskal (or Prim); W ← total weight of T
2. if G is disconnected or |E| = |V| − 1: return "no second-best MST"
3. for each vertex s in V: // BFS/DFS on T only
maxE[s][s] ← 0
for each tree edge (x, y) met while walking from s:
maxE[s][y] ← max(maxE[s][x], w(x, y))
4. best ← ∞
5. for each edge (u, v) in E − T:
cand ← W − maxE[u][v] + w(u, v)
if cand < best: best ← cand; add ← (u, v); drop ← heaviest edge on T-path u→v
6. return T − {drop} ∪ {add}, weight best
Complexity: O(E log E) for Kruskal + O(V²) for the max-edge table + O(E) to test the non-tree edges = O(E log E + V²) (O(E log V) with LCA binary lifting). If a strictly heavier tree is required when weights tie, use the second-largest edge on the path whenever w(u, v) equals maxE[u][v].
Worked example: edges A–B 1, B–C 2, A–C 3, C–D 4, B–D 5.
graph LR
A ---|1| B
B ---|2| C
A ---|3| C
C ---|4| D
B ---|5| D
- MST T = {A–B, B–C, C–D}, W = 7.
- Non-tree A–C (3): path A–B–C, heaviest = 2 → 7 − 2 + 3 = 8.
- Non-tree B–D (5): path B–C–D, heaviest = 4 → 7 − 4 + 5 = 8.
- Second-best MST weight = 8, e.g. {A–B, A–C, C–D}.
Exam tip: never test floats with == (use |a − b| < ε); in Newton-Raphson, keep the calculator in radians and stop when successive values agree to the required places.
(a) For the frequencies given below, construct a Huffman Tree and compute Average Code Length. {A:5, B:9, C:12, D:13, E:16, F:45}
(b) With the help of a stack, convert the following Infix Expression to Postfix Expression. Show stack contents at each step. (A+B) * (C-D) / E
(c) For the following values, show step-by-step operations of the quick sort Algorithm. [24, 9, 29, 14, 19, 27]
(a) Discuss the roles of different segment registers and offset registers of 8086 microprocessor with examples.
(b) How are the byte and word data read from odd addresses and even addresses of 8086 microprocessor? Discuss with examples.
(a) What are the steps of operation of a compiler? Describe the tasks of each of the steps.
(b) Compare the characteristics and performances of RISC and CISC-based processors.
(a) Consider the following Bank database, where the Primary keys are shown in bold.
- branch (branch_name, branch_city, assets)
- customer (customer_name, customer_street, customer_city)
- loan (loan_number, branch_name, amount)
- borrower (customer_name, loan_number)
- account (account_number, branch_name, balance)
- depositor (customer_name, account_number)
For the above database, write the following SQL queries.
(i) A query to prepare a list of all customers who have an account at all the branches located in Dhaka
(ii) A query to find out the total loan amount of a branch
(iii) A query to prepare a list of all branches that have assets greater than the asset of at least one branch located in Dhaka
(iv) A query to find out the total loan amount of a customer.
(a) What is Regression testing and why is it important?
(b) What is a Sandbox? Why is it used in Software Development?
(c) What is meant by deadlock in the context of operating systems? How can we detect and prevent deadlock?
(d) How can we create a file and a directory using Linux commands?
(a) Differentiate between Supervised learning & Unsupervised learning with examples.
(b) How do neural networks distinguish useful features from non-useful features in Computer Vision?
(c) What is Explainable AI (XAI)? How does it work? Explain with examples.
(a) Compare between IPv4 and IPv6 headers.
(b) Elaborate the processes of CSMA/CD and CSMA/CA.
(c) Explain how "Diffie Hellman Key Exchange" establishes a shared secret.
(d) Compare the function of Firewalls, IDS, and IPS for the purpose of network security.
Sign up free to see the model answers to written questions 4–10 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
9 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; IP Addressing & Subnetting, ER Model & Design and Protocols (TCP/UDP/HTTP/DNS) lead, with 1 each. IP Addressing & Subnetting is asked in 133 other papers too (2012–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
- ER Model & Design Database · 101 other papers, 2015–20261
- Protocols (TCP/UDP/HTTP/DNS) Networking · 90 other papers, 2012–20261
- Testing & Quality Software Engineering · 52 other papers, 2016–20261
- AI & Machine Learning Cloud & Emerging Tech · 49 other papers, 2017–20261
- Pointers, Arrays & Strings Programming · 44 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 Written exam?
- 10 written questions.
- Which subjects were asked most in the 47th BCS Technical Written exam?
- Algorithms (2), Networking (2) and Cloud & Emerging Tech (1), out of 10 questions.
- Where can I find the 47th BCS Technical Written exam question solution?
- On this page: 1 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