Pubali Bank Ltd. Senior Officer (SD) Written Test: 2018প্রশ্ন ও সমাধান
- Set by
- Pubali Bank
- Post
- Senior Officer
- Exam date
- 2018
- Questions
- 12 (0 MCQ, 12 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
- Programming · প্রোগ্রামিং 4
- Mathematics · গণিত 2
- Software Engineering · সফটওয়্যার ইঞ্জিনিয়ারিং 2
- Data Structures · ডেটা স্ট্রাকচার 1
- Database · ডেটাবেজ 1
- General ICT · সাধারণ আইসিটি 1
- Web Technology · ওয়েব টেকনোলজি 1
Write the difference between throw and throws using Exception handling?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Suppose you've a javaScript code name as "bankScript" write the code for loading in HTML using JS.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What do you mean by Polymorphism and Inheritance in Object Oriented Programming (OOP)? Give appropriate example.
Model answer
Inheritance lets a new (derived/child) class acquire the fields and methods of an existing (base/parent) class, enabling code reuse and an "is-a" hierarchy. Polymorphism means one interface can take many forms — the same method call behaves differently depending on the actual object, achieved via overriding (runtime/dynamic polymorphism) and overloading (compile-time/static polymorphism).
classDiagram
Animal <|-- Dog
Animal <|-- Cat
class Animal{
+String name
+makeSound()
}
class Dog{
+makeSound()
}
class Cat{
+makeSound()
}
class Animal {
String name;
Animal(String n) { name = n; }
void makeSound() { System.out.println(name + " makes a sound"); }
}
class Dog extends Animal { // Inheritance
Dog(String n) { super(n); }
@Override
void makeSound() { System.out.println(name + " barks"); } // Overriding -> Polymorphism
}
class Cat extends Animal {
Cat(String n) { super(n); }
@Override
void makeSound() { System.out.println(name + " meows"); }
}
public class Main {
public static void main(String[] args) {
Animal[] pets = { new Dog("Rex"), new Cat("Tom") };
for (Animal a : pets) a.makeSound(); // same call, different behaviour
}
}
Output:
Rex barks
Tom meows
Dog and Cat inherit the name field from Animal; calling makeSound() through an Animal reference resolves at runtime to the actual object's own version — that is polymorphism.
Exam takeaway: Inheritance = reuse via "is-a"; Polymorphism = one interface, many implementations, resolved by overriding (runtime) or overloading (compile-time).
If 10 people meet each other and each shakes hands only once with each of the others, how many handshakes will there be?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Suppose You've [1-9] ordering number, put the appropriate number below this figure such as each side have 17 up.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write the agile method components for Software development.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What do you mean by Database properties using Normalization?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Suppose you've a method name "totalAmount" and there three properties (transactionName, transactionType, amount). Write down the full code using JAVA where totalAmount method return total balance after debit or credited.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write the full form of following topics:
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write down the component of .NET Framework.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Complexity of BST (Binary Search Tree) best and worst case.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is MVC? Write down the MVC design pattern.
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