Skip to content
Past paper

Dutch Bangla Bank Ltd.; Probationary Officer (Software) Written Test: 2016প্রশ্ন ও সমাধান

Set by
Dutch Bangla Bank
Post
Probationary Officer
Exam date
2016
Questions
9 (0 MCQ, 9 written)
Exam guide
Bank IT jobs · ব্যাংকের আইটি চাকরি
  • Programming · প্রোগ্রামিং 5
  • Algorithms · অ্যালগরিদম 2
  • Database · ডেটাবেজ 2
Written question 1Algorithms

Write down time complexities of different sorting algorithms.

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 2Database

What is trigger? Write a code for auto increment sequence and trigger.

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 3Programming

What is the difference among String, StringBuffer and StringBuilder?

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 4Programming

Write code of palindrome in java or C++.

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 5Programming

What is method overloading and method overriding?

Model answer

Method overloading and method overriding are the two forms of polymorphism found in OOP languages such as Java and C++.

  • Overloading (compile-time polymorphism): several methods in the same class share a name but differ in their parameter list (count, type, or order). The compiler selects the right version based on the arguments used at the call site.
  • Overriding (run-time polymorphism): a subclass re-implements a method that already exists in its superclass, keeping the same name, parameters, and return type. The version actually executed is decided at run time from the real object type (dynamic dispatch).
Aspect Overloading Overriding
Classes involved Same class Parent and child class
Method signature Must differ Must be identical
Binding time Static (compile-time) Dynamic (run-time)
Purpose Flexible behaviour for varying input Specialise inherited behaviour
Return type May differ Must be same/covariant
class Calculator {                    // Overloading
    int add(int a, int b) { return a + b; }
    double add(double a, double b) { return a + b; }
}

class Animal {                        // Overriding
    void sound() { System.out.println("Some sound"); }
}
class Dog extends Animal {
    @Override
    void sound() { System.out.println("Bark"); }
}

Exam takeaway: Overloading = same class, different signature, resolved at compile time; overriding = parent-child, same signature, resolved at run time through the vtable/dynamic dispatch mechanism.

Written question 6Programming

What is the difference between implement runnable interfaces and extend thread class?

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 7Database

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.

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 8Algorithms

Explain BFS Traversal of a graph with an example.

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Written question 9Programming

Write a java program based on following conditions: There is one Circle class and one Cylinder Class. Circle class has an area function. Cylinder class has to calculate the circle area at the base and height of its own (Cylinder area = Circle area*height). Use inheritance to calculate Volumn of Cylinder.

Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers · Bank IT jobs guide