Dutch Bangla Bank Ltd. — Probationary Officer (Software) Written Test: 2018প্রশ্ন ও সমাধান
- Set by
- Dutch Bangla Bank
- Post
- Probationary Officer
- Exam date
- 2018
- Questions
- 9 (0 MCQ, 9 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
- Programming · প্রোগ্রামিং 5
- Algorithms · অ্যালগরিদম 1
- Computer Architecture · কম্পিউটার আর্কিটেকচার 1
- Data Structures · ডেটা স্ট্রাকচার 1
- Database · ডেটাবেজ 1
Describe RAID level.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Define: (i) Left outer join (ii) Right outer join (iii) Full outer join (iv) One to many and (v) Many to many
Model answer
(i) LEFT OUTER JOIN: returns all rows from the left table plus matching rows from the right table; unmatched right-side columns are filled with NULL.
SELECT * FROM A LEFT JOIN B ON A.id = B.a_id;
(ii) RIGHT OUTER JOIN: the mirror of a left join — returns all rows from the right table plus matching left-table rows, with NULL where there is no match. A LEFT JOIN B ≡ B RIGHT JOIN A (columns reordered).
SELECT * FROM A RIGHT JOIN B ON A.id = B.a_id;
(iii) FULL OUTER JOIN: returns all rows from both tables — matched rows are combined, and unmatched rows from either side appear with NULLs for the other side's columns.
SELECT * FROM A FULL OUTER JOIN B ON A.id = B.a_id;
(iv) One-to-Many: one row in table A relates to many rows in table B, but each row in B relates to only one row in A (e.g. one Department has many Employees).
(v) Many-to-Many: rows in A can relate to many rows in B and vice versa (e.g. Student ↔ Course); implemented in a relational DB via a junction/associative table holding both foreign keys.
erDiagram
DEPARTMENT ||--o{ EMPLOYEE : "one-to-many"
STUDENT }o--o{ COURSE : "many-to-many via ENROLLMENT"
Exam takeaway: LEFT/RIGHT/FULL joins differ only in which side's unmatched rows are preserved with NULLs; many-to-many relationships always require a junction table since a relational column can only hold one foreign key value.
Construct a min heap from a given dataset.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Given main feature of OOP. Design and implement it using java code.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write recursive algorithm implementation it using iterative way.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write a program in any language.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write a program to evaluate the series: 1*3+2*5+3*7+.....+n*(2n+1)
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Write a program to find out the number of occurrence of a digit in a number. Explanation if input value n and selection value is d. Sample Input: 12223; Sample selection value: 2; Sample output: 3
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Create a class Rational and (a) Create to private int type property named numerator and denominator and create a constructor having no arguments and sets numerator and denominator value to 1. (b) Create a constructor with two int type argument and set these arguments to numerator and denominator.
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