Pubali Bank Senior Officer Exam 2018 — Question Solution | পূবালী ব্যাংক সিনিয়র অফিসার নিয়োগ পরীক্ষা ২০১৮ — প্রশ্ন সমাধান
- Pubali Bank
- Senior Officer
- 2018
- 13 questions · 0 MCQ, 13 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Pubali Bank Senior Officer exam was held in 2018. The paper had 13 written questions. The subjects asked most were Programming (4), Database (3) and Software Engineering (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
- Pubali Bank
- Post
- Senior Officer
- Exam date
- 2018
- Questions
- 13 (0 MCQ, 13 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Write the difference between throw and throws using Exception handling?
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 answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What do you mean by Polymorphism and Inheritance in Object Oriented Programming (OOP)? Give appropriate example.
Model answer
Inheritance is the mechanism by which a new class (derived/child/subclass) acquires the fields and methods of an existing class (base/parent/superclass), and can then add new members or redefine inherited ones. It models an "is-a" relationship (a Car is a Vehicle) and gives code reuse.
Polymorphism ("many forms") means one name or one call behaving differently for different types:
- Compile-time (static) polymorphism: method overloading. The same method name has different parameter lists, and the compiler picks the version from the arguments.
- Run-time (dynamic) polymorphism: method overriding. A subclass redefines an inherited method, and a call through a superclass reference runs the version of the object's actual class (dynamic binding).
Types of inheritance
| Type | Shape | Java | C++ |
|---|---|---|---|
| Single | A → B | Yes | Yes |
| Multilevel | A → B → C | Yes | Yes |
| Hierarchical | A → B, A → C | Yes | Yes |
| Multiple | A, B → C | Not for classes (class C extends A, B does not compile); allowed through interfaces |
Yes |
| Hybrid | A mix of the above | Only through interfaces | Yes |
The diamond problem depends on the language. In C++, a class that inherits one base twice through two paths gets two copies of it, and accessing the base member is "ambiguous" unless virtual inheritance is used. In Java (8 and later), if two interfaces give the same default method, the class does not compile until it overrides that method. Python allows multiple inheritance and resolves a call by the method resolution order (MRO).
Example (Java 21):
classDiagram
class Vehicle {
#String id
~Vehicle(String id)
~wheels() int
~describe() void
}
class Car {
~Car(String id)
~wheels() int
}
class Bike {
~Bike(String id)
~wheels() int
}
class Fare {
~cost(int km)$ int
~cost(double km, double tollTk)$ double
}
class FleetDemo {
+main(String[] args)$ void
}
Vehicle <|-- Car
Vehicle <|-- Bike
FleetDemo ..> Vehicle : uses
FleetDemo ..> Fare : uses
class Vehicle { // base (parent) class
protected String id;
Vehicle(String id) { this.id = id; }
int wheels() { return 0; }
void describe() {
System.out.println(id + " runs on " + wheels() + " wheels");
}
}
class Car extends Vehicle { // inheritance
Car(String id) { super(id); }
@Override
int wheels() { return 4; } // overriding
}
class Bike extends Vehicle {
Bike(String id) { super(id); }
@Override
int wheels() { return 2; }
}
class Fare { // overloading
static int cost(int km) { return km * 30; }
static double cost(double km, double tollTk) { return km * 30 + tollTk; }
}
public class FleetDemo {
public static void main(String[] args) {
Vehicle[] fleet = { new Car("Taxi-17"), new Bike("Courier-4") };
for (Vehicle v : fleet)
v.describe(); // run-time polymorphism
System.out.println("Fare for 8 km: " + Fare.cost(8));
System.out.println("Fare for 6.5 km + toll: " + Fare.cost(6.5, 50.0));
}
}
Output:
Taxi-17 runs on 4 wheels
Courier-4 runs on 2 wheels
Fare for 8 km: 240
Fare for 6.5 km + toll: 245.0
Explanation:
- Inheritance:
CarandBikeextend Vehicle, so they reuse the fieldidand the methoddescribe()without rewriting them.super(id)runs the parent constructor. - Run-time polymorphism:
describe()callswheels(). For theCarobject the overriddenCar.wheels()(4) runs, and for theBikeobjectBike.wheels()(2) runs, even though both are held asVehiclereferences. - Compile-time polymorphism:
Fare.cost(8)matchescost(int)and gives 8 × 30 = 240.Fare.cost(6.5, 50.0)matchescost(double, double)and gives 6.5 × 30 + 50 = 245.0.
Exam tip: inheritance = reuse through "is-a" (extends); polymorphism = one interface, many forms: overloading is decided at compile time, overriding at run time.
If 10 people meet each other and each shakes hands only once with each of the others, how many handshakes will there be?
Write the agile method components for Software development.
What do you mean by Database properties using Normalization?
Difference between Super Key and UNIQUE key.
Suppose you have a method named "totalAmount" and there are three properties (transactionName, transactionType, amount). Write the full code in JAVA where the totalAmount method returns the total balance after debits or credits.
Suppose you've two table (Employee, Department) in a Database and Employee table three cell (emp_name, dept_id, salary) also Department table two cell (dept_id, dept_name), now update the salary 10% increase value from Department table. Give the appropriate example.
Write the full form of following topics:
JAR, JRE, WAR, JDK
Write down the component of .NET Framework.
Complexity of BST (Binary Search Tree) best and worst case.
What is MVC? Write down the MVC design pattern.
Sign up free to see the model answers to written questions 4–13 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
12 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ১২টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 10 syllabus chapters; ER Model & Design, SQL & Queries and Object-Oriented Programming lead, with 1 each. ER Model & Design is asked in 101 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- ER Model & Design Database · 101 other papers, 2015–20261
- SQL & Queries Database · 93 other papers, 2015–20261
- Object-Oriented Programming Programming · 88 other papers, 2015–20261
- Functions & Recursion Programming · 60 other papers, 2016–20261
- Trees Data Structures · 47 other papers, 2015–20261
- HTML & CSS Web Technology · 33 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 Pubali Bank Senior Officer exam (2018)?
- 13 written questions.
- Which subjects were asked most in the Pubali Bank Senior Officer exam (2018)?
- Programming (4), Database (3) and Software Engineering (2), out of 13 questions.
- When was the Pubali Bank Senior Officer exam held?
- In 2018. The exact day isn't in our records.
- Where can I find the Pubali Bank Senior Officer exam (2018) question solution?
- On this page: 1 of the 13 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