DMTCL Assistant Engineer (ICT) Exam 27 January 2023 — Question Solution | ঢাকা ম্যাস ট্রানজিট কোম্পানি (ডিএমটিসিএল) সহকারী প্রকৌশলী (আইসিটি) নিয়োগ পরীক্ষা ২০২৩ — প্রশ্ন সমাধান
- DMTCL
- Assistant Engineer (ICT)
- 27 January 2023
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The DMTCL Assistant Engineer (ICT) exam was held on 27 January 2023. The paper had 7 written questions. The subjects asked most were Networking (2), Algorithms (1) 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
- DMTCL
- Post
- Assistant Engineer (ICT)
- Exam date
- 27 January 2023
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
What is Dynamic programming? Explain with example.
Model answer
Dynamic programming (DP) is an algorithm design technique that solves a problem by splitting it into smaller overlapping subproblems, solving each subproblem only once, storing its answer in a table, and building the final answer from the stored answers. It applies when the problem has:
- Optimal substructure – an optimal solution is made of optimal solutions to subproblems.
- Overlapping subproblems – plain recursion would solve the same subproblem again and again.
Two ways to implement it:
- Top-down (memoization): write the recursion, but cache each result the first time it is computed.
- Bottom-up (tabulation): fill a table from the smallest subproblems upward.
Example: minimum number of coins. Coins {1, 5, 7} (unlimited supply), amount 10. Find the fewest coins.
Let dp[a] = fewest coins that make amount a. Then
dp[0] = 0, dp[a] = 1 + min{ dp[a − c] : coin c ≤ a }
Overlapping subproblems in the plain recursion (part of the call tree):
graph TD
A10["coins(10)"] -- "use 1" --> A9["coins(9)"]
A10 -- "use 5" --> A5["coins(5)"]
A10 -- "use 7" --> A3["coins(3)"]
A9 -- "use 5" --> A4a["coins(4)"]
A5 -- "use 1" --> A4b["coins(4)"]
A9 -- "use 7" --> A2a["coins(2)"]
A3 -- "use 1" --> A2b["coins(2)"]
coins(4) and coins(2) are each reached by two different branches; plain recursion solves them again every time. For amount 10 it makes 43 calls, and for amount 30 it makes 34 309 calls, while the DP table needs only 30 cells with at most 3 checks each.
Bottom-up table:
| a | Candidates dp[a − c] + 1 | dp[a] |
|---|---|---|
| 0 | – | 0 |
| 1 | dp[0]+1=1 | 1 |
| 2 | dp[1]+1=2 | 2 |
| 3 | dp[2]+1=3 | 3 |
| 4 | dp[3]+1=4 | 4 |
| 5 | dp[4]+1=5, dp[0]+1=1 | 1 |
| 6 | dp[5]+1=2, dp[1]+1=2 | 2 |
| 7 | dp[6]+1=3, dp[2]+1=3, dp[0]+1=1 | 1 |
| 8 | dp[7]+1=2, dp[3]+1=4, dp[1]+1=2 | 2 |
| 9 | dp[8]+1=3, dp[4]+1=5, dp[2]+1=3 | 3 |
| 10 | dp[9]+1=4, dp[5]+1=2, dp[3]+1=4 | 2 |
Answer: 2 coins (5 + 5). Note that the greedy rule "take the largest coin first" gives 7 + 1 + 1 + 1 = 4 coins, which is not optimal — DP examines every choice through the stored subproblem answers.
Python implementation:
import math
def min_coins(coins, amount):
dp = [0] + [math.inf] * amount # dp[a] = fewest coins for amount a
last = [0] * (amount + 1) # last coin used, to rebuild the answer
for a in range(1, amount + 1):
for c in coins:
if c <= a and dp[a - c] + 1 < dp[a]:
dp[a] = dp[a - c] + 1
last[a] = c
picked, a = [], amount
while a > 0: # walk back through the table
picked.append(last[a])
a -= last[a]
return dp[amount], picked
print(min_coins([1, 5, 7], 10)) # (2, [5, 5])
Complexity: O(k · A) time and O(A) space for k coin types and amount A, versus exponential time for the plain recursion.
| Plain recursion | Dynamic programming | |
|---|---|---|
| Each subproblem solved | many times | once |
| Time | exponential | O(k · A) |
| Extra space | recursion stack | table of A + 1 cells |
Other standard DP problems: 0/1 knapsack, longest common subsequence, matrix-chain multiplication, edit distance, Floyd–Warshall all-pairs shortest paths.
Exam tip: define DP by its two properties (optimal substructure, overlapping subproblems), then show a recurrence and a filled table for one example.
Write a C program upper case to lower case conversion.
What is firewall and why it is used?
Describe SaaS, IaaS and PaaS.
Write down the difference between gateway and firewall.
What is the purpose of VPN used in computer security?
Why is virtual memory needed?
Sign up free to see the model answers to written questions 2–7 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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; Routing & Switching, Pointers, Arrays & Strings and Network & Application Security lead, with 1 each. Routing & Switching is asked in 54 other papers too (2011–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Routing & Switching Networking · 54 other papers, 2011–20261
- Pointers, Arrays & Strings Programming · 44 other papers, 2016–20261
- Network & Application Security Cyber Security · 43 other papers, 2012–20261
- Memory Management Operating Systems · 40 other papers, 2015–20261
- Cloud Computing Cloud & Emerging Tech · 39 other papers, 2015–20261
- Network Security Networking · 24 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 DMTCL Assistant Engineer (ICT) exam (2023)?
- 7 written questions.
- Which subjects were asked most in the DMTCL Assistant Engineer (ICT) exam (2023)?
- Networking (2), Algorithms (1) and Cloud & Emerging Tech (1), out of 7 questions.
- When was the DMTCL Assistant Engineer (ICT) exam held?
- On 27 January 2023.
- Where can I find the DMTCL Assistant Engineer (ICT) exam (2023) question solution?
- On this page: 1 of the 7 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