DESCO Sub-Assistant Engineer Exam 20 June 2025 — Question Solution | ডেসকো উপ-সহকারী প্রকৌশলী নিয়োগ পরীক্ষা ২০২৫ — প্রশ্ন সমাধান
- DESCO
- Sub-Assistant Engineer
- 20 June 2025
- 9 questions · 0 MCQ, 9 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The DESCO Sub-Assistant Engineer exam was held on 20 June 2025, conducted by BUET. The paper had 9 written questions. The subjects asked most were Networking (3), Cyber Security (1) and Data Structures (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
- DESCO
- Post
- Sub-Assistant Engineer
- Exam date
- 20 June 2025
- Conducted by
- BUET
- Questions
- 9 (0 MCQ, 9 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Explain the singly linked list with a proper example.
Model answer
A singly linked list is a linear data structure made of nodes, where each node holds two fields — the data and a pointer next to the following node. A pointer called head stores the address of the first node, and the last node's next is NULL, which marks the end. The nodes need not be adjacent in memory; their order is kept only by the next pointers, and the list can be traversed in one direction only (head → end).
Example: the list 25 → 40 → 7 → 63
graph LR
H["head"] --> A["25 | next"] --> B["40 | next"] --> C["7 | next"] --> D["63 | NULL"]
Node structure in C — a self-referential structure:
struct Node {
int data;
struct Node *next;
};
How the basic operations work
- Insert at the beginning (25): create a node, set newNode→next = head, then head = newNode. The order matters — changing head first would lose the rest of the list.
- Insert at the end: walk from head to the node whose next is NULL and set its next to the new node.
- Delete a value (7): walk with two pointers, prev and cur, until cur holds 7; set prev→next = cur→next (40 now points to 63) and free cur. If the first node is deleted, head = head→next.
- Search / traverse: start at head and follow next until the value is found or NULL is reached.
Complete program:
#include <stdio.h>
#include <stdlib.h>
struct Node {
int data;
struct Node *next; /* address of the next node */
};
struct Node *newNode(int x) {
struct Node *n = malloc(sizeof *n);
if (n == NULL) { printf("Out of memory\n"); exit(1); }
n->data = x;
n->next = NULL;
return n;
}
void insertFront(struct Node **head, int x) { /* O(1) */
struct Node *n = newNode(x);
n->next = *head;
*head = n;
}
void insertEnd(struct Node **head, int x) { /* O(n) */
struct Node *n = newNode(x), *p = *head;
if (p == NULL) { *head = n; return; }
while (p->next != NULL) p = p->next;
p->next = n;
}
int deleteValue(struct Node **head, int x) { /* O(n) */
struct Node *p = *head, *prev = NULL;
while (p != NULL && p->data != x) { prev = p; p = p->next; }
if (p == NULL) return 0; /* not found */
if (prev == NULL) *head = p->next; /* deleting the first node */
else prev->next = p->next; /* bypass the node */
free(p);
return 1;
}
int search(struct Node *head, int x) { /* returns 1-based position, 0 if absent */
int pos = 1;
for (struct Node *p = head; p != NULL; p = p->next, pos++)
if (p->data == x) return pos;
return 0;
}
void display(struct Node *head) {
for (struct Node *p = head; p != NULL; p = p->next)
printf(p == head ? "%d" : " -> %d", p->data);
printf(" -> NULL\n");
}
int main(void) {
struct Node *head = NULL;
insertEnd(&head, 40);
insertEnd(&head, 7);
insertEnd(&head, 63);
display(head); /* 40 -> 7 -> 63 -> NULL */
insertFront(&head, 25);
display(head); /* 25 -> 40 -> 7 -> 63 -> NULL */
printf("63 found at position %d\n", search(head, 63));
deleteValue(&head, 7);
display(head); /* 25 -> 40 -> 63 -> NULL */
while (head != NULL) deleteValue(&head, head->data); /* free all nodes */
return 0;
}
Output:
40 -> 7 -> 63 -> NULL
25 -> 40 -> 7 -> 63 -> NULL
63 found at position 4
25 -> 40 -> 63 -> NULL
Time complexity
| Operation | Time |
|---|---|
| Insert at the beginning / delete the first node | O(1) |
| Insert at the end | O(n) (O(1) if a tail pointer is kept) |
| Delete by value or position | O(n) to find it; the unlinking itself is O(1) |
| Search, or access the k-th element | O(n) |
| Traverse | O(n) |
Space: O(n) — every node stores its data plus one pointer.
Advantages: size grows and shrinks at run time; insertion and deletion need no shifting of elements, only pointer changes.
Disadvantages: no random access (no O(1) indexing, so binary search is not practical); extra memory for a pointer in each node; traversal in one direction only; poorer cache locality than an array.
Applications: implementing stacks and queues, adjacency lists of graphs, separate chaining in hash tables, polynomial representation.
Exam tip: always draw head and the NULL at the end, and update pointers in the right order so no part of the list is lost.
What is CLI?
What is OSPF? Briefly Explain.
State the network protocol of VRRP.
Write Javascript code to check NID validity?
Find out the network address and Broadcast address of the address: 192.168.0.0/28
Difference between Load Testing and Stress Testing.
What is CSRF and XSS?
Write down the Query for the following table?
| StudentID | StudentName | Age | Department |
|---|---|---|---|
| 1 | Alice | 20 | CSE |
| 2 | Bob | 22 | EEE |
| 3 | Charlie | 21 | CSE |
| 4 | David | 23 | BBA |
(i) Shows only students in the CSE department.
(ii) Shows all students sorted by age (highest first).
(iii) Shows how many students are in each department.
Sign up free to see the model answers to written questions 2–9 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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 7 syllabus chapters; the biggest is Protocols (TCP/UDP/HTTP/DNS), in Networking, with 2 questions. Protocols (TCP/UDP/HTTP/DNS) is asked in 90 other papers too (2012–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Protocols (TCP/UDP/HTTP/DNS) Networking · 90 other papers, 2012–20262
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
- Language Basics & Syntax Programming · 122 other papers, 2015–20261
- ER Model & Design Database · 101 other papers, 2015–20261
- Attacks & Threats Cyber Security · 81 other papers, 2012–20261
- Testing & Quality Software Engineering · 52 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 DESCO Sub-Assistant Engineer exam (2025)?
- 9 written questions.
- Which subjects were asked most in the DESCO Sub-Assistant Engineer exam (2025)?
- Networking (3), Cyber Security (1) and Data Structures (1), out of 9 questions.
- When was the DESCO Sub-Assistant Engineer exam held?
- On 20 June 2025, conducted by BUET.
- Where can I find the DESCO Sub-Assistant Engineer exam (2025) question solution?
- On this page: 1 of the 9 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