TSS Assistant Programmer Exam 2022 — Question Solution | টেলিফোন শিল্প সংস্থা (টিএসএস) সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০২২ — প্রশ্ন সমাধান
- TSS
- Assistant Programmer
- 2022
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The TSS Assistant Programmer exam was held in 2022. The paper had 7 written questions. The subjects asked most were Programming (3), Networking (2) and Algorithms (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
- TSS
- Post
- Assistant Programmer
- Exam date
- 2022
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
What is MAC flooding? How to prevent MAC flooding?
What will be the output of the program?
#include<stdio.h>
void main(){
int a[5]={5,1,15,20,25};
int i,j,m;
i=++a[1];
j=a[1]++;
m=a[i++];
printf("%d, %d, %d",i,j,m);
}
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is NAT? Write down the list of private IP address.
Model answer
NAT (Network Address Translation) is a function of a router or firewall at the edge of a network that rewrites the IP address (and usually the port number) in packet headers as packets pass between a private network and a public network such as the Internet. It lets many hosts with private IPv4 addresses share one or a few public addresses, which saves IPv4 address space and hides the internal addressing from outside.
Types of NAT
- Static NAT: one private address is permanently mapped to one public address (used for an inside server).
- Dynamic NAT: private addresses are mapped to addresses taken from a pool of public addresses when needed.
- PAT / NAPT (NAT overload): many private addresses share one public address and are told apart by port number; home and office routers use this.
How it works
graph LR
H1["Host 10.0.0.2"] --> R["NAT router"]
H2["Host 10.0.0.3"] --> R
R -->|"Source rewritten to 203.0.113.5 with a new port"| I(("Internet"))
The router keeps a translation table so that replies reach the right inside host:
| Inside (private) IP:port | Outside (public) IP:port | Remote host |
|---|---|---|
| 10.0.0.2:51000 | 203.0.113.5:62001 | 198.51.100.20:443 |
| 10.0.0.3:51000 | 203.0.113.5:62002 | 198.51.100.20:443 |
List of private IP addresses (RFC 1918)
| Class | Address range | CIDR block | Number of addresses |
|---|---|---|---|
| A | 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 16,777,216 (2²⁴), 1 Class A network |
| B | 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 1,048,576 (2²⁰), 16 Class B networks |
| C | 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 (2¹⁶), 256 Class C networks |
These addresses can be reused inside any organisation but are never routed on the public Internet, which is why NAT is needed to reach it.
Related special ranges (not RFC 1918 private): 169.254.0.0/16 link-local (APIPA), 100.64.0.0/10 shared address space for carrier-grade NAT, 127.0.0.0/8 loopback. In IPv6 the counterpart of private addresses is unique local addresses, fc00::/7.
Exam tip: the three private blocks are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16; the Class B block runs from 172.16 to 172.31, not 172.16.0.0/16.
Write down the properties/function of OOP?
Write a C/C++ program to find out the prime numbers from 1 to N.
DFS complexity (Approximate)
There are two tables like Employees (Employee_ID, First_name, Last_name, Email, Phone_number, Hire_date, Job_Id) and Departments (Department_Id, Department_name, Manager_Id, Location_Id). Now, write a query to find the name (first_name, last_name), Department Id and name of all the employees.
Sign up free to see the model answers to written questions 4–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 5 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
- ER Model & Design Database · 101 other papers, 2015–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Graph Algorithms Algorithms · 18 other papers, 2018–20251
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 TSS Assistant Programmer exam (2022)?
- 7 written questions.
- Which subjects were asked most in the TSS Assistant Programmer exam (2022)?
- Programming (3), Networking (2) and Algorithms (1), out of 7 questions.
- When was the TSS Assistant Programmer exam held?
- In 2022. The exact day isn't in our records.
- Where can I find the TSS Assistant Programmer exam (2022) 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