BTCL Assistant Manager Exam 2023 — Question Solution | বিটিসিএল সহকারী ব্যবস্থাপক নিয়োগ পরীক্ষা ২০২৩ — প্রশ্ন সমাধান
- BTCL
- Assistant Manager
- 2023
- 6 questions · 0 MCQ, 6 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BTCL Assistant Manager exam was held in 2023, conducted by BUET. The paper had 6 written questions. The subjects asked most were Cloud & Emerging Tech (1), Cyber Security (1) and Database (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
- BTCL
- Post
- Assistant Manager
- Exam date
- 2023
- Conducted by
- BUET
- Questions
- 6 (0 MCQ, 6 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Write Linux command to find out the following question:
(a) To show current file directory.
(b) To show 11th to 15th line from file name myfile.
(c) To show permission for read, write and execution file name myfile.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explain buffer overflow attack with an example.
Model answer
A buffer overflow happens when a program writes more data into a fixed-size memory area (a buffer) than it can hold. The extra bytes spill into adjacent memory and overwrite whatever is stored there: other variables, a saved frame pointer or a function's return address. An attacker who controls the input can use this to change the program's behaviour, crash it, or run their own code.
Why it happens: C and C++ do not check array bounds. Functions such as strcpy, strcat, sprintf and the old gets (removed from the C standard in C11) copy data without knowing the size of the destination buffer.
Example: overwriting an adjacent variable
#include <stdio.h>
#include <string.h>
struct account {
char pin[8]; /* room for 7 characters + '\0' */
int is_admin; /* stored right after pin */
};
int main(void) {
struct account acc;
acc.is_admin = 0;
const char *typed = "12345678ABC"; /* 11 characters + '\0' = 12 bytes */
printf("before: is_admin = %d\n", acc.is_admin);
strcpy(acc.pin, typed); /* no length check */
printf("after : is_admin = %d\n", acc.is_admin);
return 0;
}
Output:
before: is_admin = 0
after : is_admin = 4407873
pin has only 8 bytes, but strcpy copies 12. Bytes 9–12 ('A', 'B', 'C', '\0' = 0x41, 0x42, 0x43, 0x00) land on is_admin. On a little-endian PC (GCC, as here) this reads as 0x00434241 = 4,407,873. Strictly, writing past pin is undefined behaviour, so another compiler or a hardened build (e.g. with _FORTIFY_SOURCE) may print a different value or stop the program. That value is non-zero, i.e. "true", so the user has silently become an administrator without the program ever assigning it.
Stack smashing (code execution)
When the buffer is a local variable, the same overflow can reach the function's saved return address on the stack. When the function returns, the CPU jumps to whatever address the attacker wrote there, which can lead to arbitrary code execution with the program's privileges.
graph TD
H["Higher addresses"] --- RA["Return address of the function"]
RA --- FP["Saved frame pointer"]
FP --- BUF["Local buffer: 8 bytes"]
BUF --- L["Lower addresses"]
IN["Over-long input written upward from the buffer"] -.->|"overwrites"| FP
IN -.->|"overwrites"| RA
Types: stack-based overflows (local buffers) and heap-based overflows (dynamically allocated buffers). A historic example is the 1988 Morris worm, which spread partly through a buffer overflow in the Unix fingerd service.
Impact: crash (denial of service), corrupted data or flags, arbitrary code execution, and privilege escalation if the program runs as root/administrator.
Prevention
- Check lengths before copying, or use bounded functions (
fgets,snprintf). The fixed program rejects the input:
if (strlen(typed) >= sizeof acc.pin) { /* bounds check first */
printf("rejected: PIN must be at most %d characters\n", (int)sizeof acc.pin - 1);
return 1;
}
strcpy(acc.pin, typed);
Output: rejected: PIN must be at most 7 characters
- Compiler and OS protections: stack canaries (e.g.
-fstack-protector), ASLR (address space layout randomisation) and DEP/NX (non-executable stack and heap). - Safer languages and testing: memory-safe languages (Rust, Java, Python), static analysis and fuzz testing.
Exam tip: buffer overflow = writing past the end of a fixed buffer into neighbouring memory; show what gets overwritten (a variable or the return address) and name the fixes: bounds checking, canaries, ASLR and DEP/NX.
Explain reinforcement learning in the field of Machine Learning?
Model answer
Reinforcement learning (RL) is the branch of machine learning in which an agent learns by trial and error. It observes the state of an environment, takes an action, and receives a numerical reward (or penalty) together with the next state. Over many rounds it improves its policy so as to maximise the total reward collected over time. No labelled "correct answer" is ever given; the only feedback is a score, and it often arrives late.
graph LR
A["Agent (policy π)"] -->|"action aₜ"| E["Environment"]
E -->|"reward rₜ₊₁ and next state sₜ₊₁"| A
| Element | Meaning |
|---|---|
| Agent | the learner and decision-maker |
| Environment | everything the agent interacts with |
| State s | the situation the agent observes now |
| Action a | a move the agent can make in state s |
| Reward r | immediate numerical feedback for that move |
| Policy π | the agent's rule for choosing an action in each state |
| Value V(s) / Q(s, a) | expected future reward from a state, or from a state–action pair |
| Discount factor γ (0 ≤ γ ≤ 1) | how much future rewards count compared with immediate ones |
Formally the problem is a Markov Decision Process (states, actions, transition probabilities, rewards, γ). The agent maximises the return G = r₁ + γr₂ + γ²r₃ + …
Worked example (robot vacuum in a small grid): each move that does not reach the charging dock gives −1, and the move that reaches it gives +10; γ = 0.9.
- Short route, 4 steps (−1, −1, −1, +10): G = −1 − 0.9 − 0.81 + 0.729 × 10 = −2.71 + 7.29 = 4.58
- Long route, 6 steps (five −1s, then +10): G = −4.0951 + 0.59049 × 10 ≈ 1.81
The short route earns the higher return, so the learned policy prefers it.
Q-learning update: Q(s, a) ← Q(s, a) + α[r + γ·maxₐ′ Q(s′, a′) − Q(s, a)]. With Q(s, a) = 2.0, α = 0.5, r = −1, γ = 0.9 and maxₐ′ Q(s′, a′) = 6.0: target = −1 + 0.9 × 6.0 = 4.4, so Q(s, a) becomes 2.0 + 0.5 × (4.4 − 2.0) = 3.2.
Exploration vs exploitation: exploration tries new actions to find better rewards; exploitation uses the best action known so far. An ε-greedy agent with ε = 0.1 picks a random action 10% of the time and the best-known action 90% of the time.
| Supervised | Unsupervised | Reinforcement | |
|---|---|---|---|
| Data | labelled input–output pairs | unlabelled data | interaction with an environment |
| Feedback | the correct answer for each example | none | a reward, possibly delayed |
| Goal | predict labels | find structure or groups | maximise long-term reward |
| Example | spam filter | customer segmentation | game-playing agent |
Applications: board and video games (DeepMind's AlphaGo combined learning from human games with RL through self-play), robot movement control, traffic-signal timing, data-centre cooling and job scheduling, and fine-tuning large language models with human feedback (RLHF).
Exam tip: write the loop state → action → reward + next state, stress "no labels, learn from reward", and add one small numeric example.
Suppose you have an array. The array contains elements from 0 to 10. This array also contains 0. To replace these 0s, write a program in C/C++ language.
Given IP address 192.168.1.50, Subnet Mask: 255.255.255.240. Find the valid IP range. Also find Network address and Broadcast address.
Explain left joining and inner joining of a table.
Sign up free to see the model answers to written questions 4–6 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
4 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৪টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 6 syllabus chapters; IP Addressing & Subnetting, ER Model & Design and Attacks & Threats 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
- Attacks & Threats Cyber Security · 81 other papers, 2012–20261
- AI & Machine Learning Cloud & Emerging Tech · 49 other papers, 2017–20261
- Pointers, Arrays & Strings Programming · 44 other papers, 2016–20261
- File Systems & I/O Operating Systems · 38 other papers, 2017–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 BTCL Assistant Manager exam (2023)?
- 6 written questions.
- Which subjects were asked most in the BTCL Assistant Manager exam (2023)?
- Cloud & Emerging Tech (1), Cyber Security (1) and Database (1), out of 6 questions.
- When was the BTCL Assistant Manager exam held?
- In 2023, conducted by BUET. The exact day isn't in our records.
- Where can I find the BTCL Assistant Manager exam (2023) question solution?
- On this page: 2 of the 6 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