Bangladesh Development Bank Senior Officer (IT) Exam 2017 — Question Solution | বাংলাদেশ ডেভেলপমেন্ট ব্যাংক (বিডিবিএল) সিনিয়র অফিসার (আইটি) নিয়োগ পরীক্ষা ২০১৭ — প্রশ্ন সমাধান
- Bangladesh Development Bank
- Senior Officer (IT)
- 2017
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Bangladesh Development Bank Senior Officer (IT) exam was held in 2017. The paper had 7 written questions. The subjects asked most were Programming (4), Cyber Security (1) and Database (1). This page lists every question, with 2 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
- Bangladesh Development Bank
- Post
- Senior Officer (IT)
- Exam date
- 2017
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Write a program using any programming language that reads five numbers from keyboard and display the smaller, larger and average of those numbers.
Discuss architecture of Java virtual machine.
A program sorts an array of integers. Write down the code that tests the sorting algorithm written in the program.
Write down the name of different attack through internet.
Sign up free to see the model answers to written questions 1–4 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Describe the ACID properties of database.
Model answer
ACID is the set of four properties that a DBMS guarantees for every transaction (a unit of work such as a fund transfer), so that the data stay correct despite failures and concurrent users.
| Property | Meaning | How the DBMS provides it |
|---|---|---|
| Atomicity | All operations of the transaction take effect, or none do. | Undo (rollback) log: on error or ROLLBACK every change of the transaction is undone. |
| Consistency | A transaction takes the database from one valid state to another; no integrity rule (PK, FK, CHECK, business rule) is left broken. | Constraints and triggers checked by the DBMS, plus correctly written transaction logic. |
| Isolation | Concurrent transactions do not see each other's unfinished work. | Concurrency control: locking (two-phase locking) or multiversioning (MVCC). |
| Durability | Once COMMIT succeeds, the change survives a crash or power failure. | Write-ahead (redo) log forced to disk at commit; recovery replays it. |
Worked example: transfer Tk 7,000 from SB-101 to SB-202
CREATE TABLE account (
acc_no CHAR(6) NOT NULL PRIMARY KEY,
holder VARCHAR(40) NOT NULL,
balance DECIMAL(12,2) NOT NULL CHECK (balance >= 0)
);
INSERT INTO account VALUES ('SB-101', 'Nadia', 5000), ('SB-202', 'Tanvir', 2000);
BEGIN TRANSACTION;
UPDATE account SET balance = balance + 7000 WHERE acc_no = 'SB-202'; -- succeeds
UPDATE account SET balance = balance - 7000 WHERE acc_no = 'SB-101'; -- fails: CHECK (balance >= 0)
ROLLBACK; -- program reacts to the error
| Moment | SB-101 | SB-202 | Total |
|---|---|---|---|
| Before | 5000 | 2000 | 7000 |
| Inside, after the credit | 5000 | 9000 | 14000 (hidden from other sessions at READ COMMITTED or stricter) |
| After ROLLBACK | 5000 | 2000 | 7000 |
| After a valid transfer of 1500 and COMMIT | 3500 | 3500 | 7000 |
- Atomicity: the credit to SB-202 is undone, so money is not created.
- Consistency: the CHECK rule blocks a negative balance; the total stays 7000.
- Isolation: another session must not read the temporary 9000 (a dirty read).
- Durability: after the COMMIT of the 1500 transfer, 3500/3500 stays even if the server restarts.
In SQLite, MySQL and SQL Server (default settings) a failed statement undoes only itself, not the earlier statements of the transaction, so the program must issue ROLLBACK; PostgreSQL marks the whole transaction as failed, and it too is ended with ROLLBACK. The balances print as 5000 in SQLite and as 5000.00 in MySQL, PostgreSQL and SQL Server (DECIMAL(12,2)). MySQL enforces CHECK only from 8.0.16; earlier versions parse and ignore it.
Syntax by DBMS: BEGIN TRANSACTION (SQLite, SQL Server; also BEGIN TRAN), START TRANSACTION or BEGIN (MySQL, PostgreSQL, standard SQL), Oracle starts a transaction automatically with the first DML statement.
Isolation levels (SQL standard)
| Level | Dirty read | Non-repeatable read | Phantom |
|---|---|---|---|
| READ UNCOMMITTED | possible | possible | possible |
| READ COMMITTED | prevented | possible | possible |
| REPEATABLE READ | prevented | prevented | possible |
| SERIALIZABLE | prevented | prevented | prevented |
Dirty reads are prevented only at READ COMMITTED or stricter, and only SERIALIZABLE guarantees that the result equals some serial (one-after-another) order of the transactions.
stateDiagram-v2
[*] --> Active
Active --> PartiallyCommitted: last statement done
PartiallyCommitted --> Committed: log written to disk
Active --> Failed: error
PartiallyCommitted --> Failed: write fails
Failed --> Aborted: rollback
Committed --> [*]
Aborted --> [*]
Vendor documentation: MySQL 8.0 – CHECK constraints.
Exam tip: give each property with its mechanism (undo log, constraints, locking/MVCC, redo log) and one bank-transfer example; do not claim isolation is always serial, since that holds only at SERIALIZABLE.
What is HTML Canvas? Differentiate between canvas and SVG.
Model answer
HTML Canvas (<canvas>, introduced in HTML5) is an element that reserves a fixed-size bitmap drawing area on a web page. It has no drawing ability of its own: a script gets a rendering context (canvas.getContext("2d") for 2-D, "webgl"/"webgl2" for 3-D) and uses its methods to draw paths, rectangles, circles, text and images pixel by pixel. The default size is 300 × 150 pixels; text placed inside the tags is fallback content.
Example: drawing the national flag of Bangladesh on a canvas
The flag is 10 : 6, the red circle's radius is one-fifth of the length, and its centre lies at nine-twentieths of the length from the hoist, on the middle line. For a 300 × 180 canvas: radius = 300 ÷ 5 = 60, centre x = 300 × 9 ÷ 20 = 135, centre y = 180 ÷ 2 = 90.
<canvas id="flag" width="300" height="180">National flag of Bangladesh</canvas>
<script>
const c = document.getElementById("flag").getContext("2d");
c.fillStyle = "#006a4e"; // green field
c.fillRect(0, 0, 300, 180);
c.fillStyle = "#f42a41"; // red disc
c.beginPath();
c.arc(135, 90, 60, 0, 2 * Math.PI); // centre (135, 90), radius 60
c.fill();
</script>
The same flag in SVG is pure markup, with no script:
<svg width="300" height="180" viewBox="0 0 300 180" role="img" aria-label="National flag of Bangladesh">
<rect width="300" height="180" fill="#006a4e"/>
<circle cx="135" cy="90" r="60" fill="#f42a41"/>
</svg>
Differences between Canvas and SVG
| Point | Canvas | SVG |
|---|---|---|
| Nature | Bitmap/raster: a grid of pixels | Vector: shapes described by coordinates and paths |
| Written with | JavaScript drawing API | XML tags inside the HTML |
| Rendering mode | Immediate mode: draw and forget | Retained mode: the browser keeps every shape |
| DOM | One <canvas> node, whatever is drawn |
One DOM node per shape |
| Scaling | Loses quality when enlarged | Resolution-independent; sharp on any screen or print |
| Interactivity | Must work out which shape was clicked from x, y | Event listeners on each shape |
| CSS styling | Not possible for the drawn shapes | fill, stroke, hover effects and animations via CSS |
| Changing one shape | Clear and redraw | Edit that element's attribute |
| Many objects / frequent redraw | Performs well (games, particles, video) | Slows as element count grows |
| Accessibility and SEO | Drawn text invisible to screen readers and search engines | Text is real and indexable |
| Image export | toDataURL() / toBlob() give PNG/JPEG |
Kept as a .svg text file |
Choosing between them
flowchart TD
A["Graphic needed on a web page"] --> B{"Thousands of moving objects or pixel-level work?"}
B -- Yes --> C["Use canvas (games, image filters, live charts)"]
B -- No --> D{"Must stay sharp when scaled, or each shape clickable?"}
D -- Yes --> E["Use SVG (logos, icons, maps, diagrams)"]
D -- No --> F["Either works; SVG is simpler to edit"]
Exam tip: define canvas as "a bitmap drawing surface controlled by JavaScript", then give at least four contrasts with SVG: raster vs vector, script vs markup, no DOM vs DOM per shape, blurs vs scales cleanly.
What is garbage collection? Write down the difference between garbage collection in .NET 4 and earlier version of .NET
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
5 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৫টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 4 syllabus chapters; the biggest is Pointers, Arrays & Strings, in Programming, with 2 questions. Pointers, Arrays & Strings is asked in 44 other papers too (2016–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Pointers, Arrays & Strings Programming · 44 other papers, 2016–20262
- Object-Oriented Programming Programming · 88 other papers, 2015–20261
- HTML & CSS Web Technology · 33 other papers, 2016–20261
- Transactions & Concurrency Database · 23 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 Bangladesh Development Bank Senior Officer (IT) exam (2017)?
- 7 written questions.
- Which subjects were asked most in the Bangladesh Development Bank Senior Officer (IT) exam (2017)?
- Programming (4), Cyber Security (1) and Database (1), out of 7 questions.
- When was the Bangladesh Development Bank Senior Officer (IT) exam held?
- In 2017. The exact day isn't in our records.
- Where can I find the Bangladesh Development Bank Senior Officer (IT) exam (2017) question solution?
- On this page: 2 of the 7 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