Dutch Bangla Bank Probationary Officer Exam 2016 — Question Solution | ডাচ্-বাংলা ব্যাংক প্রবেশনারি অফিসার নিয়োগ পরীক্ষা ২০১৬ — প্রশ্ন সমাধান
- Dutch Bangla Bank
- Probationary Officer
- 2016
- 9 questions · 0 MCQ, 9 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Dutch Bangla Bank Probationary Officer exam was held in 2016. The paper had 9 written questions. The subjects asked most were Programming (5), Algorithms (2) and Database (2). 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
- Dutch Bangla Bank
- Post
- Probationary Officer
- Exam date
- 2016
- Questions
- 9 (0 MCQ, 9 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Write down time complexities of different sorting algorithms.
What is trigger? Write a code for auto increment sequence and trigger.
What is the difference among String, StringBuffer and StringBuilder?
Write code of palindrome in java or C++.
Sign up free to see the model answers to written questions 1–4 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is method overloading and method overriding?
Model answer
Method overloading means defining several methods with the same name but different parameter lists (number, type or order of parameters). The compiler chooses the version from the arguments of the call, so it is compile-time (static) polymorphism.
Method overriding means a subclass gives its own body to a method it inherits, keeping the same name and parameter list. The version that runs is chosen at run time from the actual object, not from the reference type, so it is run-time (dynamic) polymorphism.
| Point (Java) | Overloading | Overriding |
|---|---|---|
| Where | Same class, or a subclass that adds a new parameter list to an inherited name | Superclass and subclass (needs inheritance) |
| Parameter list | Must differ | Must be the same |
| Return type | May differ, but a different return type alone is a compile error ("method ... is already defined") | Same; for a reference type a subtype is allowed (covariant return) |
| Binding | Compile time | Run time (dynamic dispatch) |
| Access modifier | Any | Cannot be weaker (public → package-private is a compile error) |
static / final / private methods |
Can be overloaded | final cannot be overridden; private is not inherited; a static method is hidden, not overridden |
| Checked exceptions | Any | Cannot add new or broader checked exceptions |
@Override |
Not used | Recommended: the compiler then checks that the method really overrides |
Example (Java 21):
class Fare {
// Overloading: same name, different parameter lists
int cost(int km) { return km * 12; }
int cost(int km, int luggageKg) { return cost(km) + luggageKg * 5; }
double cost(double km) { return km * 12.5; }
}
class Vehicle {
String horn() { return "generic horn"; }
}
class Bus extends Vehicle {
@Override
String horn() { return "Bus: poo-poo"; } // Overriding
}
class Rickshaw extends Vehicle {
@Override
String horn() { return "Rickshaw: tring-tring"; }
}
public class PolyDemo {
public static void main(String[] args) {
Fare f = new Fare();
System.out.println(f.cost(10) + " " + f.cost(10, 4) + " " + f.cost(2.0));
Vehicle[] road = { new Bus(), new Rickshaw(), new Vehicle() };
for (Vehicle v : road) // reference type is Vehicle,
System.out.println(v.horn()); // object type picks the body
}
}
Output:
120 140 25.0
Bus: poo-poo
Rickshaw: tring-tring
generic horn
How it works: cost(10), cost(10, 4) and cost(2.0) call three different methods; the compiler picks each one from the argument types (overloading). In the loop every reference has type Vehicle, yet v.horn() runs the Bus, Rickshaw or Vehicle body according to the real object (overriding).
In C++: a member function is overridden through a base pointer or reference only if the base declares it virtual; a non-virtual function called through a Base* runs the base version.
Exam tip: Overloading = same name, different parameters, same class, compile time. Overriding = same signature, parent–child classes, run time.
What is the difference between implement runnable interfaces and extend thread class?
Given two tables are employee (id, name, salary, dept_id) and department (dept_id, dept_name), Write a SQL to find MAX salary and AVERAGE Salary for Specific department.
Explain BFS Traversal of a graph with an example.
Write a Java program based on the following conditions: There is one Circle class and one Cylinder class. The Circle class has an area function. The Cylinder class has to calculate the circle area at its base and has a height of its own (Cylinder volume = Circle area * height). Use inheritance to calculate the volume of the cylinder.
Sign up free to see the model answers to written questions 6–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 6 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
- SQL & Queries Database · 93 other papers, 2015–20262
- Control Flow & Loops Programming · 76 other papers, 2015–20261
- Sorting Algorithms · 59 other papers, 2013–20261
- Pointers, Arrays & Strings Programming · 44 other papers, 2017–20261
- Searching Algorithms · 39 other papers, 2016–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 Dutch Bangla Bank Probationary Officer exam (2016)?
- 9 written questions.
- Which subjects were asked most in the Dutch Bangla Bank Probationary Officer exam (2016)?
- Programming (5), Algorithms (2) and Database (2), out of 9 questions.
- When was the Dutch Bangla Bank Probationary Officer exam held?
- In 2016. The exact day isn't in our records.
- Where can I find the Dutch Bangla Bank Probationary Officer exam (2016) 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