BPSC Sub-Assistant Engineer Exam 2021 — Question Solution | বিপিএসসি (সরকারি কর্ম কমিশন) উপ-সহকারী প্রকৌশলী নিয়োগ পরীক্ষা ২০২১ — প্রশ্ন সমাধান
- BPSC
- Sub-Assistant Engineer
- 2021
- 10 questions · 0 MCQ, 10 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BPSC Sub-Assistant Engineer exam was held in 2021. The paper had 10 written questions. The subjects asked most were Networking (3), Database (2) and Digital Logic (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.
বিপিএসসি (সরকারি কর্ম কমিশন) উপ-সহকারী প্রকৌশলী নিয়োগ পরীক্ষার (২০২১) এই প্রশ্নপত্রে ১০টি প্রশ্ন ছিল, বেশিরভাগ নেটওয়ার্কিং ও ডেটাবেজ থেকে। এখানে ২টি প্রশ্নের ব্যাখ্যাসহ উত্তর দেওয়া আছে; বাকিগুলো ফ্রি অ্যাকাউন্টে খোলে।
- Organisation
- BPSC
- Post
- Sub-Assistant Engineer
- Exam date
- 2021
- Questions
- 10 (0 MCQ, 10 written)
- Exam guide
- BPSC non-cadre IT posts · পিএসসি নন-ক্যাডার আইটি পদ
(a) What is meant by Encryption and Decryption?
(b) Write down the purpose of Certification Authority (CA) in Digital Signature.
Model answer
(a) Encryption and Decryption
Encryption is the process of converting readable data (plaintext) into an unreadable form (ciphertext) using an algorithm and a key, so that only authorised parties can read it.
Decryption is the reverse process: converting ciphertext back into the original plaintext using the correct key.
Notation: C = E(K, P) and P = D(K′, C), where K′ = K for symmetric ciphers.
graph LR
P1["Plaintext"] --> E["Encrypt with key K"]
E --> C["Ciphertext - sent over an insecure channel"]
C --> D["Decrypt with key K or the matching private key"]
D --> P2["Original plaintext"]
Worked example (Caesar cipher, key = 3): encryption shifts each letter 3 places forward: HELLO → KHOOR. Decryption shifts 3 places back: KHOOR → HELLO. (Real systems use strong ciphers such as AES, not Caesar.)
Two types:
| Basis | Symmetric key | Asymmetric (public) key |
|---|---|---|
| Keys | One shared secret key for both operations | Key pair: public key encrypts, private key decrypts |
| Speed | Fast; used for bulk data | Slower; used for key exchange and signatures |
| Key distribution | Hard — key must be shared secretly | Easy — public key can be published |
| Examples | AES-128/256, ChaCha20 (DES is obsolete) | RSA (2048-bit or more), ECC |
In practice both are combined: HTTPS (TLS 1.2/1.3) uses public-key methods to agree a session key, then AES encrypts the actual data.
(b) Purpose of a Certification Authority (CA) in digital signature
A digital signature is verified with the signer's public key. The verifier must therefore be sure that this public key really belongs to the claimed signer. A Certification Authority (CA) is a trusted third party that provides this assurance.
Purposes/functions of a CA:
- Identity verification: checks the applicant's identity (often through a Registration Authority) before issuing anything.
- Issuing digital certificates: issues an X.509 certificate that binds the subject's identity to its public key, with a serial number and validity period.
- Signing the certificate: signs the certificate with the CA's own private key, so anyone can check it with the CA's public key and detect tampering.
- Chain of trust: root CA → intermediate CA → end-user certificate; browsers and operating systems hold trusted root certificates.
- Revocation: cancels compromised or invalid certificates and publishes their status through a CRL or OCSP.
- Lifecycle management: handles renewal and expiry of certificates.
- Supporting non-repudiation: because the key is tied to a verified identity, the signer cannot later deny the signature.
graph TD
A["Signer generates key pair and sends CSR with public key"] --> B["CA verifies signer identity"]
B --> C["CA issues certificate signed with CA private key"]
C --> D["Signer signs document with own private key and attaches certificate"]
D --> E["Verifier checks certificate using CA public key"]
E --> F["Verifier checks signature using signer public key from certificate"]
F --> G{"Both valid?"}
G -- "Yes" --> H["Signature trusted: authentic and unaltered"]
G -- "No" --> I["Reject"]
In Bangladesh, digital signatures are legally recognised under the ICT Act 2006, and CAs are licensed by the Controller of Certifying Authorities (CCA).
Exam tip: Encryption = plaintext → ciphertext, decryption = ciphertext → plaintext; a CA's core purpose is to bind a public key to a verified identity through a signed digital certificate.
(a) Draw the logic diagram of a Half-Adder and the truth table of a Full-Adder, and use Half-Adders and basic gates to build a Full-Adder.
(b) Use Algebraic manipulation to convert the following equation to sum-of-product form:
y(z + w̄) + x(z̄ + ȳ)w̄ + (zw)(x̄ȳ)
(a) A comparator has two inputs A= A₁A₀ and B= B₁B₀ and one output F. Output becomes one whenever the value of A>B
(i) Show the truth table for F.
(ii) Simplify the function using K-Map.
(b) Write Linux commands to:
(i) Make a directory named PSC
(ii) Copy a directory with all its contents into a directory named /home/admin.
(a) Why do we need NAT? What are its advantages? Draw a topology diagram to explain NAT.
(b) Explain the message flow between a DHCP server and client. Show necessary timing diagram.
(a) How can VPN provide secure communication platform? Explain site-to-site VPN and remote-access VPN using necessary figures.
(b) Distinguish between phishing and pharming. Give examples to explain.
(a) What is the usable number of host IP addresses available on a network that has a /26 mask? Write down the subnet mask of this network. Write down the first and the last IP address that can be assigned to host PCs if the network address is 192.168.30.128/26. What address should be used for broadcast purpose in this network?
(b) How is Hierarchical DNS resolution done in Domain Naming System? Give an example resolution for xyz.uv.gov.bd domain name.
Sign up free to see the model answers to written questions 2–6 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) Distinguish between table and view in database management system.
(b) What are the purposes of using a foreign key in a database? Give a suitable example.
(c) In an SQL query, while performing string matching, when do we use the = operator and when do we use the LIKE operator? Give examples.
Model answer
(a) Table vs view
A table is a physical database object whose rows are actually stored on disk. A view is a virtual table: a stored SELECT query that is run each time the view is used, so it holds no data of its own.
| Point | Table | View |
|---|---|---|
| Nature | Physical; data stored | Virtual; only the query definition is stored |
| Created by | CREATE TABLE |
CREATE VIEW … AS SELECT … |
| Dependence | Independent object | Depends on its base table(s); dropping them breaks the view |
| Storage | Needs space for the data | Almost none (except a materialized view) |
| INSERT/UPDATE/DELETE | Always allowed (subject to constraints) | Only on simple views (one table, no aggregate/DISTINCT/GROUP BY) |
| Freshness | — | Always shows the current data of the base tables |
| Main use | Storing data | Security (hide columns/rows), simplifying complex queries |
CREATE VIEW ict_staff AS
SELECT e.name, d.dept_name
FROM employee e JOIN department d ON e.dept_id = d.dept_id
WHERE d.dept_name = 'ICT';
Users can be given access to ict_staff without seeing salaries or other departments.
(b) Purpose of a foreign key
A foreign key is a column (set) in a child table that refers to the primary (or unique) key of a parent table. Purposes:
- Links tables — represents relationships (1:N directly, M:N through a junction table).
- Enforces referential integrity — a child row cannot refer to a parent that does not exist.
- Controls parent changes — deleting/updating a referenced parent is rejected, cascaded or set to NULL as declared.
- Avoids redundancy — department details are stored once and referred to by
dept_id(normalisation). - Supports correct joins and documents the design.
Example:
CREATE TABLE department (
dept_id INT PRIMARY KEY,
dept_name VARCHAR(30)
);
CREATE TABLE employee (
emp_id INT PRIMARY KEY,
name VARCHAR(30),
dept_id INT REFERENCES department(dept_id) -- foreign key
);
INSERT INTO department VALUES (10, 'ICT'), (20, 'Accounts');
INSERT INTO employee VALUES (1, 'Rahim', 10), (2, 'Karim', 10), (3, 'Salma', 20);
| Statement | Result |
|---|---|
INSERT INTO employee VALUES (4, 'Babu', 30); |
Rejected — department 30 does not exist |
DELETE FROM department WHERE dept_id = 10; |
Rejected — Rahim and Karim still refer to it |
SELECT e.name, d.dept_name FROM employee e JOIN department d ON e.dept_id = d.dept_id; |
Rahim–ICT, Karim–ICT, Salma–Accounts |
(c) = operator vs LIKE in string matching
=compares the whole string exactly. Use it when the complete value is known. It has no wildcards:%and_are ordinary characters.LIKEdoes pattern matching with two wildcards:%= any sequence of zero or more characters,_= exactly one character. Use it for "starts with", "ends with", "contains" or fixed-length patterns.
Sample table customer(name, email): ('Rahim', 'rahim@gmail.com'), ('Rahima', 'rahima@yahoo.com'), ('Karim', 'karim@gmail.com'), ('Abdur Rahim', 'ar@bd.com')
| Query condition | Rows returned |
|---|---|
WHERE name = 'Rahim' |
Rahim |
WHERE name LIKE 'Rahim%' (starts with) |
Rahim, Rahima |
WHERE name LIKE '%Rahim%' (contains) |
Rahim, Rahima, Abdur Rahim |
WHERE email LIKE '%@gmail.com' (ends with) |
Rahim, Karim |
WHERE name LIKE '_arim' (one char + "arim") |
Karim |
WHERE name = 'Rahim%' |
No rows — % is literal with = |
Notes:
NOT LIKEgives the opposite; to search for a literal%or_useESCAPE, e.g.LIKE '50!%' ESCAPE '!'.- Case sensitivity depends on the DBMS/collation (MySQL's default collations are case-insensitive; PostgreSQL's LIKE is case-sensitive and ILIKE is not).
=and a prefix pattern like'Rah%'can use an index; a leading%forces the DBMS to read every row.
Exam tip: view = stored query with no data of its own; a foreign key links tables and blocks orphan rows; use = for an exact value and LIKE with %/_ for a pattern.
(a) While converting an E-R diagram into tables, how is a many-to-many relationship set between entities A and B converted into database tables?
(b) Write down a program in C language that will find the maximum of four integers given as inputs.
(a) Distinguish between black box and white box testing. Give examples of both type of testing
(b) Why are constructor and destructor functions used in object oriented programming? Give examples of each function in C++ or Java language.
(a) Out of ten families, six families have dogs, four have cats and two have neither cats nor dogs. Find the number of families that have both cats and dogs?
(b) Using mathematical induction, show that 3ⁿ - 1 is a multiple of 2 for n >= 1.
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 10 syllabus chapters; IP Addressing & Subnetting, ER Model & Design and SQL & Queries 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
- SQL & Queries Database · 93 other papers, 2015–20261
- Wireless & Topologies Networking · 53 other papers, 2011–20261
- Testing & Quality Software Engineering · 52 other papers, 2016–20261
- Cryptography Cyber Security · 49 other papers, 2012–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 Sub-Assistant Engineer exam (2021)?
- 10 written questions.
- Which subjects were asked most in the BPSC Sub-Assistant Engineer exam (2021)?
- Networking (3), Database (2) and Digital Logic (2), out of 10 questions.
- When was the BPSC Sub-Assistant Engineer exam held?
- In 2021. The exact day isn't in our records.
- Where can I find the BPSC Sub-Assistant Engineer exam (2021) 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