DPDC Assistant Engineer Exam 17 October 2025 — Question Solution | ডিপিডিসি সহকারী প্রকৌশলী নিয়োগ পরীক্ষা ২০২৫ — প্রশ্ন সমাধান
- DPDC
- Assistant Engineer
- 17 October 2025
- 8 questions · 0 MCQ, 8 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The DPDC Assistant Engineer exam was held on 17 October 2025. The paper had 8 written questions. The subjects asked most were Networking (3), Data Structures (1) and Database (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
- DPDC
- Post
- Assistant Engineer
- Exam date
- 17 October 2025
- Questions
- 8 (0 MCQ, 8 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Which transmission medium is used in LAN? Write their maximum length and capacity (bps).
In the TCP/IP model, how is data known in the different layers?
Why is DFS better than BFS? Explain.
Why agile model is better than waterfall model?
A PCM system have step resolution of 2V. Sinusoidal signal amplitude 10V. SNR=? And total number of bits=?
Sign up free to see the model answers to written questions 1–5 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explain Database Trigger with example.
Model answer
A database trigger is a named block of SQL/procedural code stored in the database and attached to a table (or view). The DBMS runs it automatically when a specified event occurs, usually an INSERT, UPDATE or DELETE. No application calls it. It follows the ECA pattern: Event → optional Condition → Action.
Parts of a trigger
- Timing:
BEFORE(check or change data before it is written),AFTER(react after the change),INSTEAD OF(replace the action, usually on a view). - Event:
INSERT,UPDATE [OF column],DELETE. - Level: row-level (
FOR EACH ROW, fires once per affected row, can seeOLDandNEWvalues) or statement-level (fires once per statement). - Body: the action, for example writing an audit row or rejecting the change.
Uses: audit trails, rules that a CHECK constraint cannot express, keeping a summary or derived table up to date, and blocking invalid changes.
sequenceDiagram
participant App as Application
participant E as employee table
participant T as trg_salary_audit
participant A as salary_audit table
App->>E: UPDATE salary of emp 301
E->>T: AFTER UPDATE fires for the row
T->>A: INSERT old and new salary
E-->>App: 1 row updated
Example 1: audit every salary change (SQLite syntax, run)
CREATE TABLE employee (
emp_id INT NOT NULL PRIMARY KEY,
name VARCHAR(40) NOT NULL,
salary DECIMAL(10,2) NOT NULL
);
CREATE TABLE salary_audit (
audit_id INTEGER PRIMARY KEY AUTOINCREMENT,
emp_id INT NOT NULL,
old_salary DECIMAL(10,2) NOT NULL,
new_salary DECIMAL(10,2) NOT NULL,
changed_at TEXT NOT NULL
);
CREATE TRIGGER trg_salary_audit
AFTER UPDATE OF salary ON employee
FOR EACH ROW
WHEN OLD.salary <> NEW.salary
BEGIN
INSERT INTO salary_audit (emp_id, old_salary, new_salary, changed_at)
VALUES (OLD.emp_id, OLD.salary, NEW.salary, CURRENT_TIMESTAMP);
END;
Example 2: reject an invalid row (BEFORE trigger)
CREATE TRIGGER trg_salary_check
BEFORE INSERT ON employee
FOR EACH ROW
WHEN NEW.salary < 10000
BEGIN
SELECT RAISE(ABORT, 'salary below minimum');
END;
Test run
INSERT INTO employee VALUES (301, 'Kamrul', 35000), (302, 'Shirin', 42000);
INSERT INTO employee VALUES (303, 'Jamal', 5000); -- error: salary below minimum
UPDATE employee SET salary = salary + 3500 WHERE emp_id = 301;
UPDATE employee SET salary = 42000 WHERE emp_id = 302; -- value unchanged
SELECT audit_id, emp_id, old_salary, new_salary FROM salary_audit ORDER BY audit_id;
| audit_id | emp_id | old_salary | new_salary |
|---|---|---|---|
| 1 | 301 | 35000 | 38500 |
Jamal's row was not inserted. Shirin's update wrote no audit row, because the WHEN condition was false. changed_at holds the current date-time. SQLite prints 35000; MySQL, PostgreSQL and SQL Server print 35000.00 for DECIMAL(10,2).
Same audit trigger in MySQL
DELIMITER //
CREATE TRIGGER trg_salary_audit
AFTER UPDATE ON employee
FOR EACH ROW
BEGIN
IF NOT (OLD.salary <=> NEW.salary) THEN -- NULL-safe "changed"
INSERT INTO salary_audit (emp_id, old_salary, new_salary, changed_at)
VALUES (OLD.emp_id, OLD.salary, NEW.salary, NOW());
END IF;
END//
DELIMITER ;
In MySQL, audit_id is declared INT AUTO_INCREMENT PRIMARY KEY and changed_at as DATETIME. DELIMITER is a command of the mysql client, needed so the ; inside BEGIN…END does not end the statement. A BEFORE trigger rejects a row with SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = '…' (MySQL trigger syntax).
| DBMS | Differences |
|---|---|
| MySQL | row-level only (FOR EACH ROW); no UPDATE OF col; NEW.col can be changed only in BEFORE |
| Oracle | :OLD / :NEW in the body (no colon in WHEN); row- or statement-level; also DDL and logon triggers |
| SQL Server | AFTER (FOR) and INSTEAD OF only, no BEFORE; statement-level, reads the inserted and deleted tables |
| PostgreSQL | the trigger calls a trigger function (EXECUTE FUNCTION); row- or statement-level |
| SQLite | row-level only; FOR EACH STATEMENT is a syntax error |
Trigger vs stored procedure: a procedure runs only when called (CALL/EXEC) and can take parameters. A trigger runs only when its event happens; no caller passes it arguments, and it works on the OLD/NEW row values instead (PostgreSQL can hand fixed arguments, written in CREATE TRIGGER, to its trigger function).
Exam tip: define the trigger as automatic, event-driven stored code. Name timing, event and level, give one audit or validation example with OLD/NEW, and say which DBMS the syntax is for.
jQuery for email validation
Explain OOP Feature.
Sign up free to see the model answers to written questions 7–8 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
7 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; OSI & TCP/IP Models, ER Model & Design and Object-Oriented Programming lead, with 1 each. OSI & TCP/IP Models is asked in 112 other papers too (2012–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- ER Model & Design Database · 101 other papers, 2015–20261
- Object-Oriented Programming Programming · 88 other papers, 2015–20261
- Transmission & Media Networking · 79 other papers, 2012–20261
- Trees Data Structures · 47 other papers, 2015–20261
- SDLC & Process Models Software Engineering · 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 DPDC Assistant Engineer exam (2025)?
- 8 written questions.
- Which subjects were asked most in the DPDC Assistant Engineer exam (2025)?
- Networking (3), Data Structures (1) and Database (1), out of 8 questions.
- When was the DPDC Assistant Engineer exam held?
- On 17 October 2025.
- Where can I find the DPDC Assistant Engineer exam (2025) question solution?
- On this page: 1 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