BPSC Assistant Programmer (ICT) Exam 2019 — Question Solution | বিপিএসসি (সরকারি কর্ম কমিশন) সহকারী প্রোগ্রামার (আইসিটি) নিয়োগ পরীক্ষা ২০১৯ — প্রশ্ন সমাধান
- BPSC
- Assistant Programmer (ICT)
- 2019
- 9 questions · 0 MCQ, 9 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The BPSC Assistant Programmer (ICT) exam was held in 2019. The paper had 9 written questions. The subjects asked most were Networking (3), Programming (3) and Cloud & Emerging Tech (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
- BPSC
- Post
- Assistant Programmer (ICT)
- Exam date
- 2019
- Questions
- 9 (0 MCQ, 9 written)
- Exam guide
- BPSC non-cadre IT posts · পিএসসি নন-ক্যাডার আইটি পদ
(a) Write a Java/C program to find the sum of the following series?
1/1! + 2/2! + 3/3! + ............. + N/N!
(b) What are the difference between process and thread?
(c) Why Java is called platform independent language?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
(a) What is method overloading?
(b) Implement Array List using following integer value and show operational method of the following: 52, 50, 27, 66, 82.
i) Insert data into array list
ii) Remove 27 from array list
iii) Insert 99 into 2nd position
iv) Show array list
Model answer
(a) Method overloading
Definition: method overloading means defining two or more methods with the same name in a class but with different parameter lists (a different number, type or order of parameters). The compiler chooses the matching version from the arguments at compile time, so overloading is compile-time (static) polymorphism.
public class Calculator {
int add(int a, int b) { return a + b; }
double add(double a, double b) { return a + b; }
int add(int a, int b, int c) { return a + b + c; }
public static void main(String[] args) {
Calculator c = new Calculator();
System.out.println(c.add(2, 3)); // add(int, int)
System.out.println(c.add(2.5, 3.5)); // add(double, double)
System.out.println(c.add(1, 2, 3)); // add(int, int, int)
}
}
Output:
5
6.0
6
Rules to remember:
- Methods that differ only in return type are not overloads; that is a compile error.
- Constructors can be overloaded in the same way;
System.out.printlnis a familiar overloaded method.
| Feature | Overloading | Overriding |
|---|---|---|
| Where | same class (or inherited into a subclass) | subclass redefines a superclass method |
| Parameter list | must differ | must be the same |
| Resolved | at compile time | at run time |
| Polymorphism | static | dynamic |
| Return type | may differ, but cannot alone make an overload | same or a subtype (covariant) |
(b) ArrayList with 52, 50, 27, 66, 82
An ArrayList (java.util.ArrayList) is a resizable array that implements List. It keeps elements in insertion order, numbers them from index 0, grows automatically when full, and shifts elements when one is inserted or removed in the middle.
graph LR
S1["i) add x5: 52, 50, 27, 66, 82"] --> S2["ii) remove value 27: 52, 50, 66, 82"]
S2 --> S3["iii) add at index 1: 52, 99, 50, 66, 82"]
S3 --> S4["iv) show: 5 elements"]
Program
import java.util.ArrayList;
public class ArrayListDemo {
public static void main(String[] args) {
ArrayList<Integer> list = new ArrayList<>();
// i) Insert data into the array list
int[] data = {52, 50, 27, 66, 82};
for (int x : data)
list.add(x); // append at the end
System.out.println("i) After inserting : " + list);
// ii) Remove 27 (by value, not by index)
list.remove(Integer.valueOf(27));
System.out.println("ii) After removing 27: " + list);
// iii) Insert 99 into the 2nd position (index 1)
list.add(1, 99);
System.out.println("iii) After adding 99 : " + list);
// iv) Show the array list element by element
System.out.println("iv) Array list (size " + list.size() + "):");
for (int i = 0; i < list.size(); i++)
System.out.println(" index " + i + " -> " + list.get(i));
}
}
Output
i) After inserting : [52, 50, 27, 66, 82]
ii) After removing 27: [52, 50, 66, 82]
iii) After adding 99 : [52, 99, 50, 66, 82]
iv) Array list (size 5):
index 0 -> 52
index 1 -> 99
index 2 -> 50
index 3 -> 66
index 4 -> 82
Step-by-step trace
| Step | Method used | Effect | List after the step | size |
|---|---|---|---|---|
| i | add(x) five times |
each value appended at the end | [52, 50, 27, 66, 82] | 5 |
| ii | remove(Integer.valueOf(27)) |
27 (index 2) deleted; 66 and 82 shift one place left | [52, 50, 66, 82] | 4 |
| iii | add(1, 99) |
2nd position = index 1; 50, 66, 82 shift one place right | [52, 99, 50, 66, 82] | 5 |
| iv | get(i) in a loop, or println(list) |
prints every element | [52, 99, 50, 66, 82] | 5 |
Operational methods of ArrayList
| Method | Work | Time |
|---|---|---|
add(x) |
append at the end | O(1) amortised |
add(i, x) |
insert at index i, shift the rest right | O(n) |
remove(Object o) |
delete the first matching value, shift left | O(n) |
remove(int i) |
delete the element at index i, shift left | O(n) |
get(i) / set(i, x) |
read / replace by index | O(1) |
size() |
number of elements | O(1) |
Note that set(1, 99) would replace 50 instead of inserting 99; insertion needs add(1, 99).
Exam tip: remove is itself overloaded. On an ArrayList<Integer>, list.remove(27) calls remove(int index) and throws IndexOutOfBoundsException: Index 27 out of bounds for length 5; list.remove(Integer.valueOf(27)) calls remove(Object) and deletes the value 27.
(a) Write an algorithm to find Palindrome number.
(b) Explain Polymorphism concept of OOP language.
(a) To setup a network among the computers of your office which type of network and network features will you prefer? Justify your choice?
(b) Find subnet of 172.16.2.1/22 which will be applicable for your office room having 50 and 23 PCs. Also find the first and last usable ip addresses along with broadcast address.
(a) Draw a general model of communication system. Discuss different modes of communications.
(b) How cellular networks handoff works?
(a) Differentiate between DNS server and caches.
(b) Draw three tier architecture of web technology.
(c) What is loopback address of a computer?
(a) What do you mean by Normalization in RDBMS? Explain with an example.
(b) Explain JOIN and INNER-JOIN procedure.
(a) What is SMTP? How SMTP works?
(b) Explain <div>.............</div> tag of HTML with an example.
Write short note on the following topics
Topics:
- AI
- IoT
- Big data
- Robotics
Sign up free to see the model answers to written questions 3–9 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
8 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৮টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 7 syllabus chapters; the biggest is Object-Oriented Programming, in Programming, with 3 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–20263
- 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
- HTML & CSS Web Technology · 33 other papers, 2016–20261
- Normalization Database · 23 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 (ICT) exam (2019)?
- 9 written questions.
- Which subjects were asked most in the BPSC Assistant Programmer (ICT) exam (2019)?
- Networking (3), Programming (3) and Cloud & Emerging Tech (1), out of 9 questions.
- When was the BPSC Assistant Programmer (ICT) exam held?
- In 2019. The exact day isn't in our records.
- Where can I find the BPSC Assistant Programmer (ICT) exam (2019) question solution?
- On this page: 1 of the 9 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