Dutch Bangla Bank Probationary Officer Exam 2018 — Question Solution | ডাচ্-বাংলা ব্যাংক প্রবেশনারি অফিসার নিয়োগ পরীক্ষা ২০১৮ — প্রশ্ন সমাধান
- Dutch Bangla Bank
- Probationary Officer
- 2018
- 11 questions · 0 MCQ, 11 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Dutch Bangla Bank Probationary Officer exam was held in 2018. The paper had 11 written questions. The subjects asked most were Programming (5), Database (3) and Algorithms (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
- Dutch Bangla Bank
- Post
- Probationary Officer
- Exam date
- 2018
- Questions
- 11 (0 MCQ, 11 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Describe RAID level.
Write a program in pl/SQL to find the heighest paid employees from employee table and store the data in HighestPaidEmp table.
Sign up free to see the model answers to written questions 1–2 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Define: (i) Left outer join (ii) Right outer join (iii) Full outer join (iv) One to many and (v) Many to many
Model answer
Sample tables used below
department
| dept_id | dept_name |
|---|---|
| 10 | ICT |
| 20 | HR |
| 30 | Audit |
employee
| emp_id | emp_name | dept_id |
|---|---|---|
| 1 | Rafi | 10 |
| 2 | Mitu | 10 |
| 3 | Tushar | 20 |
| 4 | Nipa | NULL |
Audit has no employee; Nipa has no department. (A NULL dept_id matches nothing, because NULL = 10 is not true.)
(i) Left outer join — returns all rows of the left table; where the right table has no matching row, the right-side columns are NULL.
SELECT d.dept_name, e.emp_name
FROM department d LEFT OUTER JOIN employee e ON e.dept_id = d.dept_id
ORDER BY d.dept_id, e.emp_id;
| dept_name | emp_name |
|---|---|
| ICT | Rafi |
| ICT | Mitu |
| HR | Tushar |
| Audit | NULL |
(ii) Right outer join — returns all rows of the right table, with NULLs for the left-side columns where there is no match. A RIGHT JOIN B gives the same rows as B LEFT JOIN A.
SELECT d.dept_name, e.emp_name
FROM department d RIGHT OUTER JOIN employee e ON e.dept_id = d.dept_id
ORDER BY e.emp_id;
| dept_name | emp_name |
|---|---|
| ICT | Rafi |
| ICT | Mitu |
| HR | Tushar |
| NULL | Nipa |
(iii) Full outer join — returns all rows of both tables: matched rows are combined, unmatched rows of either side appear with NULLs for the other side.
SELECT d.dept_name, e.emp_name
FROM department d FULL OUTER JOIN employee e ON e.dept_id = d.dept_id
ORDER BY d.dept_id, e.emp_id;
| dept_name | emp_name |
|---|---|
| NULL | Nipa |
| ICT | Rafi |
| ICT | Mitu |
| HR | Tushar |
| Audit | NULL |
(The position of the NULL row depends on how the DBMS sorts NULLs; SQLite, MySQL and SQL Server put NULLs first in ascending order, PostgreSQL and Oracle put them last.)
MySQL has no FULL OUTER JOIN; the same rows are produced with a left join plus the unmatched rows of a right join:
SELECT d.dept_name, e.emp_name
FROM department d LEFT JOIN employee e ON e.dept_id = d.dept_id
UNION ALL
SELECT d.dept_name, e.emp_name
FROM department d RIGHT JOIN employee e ON e.dept_id = d.dept_id
WHERE d.dept_id IS NULL
ORDER BY dept_name, emp_name;
It returns the same five rows as the full outer join (the second SELECT adds only the employees with no matching department, so no row appears twice).
| Join | Unmatched rows kept |
|---|---|
| LEFT | left table only |
| RIGHT | right table only |
| FULL | both tables |
(iv) One-to-many (1 : N) — one row (entity) of A is related to many rows of B, but each row of B is related to at most one row of A. Example: one department has many employees; an employee works in one department. Mapping: put the primary key of the "one" side as a foreign key on the "many" side (employee.dept_id → department.dept_id).
(v) Many-to-many (M : N) — a row of A can relate to many rows of B and a row of B to many rows of A. Example: a student takes many courses and a course has many students. A relational table cannot hold this with one foreign key, so a junction (associative) table is used, whose primary key is the pair of foreign keys:
CREATE TABLE enrollment (
student_id INT NOT NULL REFERENCES student (student_id),
course_code CHAR(6) NOT NULL REFERENCES course (course_code),
PRIMARY KEY (student_id, course_code)
);
erDiagram
DEPARTMENT ||--o{ EMPLOYEE : "employs (1:N)"
STUDENT ||--o{ ENROLLMENT : "enrols in"
COURSE ||--o{ ENROLLMENT : "is taken in"
Here STUDENT – COURSE is M : N, split into two 1 : N relationships through ENROLLMENT.
Exam tip: LEFT keeps the left table's unmatched rows, RIGHT the right table's, FULL both (NULLs fill the gaps); 1 : N → foreign key on the many side, M : N → junction table with a composite primary key.
Write query:
(i) Find the names who bought products which are American made.
(ii) What is the number of sum of product those sales by country of origin?
Product (pname, price, stock, maker)
Purchase (buyer, seller, product)
Company (cname, country)
Person (per-name, address)
Product and company table have relation on maker and cname.
Product and purchase table have relation on pname and product.
Purchase and person table have relation on seller and per-name.
Construct a min heap from a given dataset.
Given array (indices 0–5): 7, 2, 9, 4, 5, 3
Give the main features of OOP. Design and implement them using Java code.
Write a recursive algorithm and implement it in an iterative way.
Write a program in any language.
(a) Write a program to print out a diamond pattern. If n=5 then it prints:
*
***
*****
***
*
(b) Write a program to find out the second max element in an array without using any library and sorting.
Write a program to evaluate the series: 1*3+2*5+3*7+.....+n*(2n+1)
Write a program to find out the number of occurrences of a digit in a number. Explanation: input value is n and selection value is d. Sample Input: 12223; Sample selection value: 2; Sample output: 3
Create a class Rational and (a) create two private int type properties named numerator and denominator, and create a constructor that has no arguments and sets the numerator and denominator values to 1. (b) Create a constructor with two int type arguments and set these arguments to numerator and denominator.
Sign up free to see the model answers to written questions 4–11 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
10 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ১০টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 9 syllabus chapters; the biggest is SQL & Queries, in Database, with 2 questions. SQL & Queries is asked in 93 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- SQL & Queries Database · 93 other papers, 2015–20262
- Language Basics & Syntax Programming · 122 other papers, 2015–20261
- ER Model & Design Database · 101 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
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 (2018)?
- 11 written questions.
- Which subjects were asked most in the Dutch Bangla Bank Probationary Officer exam (2018)?
- Programming (5), Database (3) and Algorithms (1), out of 11 questions.
- When was the Dutch Bangla Bank Probationary Officer exam held?
- In 2018. The exact day isn't in our records.
- Where can I find the Dutch Bangla Bank Probationary Officer exam (2018) question solution?
- On this page: 1 of the 11 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