BPSC Assistant Programmer (ICT) Exam 19 July 2023 — Question Solution | বিপিএসসি (সরকারি কর্ম কমিশন) সহকারী প্রোগ্রামার (আইসিটি) নিয়োগ পরীক্ষা ২০২৩ — প্রশ্ন সমাধান
- BPSC
- Assistant Programmer (ICT)
- 19 July 2023
- 8 questions · 0 MCQ, 8 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BPSC Assistant Programmer (ICT) exam was held on 19 July 2023. The paper had 8 written questions. The subjects asked most were Networking (2), Programming (2) and Algorithms (1). 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.
বিপিএসসি (সরকারি কর্ম কমিশন) সহকারী প্রোগ্রামার (আইসিটি) নিয়োগ পরীক্ষার (২০২৩) এই প্রশ্নপত্রে ৮টি প্রশ্ন ছিল, বেশিরভাগ নেটওয়ার্কিং ও প্রোগ্রামিং থেকে। এখানে ২টি প্রশ্নের ব্যাখ্যাসহ উত্তর দেওয়া আছে; বাকিগুলো ফ্রি অ্যাকাউন্টে খোলে।
- Organisation
- BPSC
- Post
- Assistant Programmer (ICT)
- Exam date
- 19 July 2023
- Questions
- 8 (0 MCQ, 8 written)
- Exam guide
- BPSC non-cadre IT posts · পিএসসি নন-ক্যাডার আইটি পদ
(a) Mention two basic differences between 'Call by Value' and 'Call by Reference'. Write a simple program in C to swap two integer values using 'Call by value'.
(b) What is the diamond problem of multiple inheritance in C++?
(a) Difference between interpreter and compiler. Write down the phases of a compiler.
(b) Define the following terms-
(i) Chromatic number
(ii) Bipartite Graph
(iii) Clique
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) State De-Morgan's law with an appropriate example.
(b) Simplify the following Boolean function using K-map.
Y = A'B'C'D' + A'B'CD' + A'BCD' + A'BCD + AB'C'D' + AB'CD' + ABCD' + ABCD
Model answer
(a) De Morgan's laws
Statement. De Morgan's laws move a NOT across an AND or an OR, swapping the operator:
- First law: (A · B)′ = A′ + B′. The complement of a product is the sum of the complements.
- Second law: (A + B)′ = A′ · B′. The complement of a sum is the product of the complements.
They hold for any number of variables, e.g. (A·B·C)′ = A′ + B′ + C′ and (A + B + C)′ = A′B′C′.
Proof by truth table (both laws):
| Expression | AB = 00 | AB = 01 | AB = 10 | AB = 11 |
|---|---|---|---|---|
| (A·B)′, NAND | 1 | 1 | 1 | 0 |
| A′ + B′ | 1 | 1 | 1 | 0 |
| (A+B)′, NOR | 1 | 0 | 0 | 0 |
| A′·B′ | 1 | 0 | 0 | 0 |
Rows 1 and 2 agree for every input, and so do rows 3 and 4, so both laws hold.
Example (simplification): F = (A′ + B)′ + C
- (A′ + B)′ = (A′)′ · B′ = AB′ (second law)
- F = AB′ + C
Gate meaning: NAND = negative-input OR (first law); NOR = negative-input AND (second law). This is why any AND/OR circuit can be redrawn with NAND only or NOR only.
graph LR
A1((A)) --> NAND["NAND"]
B1((B)) --> NAND
NAND --> Y1["(A·B)′"]
A2((A)) --> I1["NOT"]
B2((B)) --> I2["NOT"]
I1 --> OR["OR"]
I2 --> OR
OR --> Y2["A′ + B′ (same output)"]
(b) Simplifying Y with a K-map
Y = A′B′C′D′ + A′B′CD′ + A′BCD′ + A′BCD + AB′C′D′ + AB′CD′ + ABCD′ + ABCD
Step 1: write each term as a minterm (A is the most significant bit):
| Term | ABCD | Minterm |
|---|---|---|
| A′B′C′D′ | 0000 | m0 |
| A′B′CD′ | 0010 | m2 |
| A′BCD′ | 0110 | m6 |
| A′BCD | 0111 | m7 |
| AB′C′D′ | 1000 | m8 |
| AB′CD′ | 1010 | m10 |
| ABCD′ | 1110 | m14 |
| ABCD | 1111 | m15 |
Y = Σm(0, 2, 6, 7, 8, 10, 14, 15)
Step 2: plot the 4-variable K-map (rows AB and columns CD in Gray-code order 00, 01, 11, 10):
| AB \ CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 1 (m0) | 0 (m1) | 0 (m3) | 1 (m2) |
| 01 | 0 (m4) | 0 (m5) | 1 (m7) | 1 (m6) |
| 11 | 0 (m12) | 0 (m13) | 1 (m15) | 1 (m14) |
| 10 | 1 (m8) | 0 (m9) | 0 (m11) | 1 (m10) |
Step 3: form the largest groups
| Group | Cells | Variables that stay constant | Term |
|---|---|---|---|
| Four corners (top and bottom rows wrap round, left and right columns wrap round) | m0, m2, m8, m10 | B = 0, D = 0 | B′D′ |
| Square quad (rows 01 and 11, columns 11 and 10) | m7, m6, m15, m14 | B = 1, C = 1 | BC |
All eight 1s are covered. The quad m2, m6, m10, m14 (CD′) is also a valid group, but every one of its cells is already covered, so it is redundant and is not used.
graph LR
M["Y = Σm(0, 2, 6, 7, 8, 10, 14, 15)"] --> G1["Corner quad m0, m2, m8, m10"]
M --> G2["Square quad m6, m7, m14, m15"]
G1 --> T1["B'D'"]
G2 --> T2["BC"]
T1 --> Y["Y = BC + B'D'"]
T2 --> Y
Step 4: result
Y = BC + B′D′
Algebraic check:
- m0 + m2 + m8 + m10 = B′D′(A′C′ + A′C + AC′ + AC) = B′D′ · 1 = B′D′
- m6 + m7 + m14 + m15 = BC(A′D′ + A′D + AD′ + AD) = BC · 1 = BC
The expression drops from eight 4-input AND terms to two 2-input AND terms and one 2-input OR gate. Variable A disappears completely, because every 1 of Y appears for both A = 0 and A = 1.
Exam tip: the four corner cells of a 4-variable K-map are adjacent; missing the corner quad leaves two extra pair terms instead of the single term B′D′.
(a) Differentiate between half-duplex and full duplex transmission.
(b) Distinguish between routing and forwarding. What are the advantages of net specific routing over host specific routing?
(a) What is deadlock in operating system (OS)? What are the four necessary and sufficient conditions behind deadlock?
(b) What is the difference between micro kernel and macro kernel in the context of OS?
(c) Define paging and thrashing in the context of OS.
(a) Discuss the main role of Address Resolution Protocol (ARP) in the network layer of TCP/IP protocol suite.
(b) Define the following terms: (i) Bandwidth (ii) Latency (iii) MAC Address (iv) IP address
Sign up free to see the model answers to written questions 4–6 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) What does ACID mean in a database system?
(b) A system has P processes each needing a maximum of m resources and a total of r resources available. Which conditions must hold to make the system deadlock free?
Model answer
(a) ACID
ACID is the set of four properties that a DBMS guarantees for every transaction so that data stays correct despite failures and concurrent access: Atomicity, Consistency, Isolation, Durability.
| Property | Meaning | Example: transfer 500 from account A to B |
|---|---|---|
| Atomicity | All or nothing: either every operation of the transaction is done, or none is (rolled back). | If A is debited but the system crashes before B is credited, the debit is undone. |
| Consistency | A transaction takes the database from one valid state to another, keeping all integrity constraints. | A + B is the same before and after the transfer. |
| Isolation | Concurrent transactions do not see each other's uncommitted changes; the result equals some serial order. | Another transaction never reads A after the debit but before the credit. |
| Durability | Once committed, the changes survive any later crash or power failure. | After "transfer successful", a crash cannot undo it. |
Atomicity and durability are ensured by the recovery manager (log, undo/redo), isolation by concurrency control (locking, timestamps), and consistency by the programmer together with the DBMS constraints.
(b) Condition for a deadlock-free system
Worst case: every process has taken m − 1 resources and waits for one more. Then P(m − 1) resources are held. If no resource is left, every process waits for another, so deadlock occurs.
If at least one more resource exists, one process gets its m-th resource, finishes and releases all m; the others can then finish one after another. Hence the system is deadlock free when
r ≥ P(m − 1) + 1, i.e. P(m − 1) < r, equivalently P·m < r + P.
(This already includes m ≤ r, so a single process can always be satisfied.) If the maximum needs differ, the condition becomes Σ (mᵢ − 1) < r, i.e. Σ mᵢ < r + P.
Worked example: P = 3 processes, m = 3 each.
| r | Worst-case allocation | Result |
|---|---|---|
| 6 | 2, 2, 2 — all 6 used, each needs 1 more | Deadlock possible |
| 7 | 2, 2, 2 + 1 free → one process gets 3, finishes, releases 3 | Deadlock free |
So the minimum is r = 3(3 − 1) + 1 = 7.
Exam tip: remember "everyone holds m − 1, plus one spare": r ≥ P(m − 1) + 1.
(a) Define function overloading and function overriding with examples.
(b) Write a program in C using recursion to find the factorial of an integer.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
6 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৬টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 7 syllabus chapters; the biggest is Functions & Recursion, in Programming, with 2 questions. Functions & Recursion is asked in 60 other papers too (2016–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Functions & Recursion Programming · 60 other papers, 2016–20262
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- Transmission & Media Networking · 79 other papers, 2012–20261
- Processes & Threads Operating Systems · 55 other papers, 2011–20261
- Boolean Algebra & K-Maps Digital Logic · 50 other papers, 2016–20261
- Transactions & Concurrency Database · 23 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 BPSC Assistant Programmer (ICT) exam (2023)?
- 8 written questions.
- Which subjects were asked most in the BPSC Assistant Programmer (ICT) exam (2023)?
- Networking (2), Programming (2) and Algorithms (1), out of 8 questions.
- When was the BPSC Assistant Programmer (ICT) exam held?
- On 19 July 2023.
- Where can I find the BPSC Assistant Programmer (ICT) exam (2023) question solution?
- On this page: 2 of the 8 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