BKSP Assistant Programmer Exam 3 December 2022 — Question Solution | বিকেএসপি সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০২২ — প্রশ্ন সমাধান
- BKSP
- Assistant Programmer
- 3 December 2022
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BKSP Assistant Programmer exam was held on 3 December 2022. The paper had 7 written questions. The subjects asked most were Programming (4), Cyber Security (2) and Database (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
- BKSP
- Post
- Assistant Programmer
- Exam date
- 3 December 2022
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
Find occurrence of a Character in a string. String: Bangladesh is a big country.
Sample Input: b, Output: 2 times
Sample Input: p, Output: Not found this letter
Write a program, using a function, to check whether a year is a leap year or not.
Difference between encryption and hashing.
Write down the main feature of Object Oriented Programming (OOP).
What is RAID?
What is Vulnerability?
Sign up free to see the model answers to written questions 1–6 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Define Class and Object in C++ with example.
Model answer
Class: a class is a user-defined data type — a blueprint — that groups data members (attributes) and member functions (behaviour) under one name. Defining a class creates no data; it only describes what every object of that type will contain.
Object: an object is an instance of a class: a real variable of the class type that occupies memory, holds its own values of the data members, and calls the member functions on them.
Syntax
class ClassName {
access_specifier:
data members;
member functions;
}; // a semicolon ends the class definition
ClassName obj; // object creation
obj.memberFunction(); // member access with the dot operator
Example (C++)
#include <iostream>
#include <string>
using namespace std;
class Student { // class: the blueprint
private:
string name;
int roll;
double cgpa;
public:
void setData(string n, int r, double c) { name = n; roll = r; cgpa = c; }
void display() const {
cout << "Roll " << roll << ": " << name << ", CGPA " << cgpa << '\n';
}
};
int main()
{
Student s1, s2; // objects: real instances
s1.setData("Rafi", 11, 3.75);
s2.setData("Mitu", 12, 3.9);
s1.display();
s2.display();
return 0;
}
Output
Roll 11: Rafi, CGPA 3.75
Roll 12: Mitu, CGPA 3.9
flowchart LR
C["class Student: name, roll, cgpa, setData(), display()"] -->|"instance"| O1["object s1: Rafi, 11, 3.75"]
C -->|"instance"| O2["object s2: Mitu, 12, 3.9"]
| Class | Object |
|---|---|
| Blueprint / user-defined type | Instance of that type |
Declared once with the keyword class |
Created many times: Student s1, s2; |
| No memory for data members by itself | Each object has its own memory for the data members |
| Logical entity | Physical (run-time) entity |
s1 and s2 share the same member functions, but each has its own name, roll and cgpa, so changing s1 does not change s2. Because the data members are private, main uses them only through the public functions setData() and display().
Exam tip: class = blueprint (type), object = instance (variable with memory); define the class with class Name { ... }; and create objects with Name obj;.
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 6 syllabus chapters; the biggest is Object-Oriented Programming, in Programming, with 2 questions. Object-Oriented Programming is asked in 88 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Object-Oriented Programming Programming · 88 other papers, 2015–20262
- Attacks & Threats Cyber Security · 81 other papers, 2012–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Cryptography Cyber Security · 49 other papers, 2012–20261
- Pointers, Arrays & Strings Programming · 44 other papers, 2016–20261
- Indexing & Storage Database · 8 other papers, 2016–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 BKSP Assistant Programmer exam (2022)?
- 7 written questions.
- Which subjects were asked most in the BKSP Assistant Programmer exam (2022)?
- Programming (4), Cyber Security (2) and Database (1), out of 7 questions.
- When was the BKSP Assistant Programmer exam held?
- On 3 December 2022.
- Where can I find the BKSP 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