Bangladesh Water Development Board Assistant Programmer Exam 2018 — Question Solution | বাংলাদেশ পানি উন্নয়ন বোর্ড সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০১৮ — প্রশ্ন সমাধান
- Bangladesh Water Development Board
- Assistant Programmer
- 2018
- 14 questions · 0 MCQ, 14 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Bangladesh Water Development Board Assistant Programmer exam was held in 2018. The paper had 14 written questions. The subjects asked most were Programming (7), Digital Logic (3) and Networking (3). 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
- Bangladesh Water Development Board
- Post
- Assistant Programmer
- Exam date
- 2018
- Questions
- 14 (0 MCQ, 14 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Why binary logic is used for digital system?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is OSI model? Which layers are important for data transfer and user interaction?
Model answer
OSI (Open Systems Interconnection) model is a seven-layer reference model published by ISO (ISO/IEC 7498-1) that divides network communication into seven separate but related layers. Each layer performs a defined set of functions, offers services to the layer above and uses the services of the layer below, so systems from different vendors can communicate.
graph TD
subgraph U["User support layers"]
L7["L7 Application"] --> L6["L6 Presentation"] --> L5["L5 Session"]
end
L5 --> L4["L4 Transport"]
subgraph N["Network support layers"]
L3["L3 Network"] --> L2["L2 Data Link"] --> L1["L1 Physical"]
end
L4 --> L3
| Layer | Main function | Data unit | Examples |
|---|---|---|---|
| 7 Application | Network services to the user and applications | Data | HTTP, SMTP, FTP, DNS |
| 6 Presentation | Translation (character codes), encryption, compression | Data | ASCII/Unicode, JPEG, MPEG |
| 5 Session | Opens, manages and closes dialogues; synchronisation checkpoints | Data | RPC, NetBIOS |
| 4 Transport | Process-to-process (end-to-end) delivery using port numbers, segmentation; TCP is reliable and connection-oriented, UDP is connectionless and not reliable | Segment / datagram | TCP, UDP |
| 3 Network | Logical (IP) addressing and routing from source to destination network | Packet | IP, ICMP, routers |
| 2 Data Link | Framing, MAC addressing, error detection (CRC), flow and access control — node-to-node delivery | Frame | Ethernet, Wi-Fi MAC, PPP, switches |
| 1 Physical | Sends raw bits as electrical, optical or radio signals | Bits | Cables, connectors, hubs |
Layers important for user interaction and data transfer
- User interaction → Application layer (L7). It is the only layer the user and user programs deal with directly (web browser, email client, file transfer). Together with Presentation and Session it forms the user support layers.
- Data transfer → Data Link layer (L2). It actually moves data between directly connected nodes: it packs packets into frames, adds source/destination MAC addresses, detects errors with the CRC and controls access to the medium; the Physical layer below carries the bits. For transfer across several networks, the Network layer routes packets and the Transport layer gives end-to-end (TCP: reliable) delivery — layers 1–3 are the network support layers and layer 4 links the two groups.
Example — sending an email: the user writes the message in an email client (L7) → SMTP data is put in a TCP segment to port 587 (L4) → an IP packet is routed (L3) → an Ethernet frame is built (L2) → bits travel on the cable (L1). The receiver reverses the steps.
Exam tip: name all seven layers in order (bottom-up: "Please Do Not Throw Sausage Pizza Away"), then state clearly: Application = user interaction, Data Link = node-to-node data transfer (Transport = end-to-end).
What is non-repudiation in network security? Give a proper example.
What is a synchronous circuit? Why do sequential circuits use synchronization?
Sign up free to see the model answers to written questions 3–4 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the difference between DNS server and caches? What is the importance of DNS cache in World Wide Web?
Model answer
DNS server: a server that answers DNS queries, translating domain names into IP addresses and other records. There are four roles:
- Recursive resolver (ISP or public resolver) — takes the client's query and finds the answer on its behalf;
- Root server — returns a referral to the right top-level-domain servers;
- TLD server (.com, .bd …) — returns a referral to the domain's authoritative servers;
- Authoritative server — holds the original zone records (A, AAAA, MX, NS …) and gives the final answer.
DNS cache: a temporary store of recently received DNS answers kept in the browser, the operating system (stub resolver), the home router and inside every recursive resolver. Each entry is reused until its TTL (Time To Live), set by the authoritative server, expires.
| Aspect | DNS server | DNS cache |
|---|---|---|
| Nature | A program/service on a networked host that answers queries | A temporary memory/disk store, not a separate server |
| Data held | Authoritative server: the original records maintained by the domain administrator | Copies of answers received earlier |
| Authority | Gives authoritative answers (authoritative server) | Gives non-authoritative answers |
| Lifetime | Records stay until the administrator changes them | Each entry is deleted when its TTL expires |
| Scope | Complete zone, or the whole hierarchy reached by a resolver | Only recently used names |
| New name | Resolver walks the hierarchy root → TLD → authoritative | Cannot resolve a name it has not seen; only shortens repeat lookups |
How the cache fits into a lookup (example domain www.example.com, documentation address 192.0.2.10):
sequenceDiagram
participant B as Browser and OS cache
participant R as Recursive resolver
participant RS as Root server
participant T as com TLD server
participant AU as Authoritative server
B->>R: Query A record of www.example.com
alt Answer found in resolver cache
R-->>B: Cached answer, no further queries
else Cache miss
R->>RS: Query www.example.com
RS-->>R: Referral to com servers
R->>T: Query www.example.com
T-->>R: Referral to example.com servers
R->>AU: Query www.example.com
AU-->>R: 192.0.2.10 with TTL 3600 s
R-->>B: 192.0.2.10, cached by resolver, OS and browser
end
Importance of DNS cache in the World Wide Web
- Faster browsing: a single web page often loads objects from several hostnames (images, scripts, CDN). A cache hit is answered locally in about a millisecond or less, instead of a full lookup that can take tens to hundreds of milliseconds, so pages open sooner.
- Less load on DNS servers: root, TLD and authoritative servers do not receive the same query from millions of users; this is what lets DNS scale to the whole Internet.
- Less network traffic and lower cost for ISPs.
- Availability: names already cached can still be answered for the rest of their TTL even if an authoritative server is briefly unreachable.
- Negative caching: "name does not exist" answers are also cached, so repeated failed lookups are avoided.
Limitations: after a site changes its IP, old entries stay until the TTL expires (administrators lower the TTL before a migration); a poisoned (spoofed) cache can redirect users, which DNSSEC and random source ports protect against. On Windows, ipconfig /displaydns shows and ipconfig /flushdns clears the local cache.
Exam tip: server = answers queries and (authoritative) holds the original records; cache = temporary, non-authoritative copies that live only for the TTL — its value is speed and reduced load.
Write a c program to verify a perfect number. Perfect number is a positive integer which is equal to the sum of its proper positive divisors.
What will be the output of following program?
#include <stdio.h>
int main() {
int i=-1, j=-1, k=0, l=2, m;
m= i++ && j++ && k++ || l++;
printf("%d %d %d %d %d", i, j, k, l, m);
return 0;
}
What is the difference between flip-flop and latch with figure?
Write a java program using 2D array and array output will be-
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Write simple Java program to convert string into camel case and display camel case string.
Given an IP address is 240.133.10.20/8 Find out network address, number of host and subnet mask.
What will be the output of following program?
#include <iostream>
using namespace std;
class A{
private:
int a;
int b;
void set_a(int a) {
this->a=a;
}
void set_b(int b) {
this->b=b;
}
public:
void getValues(int x, int y) {
set_a(x); //calling private member
set_b(x); //calling private member
}
void putValues() {
cout << "a=" << a << " ,b=" << b << endl;
}
};
int main() {
A objA; //creating object
objA.getValues(100,200);
objA.putValues(); //print values
return 0;
}
Consider a base class Shape and its derived class Rectangle. Design this inheritance in C++ code.
Find the output of the following code.
public class Test {
public static void main(String[] args) {
String s1 = "test1";
String s2 = new String("test1");
System.out.println(s1==s2);
String s3 = new String("test1");
System.out.println(s2==s3);
s3 = s1;
System.out.println(s3==s1);
}
}
Sign up free to see the model answers to written questions 6–14 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
12 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ১২টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 9 syllabus chapters; the biggest is Language Basics & Syntax, in Programming, with 4 questions. Language Basics & Syntax is asked in 122 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Language Basics & Syntax Programming · 122 other papers, 2015–20264
- Sequential Circuits Digital Logic · 13 other papers, 2019–20252
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- Protocols (TCP/UDP/HTTP/DNS) Networking · 90 other papers, 2012–20261
- Object-Oriented Programming Programming · 88 other papers, 2015–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 Bangladesh Water Development Board Assistant Programmer exam (2018)?
- 14 written questions.
- Which subjects were asked most in the Bangladesh Water Development Board Assistant Programmer exam (2018)?
- Programming (7), Digital Logic (3) and Networking (3), out of 14 questions.
- When was the Bangladesh Water Development Board Assistant Programmer exam held?
- In 2018. The exact day isn't in our records.
- Where can I find the Bangladesh Water Development Board Assistant Programmer exam (2018) question solution?
- On this page: 2 of the 14 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