BPSC Assistant Programmer Exam 15 February 2022 — Question Solution | বিপিএসসি (সরকারি কর্ম কমিশন) সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০২২ — প্রশ্ন সমাধান
- BPSC
- Assistant Programmer
- 15 February 2022
- 34 questions · 0 MCQ, 34 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BPSC Assistant Programmer exam was held on 15 February 2022. The paper had 34 written questions. The subjects asked most were Programming (8), Database (6) and Computer Architecture (4). 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
- BPSC
- Post
- Assistant Programmer
- Exam date
- 15 February 2022
- Questions
- 34 (0 MCQ, 34 written)
- Exam guide
- BPSC non-cadre IT posts · পিএসসি নন-ক্যাডার আইটি পদ
- Programming · প্রোগ্রামিং 8
- Database · ডেটাবেজ 6
- Computer Architecture · কম্পিউটার আর্কিটেকচার 4
- Networking · নেটওয়ার্কিং 4
- Cloud & Emerging Tech · ক্লাউড ও উদীয়মান প্রযুক্তি 3
- Software Engineering · সফটওয়্যার ইঞ্জিনিয়ারিং 2
- Algorithms · অ্যালগরিদম 1
- Cyber Security · সাইবার নিরাপত্তা 1
- Data Structures · ডেটা স্ট্রাকচার 1
- Digital Logic · ডিজিটাল লজিক 1
- General ICT · সাধারণ আইসিটি 1
- Operating Systems · অপারেটিং সিস্টেম 1
- Web Technology · ওয়েব টেকনোলজি 1
What is the use of cache memory?
How can you define SSD?
What is the function of GPU?
Define the principle of data transmission through the fiber optic cable.
What do you understand by the resolution of computer screen?
Why do you need database Normalization?
How can you define the ER model in DBMS?
What is the difference between call by value and call by reference?
When is the constructor invoked in OOP?
Describe the cloud-based database briefly.
Sign up free to see the model answers to written questions 1–10 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What do you mean by national data center?
Name and define the characteristic properties (necessary conditions) of a deadlock situation in a computer system.
Difference between Interpreter and Compiler.
Explain software development life cycle (SDLC).
Which factors are to be considered in software pricing?
What is a digital signature? Describe its role in digital security?
What do you mean by recursion? Calculate factorial function using recursion with C programming code.
Difference between array and structure data type.
Sign up free to see the model answers to written questions 11–18 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is API? Explain with example.
Model answer
API (Application Programming Interface) is a defined set of rules — the operations offered, the inputs each one needs, the outputs it returns and the data format used — through which one piece of software requests data or a service from another. The caller only follows this published contract; it never needs to know how the other side is built or where its data is stored.
Key idea: the provider hides its internals (code, database, business rules) behind the interface; the consumer depends only on the interface, so either side can change internally without breaking the other.
How a web API works
flowchart LR
C["Client app (browser or mobile)"] -->|"1. HTTP request GET /api/books/7"| A["API layer: checks key and input"]
A -->|"2. calls"| L["Business logic"]
L -->|"3. query"| D[("Database")]
D -->|"4. record"| L
L -->|"5. result"| A
A -->|"6. JSON response"| C
Example: a small book-lookup API (Node.js 18 or later)
const http = require("http");
// Data the provider keeps private (stands in for a database)
const books = { 7: { id: 7, title: "Learning Web APIs", copies: 3 } };
// PROVIDER: exposes one operation -> GET /api/books/<id>
const server = http.createServer((req, res) => {
const match = req.url.match(/^\/api\/books\/(\d+)$/);
const book = req.method === "GET" && match ? books[match[1]] : undefined;
res.writeHead(book ? 200 : 404, { "Content-Type": "application/json" });
res.end(JSON.stringify(book || { error: "not found" }));
});
// CONSUMER: knows only the URL pattern and the JSON format
server.listen(3000, async () => {
for (const id of [7, 9]) {
const reply = await fetch(`http://localhost:3000/api/books/${id}`);
console.log(reply.status, await reply.json());
}
server.close();
});
Output:
200 { id: 7, title: 'Learning Web APIs', copies: 3 }
404 { error: 'not found' }
The consumer never reads the books object directly. If the provider later moves the data into MySQL, the consumer's code does not change, because the URL and the JSON shape (the interface) stay the same.
Kinds of API
| Kind | Example |
|---|---|
| Web API (REST, SOAP, GraphQL) | An online shop calls a mobile-payment gateway API (such as bKash or Nagad) to take a payment |
| Browser API | document.getElementById(), fetch(), the Geolocation API |
| Library / language API | Math.max(4, 19, 11) returns 19 |
| Operating-system API | A program calls the OS to open or read a file instead of driving the disk itself |
By access, APIs are public/open (any registered developer, usually with an API key), partner (selected business partners) or private/internal (used only inside one organisation).
Benefits: reuse of existing services, faster development, independent evolution of client and server, and controlled access (authentication, rate limits).
Exam tip: define an API as a contract between two programs, then show one request and its response (for a web API, an HTTP request and a JSON reply).
Describe the data communication system with necessary diagram.
Write short note: (i) web server (ii) ISP (iii) Router (iv) Search Engine
How can you define IoT? What are the basic components of IoT?
What do you mean by machine learning? Name three machine learning application in our daily life?
Write difference between machine learning and deep learning.
Why is packet switching suitable for digital data transmission?
Sign up free to see the model answers to written questions 20–25 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explain difference between Data Administrator and Database Administrator.
Model answer
A Data Administrator (DA) is a managerial person who manages the organization's data as a resource: data policies, standards, definitions, ownership and the conceptual/logical data model, independent of any DBMS. A Database Administrator (DBA) is a technical person who manages the database system itself — installing the DBMS, implementing the physical design, controlling access, backing up and recovering, and tuning performance — for a specific DBMS.
graph TD
M["Management / business users"] --> DA["Data Administrator: policy, standards, data model"]
DA -->|"logical design and rules"| DBA["Database Administrator: implementation and operation"]
DBA --> DB[("Physical database")]
Difference
| Aspect | Data Administrator (DA) | Database Administrator (DBA) |
|---|---|---|
| Nature of role | Managerial / strategic | Technical / operational |
| Works with | Data as an enterprise asset | The DBMS and the physical database |
| DBMS dependency | DBMS-independent | DBMS-specific (e.g. Oracle, SQL Server, PostgreSQL) |
| Design level | Conceptual and logical data model | Physical design: tables, indexes, storage, partitions |
| Main duties | Data policy and standards, naming rules, data dictionary/metadata, data quality, data ownership and governance, planning future data needs | Install/upgrade DBMS, create schemas, grant/revoke access, backup and recovery, performance tuning, monitoring, capacity planning |
| Typical output | Data standards, ER/logical models, data definitions | A secure, available, tuned production database |
| Skills | Business knowledge, modelling, communication | DBMS internals, SQL, operating system, storage and network |
Example
In a bank, the DA decides that every customer is identified by one national ID stored once in a single customer master, defines what "active account" means, and decides who owns customer data. The DBA then creates the Customer table with a primary key and CHECK constraints, indexes it, gives tellers SELECT only, and schedules nightly backups with tested restores.
Relationship
The DA sets the direction and the DBA implements it; the DBA reports technical limits back to the DA. In a small organization one person may do both jobs.
Exam tip: DA = what the data should be and mean (policy, DBMS-independent); DBA = how the database runs safely and fast (technical, DBMS-specific).
What do you mean by Rollback and Roll forward?
Print the following matrix using for loop.
1
22
333
4444
55555
Determine whether a given number is prime or not.
Difference between depth first and breadth first search.
Find the largest number in an array of N elements.
Design a logic circuit that counts the number of 1s in 3 inputs (A, B, C) and outputs a two-bit binary number representing that count of 1s?
Write a program to determine whether a number is even or odd.
Describe the advantages and disadvantages of DBMS-provided and application provided security.
Sign up free to see the model answers to written questions 27–34 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
32 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৩২টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 26 syllabus chapters; the biggest is Control Flow & Loops, in Programming, with 3 questions. Control Flow & Loops is asked in 76 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Control Flow & Loops Programming · 76 other papers, 2015–20263
- Functions & Recursion Programming · 60 other papers, 2016–20262
- AI & Machine Learning Cloud & Emerging Tech · 49 other papers, 2017–20262
- I/O & Buses Computer Architecture · 37 other papers, 2011–20262
- Advanced Databases Database · 7 other papers, 2018–20232
- ER Model & Design Database · 101 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 BPSC Assistant Programmer exam (2022)?
- 34 written questions.
- Which subjects were asked most in the BPSC Assistant Programmer exam (2022)?
- Programming (8), Database (6) and Computer Architecture (4), out of 34 questions.
- When was the BPSC Assistant Programmer exam held?
- On 15 February 2022.
- Where can I find the BPSC Assistant Programmer exam (2022) question solution?
- On this page: 2 of the 34 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