BREB Assistant Programmer Exam 18 February 2023 — Question Solution | বিআরইবি (পল্লী বিদ্যুতায়ন বোর্ড) সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০২৩ — প্রশ্ন সমাধান
- BREB
- Assistant Programmer
- 18 February 2023
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BREB Assistant Programmer exam was held on 18 February 2023. The paper had 7 written questions. The subjects asked most were Programming (3), Networking (2) and General ICT (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
- BREB
- Post
- Assistant Programmer
- Exam date
- 18 February 2023
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Write a program to reverse string without using library function.
Define design pattern. Write about singleton pattern.
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is private IP range class A, B and C with maximum host of each class?
Model answer
Answer: RFC 1918 reserves one private address block from each of classes A, B and C. These addresses can be reused inside any organisation and are never routed on the public internet; a NAT router translates them to a public address when traffic leaves the network.
Private ranges:
| Class | Private range | Block in CIDR | Total addresses in the block |
|---|---|---|---|
| A | 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 2²⁴ = 16,777,216 |
| B | 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 2²⁰ = 1,048,576 |
| C | 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 2¹⁶ = 65,536 |
Maximum hosts of each class (per classful network):
| Class | Default mask | Host bits | Maximum hosts per network | Networks in the private block |
|---|---|---|---|---|
| A | 255.0.0.0 (/8) | 24 | 2²⁴ − 2 = 16,777,214 | 1 (10.0.0.0) |
| B | 255.255.0.0 (/16) | 16 | 2¹⁶ − 2 = 65,534 | 16 (172.16.0.0 to 172.31.0.0) |
| C | 255.255.255.0 (/24) | 8 | 2⁸ − 2 = 254 | 256 (192.168.0.0 to 192.168.255.0) |
Why − 2: in every network the address with all host bits 0 is the network address and the one with all host bits 1 is the broadcast address; neither can be given to a device.
Worked check (Class B): 172.16.0.0/16 → network address 172.16.0.0, broadcast address 172.16.255.255, usable hosts 172.16.0.1 – 172.16.255.254 = 65,534.
Note: if a whole private block is used as one classless network, the host count is 2^(host bits) − 2 for that prefix, e.g. 172.16.0.0/12 gives 2²⁰ − 2 = 1,048,574 hosts.
Where they are used: a home router typically uses 192.168.0.0/24 or 192.168.1.0/24; a large enterprise uses 10.0.0.0/8 because of its size.
Not RFC 1918 private (common trap): 127.0.0.0/8 is loopback, 169.254.0.0/16 is link-local (APIPA), and 100.64.0.0/10 is shared address space for carrier-grade NAT.
Exam tip: remember the blocks as 10/8, 172.16/12, 192.168/16 and the host counts as 16,777,214, 65,534 and 254 per classful network.
Write short note: Network, Protocol, link, gateway, Node.
Model answer
Short notes:
graph LR
N1["Node: PC"] ---|"Link: Ethernet cable"| SW["Node: Switch"]
SW ---|"Link: fibre"| GW["Gateway: router"]
GW ---|"Link: WAN"| NET(("Internet"))
1. Network: a set of interconnected devices (computers, servers, printers, phones) that exchange data and share resources such as files, printers and an internet connection. By size it is a PAN (a few metres), LAN (building or campus), MAN (city) or WAN (country to worldwide; the internet is the largest WAN).
2. Protocol: an agreed set of rules that governs how data is formatted, sent, received and error-checked between devices. Its three key elements are syntax (format of the data), semantics (meaning of each field) and timing (when and how fast to send). Examples: TCP/IP, HTTP, FTP, SMTP. Without a common protocol, two connected devices cannot understand each other.
3. Link: the communication path that directly connects two or more adjacent devices. It may be physical (twisted-pair cable, fibre, Wi-Fi radio) or logical (a VLAN or a VPN tunnel over shared infrastructure), and point-to-point (two devices only) or multipoint/broadcast (many devices share it).
4. Gateway: a node that connects two networks that may use different protocols or architectures and converts traffic between them (for example an email gateway, a VoIP gateway between an IP network and the telephone network, or an IoT gateway). On a LAN, the default gateway is the router to which a host sends every packet destined for another network; a home router is the gateway between the private LAN and the ISP.
5. Node: any device attached to a network that can send, receive or forward data. End nodes (PCs, servers, printers) create or consume data; intermediate nodes (switches, routers) forward it. A node is identified by an address such as a MAC or IP address.
| Term | One-line meaning |
|---|---|
| Network | the whole system of connected nodes and links |
| Protocol | the rules for communication |
| Link | the connection between nodes |
| Gateway | the node that joins different networks |
| Node | any connected device |
How they relate: nodes are joined by links, communicate using protocols, and together form a network; a gateway is the special node that lets one network talk to another.
Exam tip: node = device, link = connection, protocol = rules, network = the whole system, gateway = entry and exit point to another network.
Output problem:
#include<iostream>
using namespace std;
int main(){
int i=1,j=1,k=1;
cout<<++i || ++j && ++k;
cout<<i<<j<<k;
return 0;
}
Output problem:
#include<stdio.h>
int main(){
float p=10.5;
int a=5*p +5.0;
printf("%d", a);
return 0;
}
Write a composition on E-commerce in Bangladesh.
Sign up free to see the model answers to written questions 5–7 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
5 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; the biggest is Language Basics & Syntax, in Programming, with 2 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–20262
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
- Protocols (TCP/UDP/HTTP/DNS) Networking · 90 other papers, 2012–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Requirements & Design Software Engineering · 50 other papers, 2016–20261
- e-Governance & Digital Bangladesh General ICT · 8 other papers, 2018–20231
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 BREB Assistant Programmer exam (2023)?
- 7 written questions.
- Which subjects were asked most in the BREB Assistant Programmer exam (2023)?
- Programming (3), Networking (2) and General ICT (1), out of 7 questions.
- When was the BREB Assistant Programmer exam held?
- On 18 February 2023.
- Where can I find the BREB Assistant Programmer exam (2023) question solution?
- On this page: 2 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