Agrani Bank Senior Officer (IT) Exam 2017 — Question Solution | অগ্রণী ব্যাংক সিনিয়র অফিসার (আইটি) নিয়োগ পরীক্ষা ২০১৭ — প্রশ্ন সমাধান
- Agrani Bank
- Senior Officer (IT)
- 2017
- 6 questions · 0 MCQ, 6 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Agrani Bank Senior Officer (IT) exam was held in 2017. The paper had 6 written questions. The subjects asked most were Cloud & Emerging Tech (2), Database (1) and Operating Systems (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
- Agrani Bank
- Post
- Senior Officer (IT)
- Exam date
- 2017
- Questions
- 6 (0 MCQ, 6 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Explain Type 1 and Type 2 hypervisors in virtual machine operating system with figure.
Difference between method overloading and overriding in java.
Explain inode data structures in Linux OS.
Sign up free to see the model answers to written questions 1–3 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the working procedure of AJAX?
Model answer
AJAX (Asynchronous JavaScript and XML) is a technique, not a language: JavaScript in the page sends an HTTP request to the server in the background (using the XMLHttpRequest object or the newer fetch() API), receives data (usually JSON today; XML in early AJAX applications), and updates only the part of the page that changed. The user can keep using the page while the request is in progress, and there is no full page reload.
Working procedure
sequenceDiagram
actor U as User
participant P as Web page with JavaScript and DOM
participant R as XMLHttpRequest or fetch
participant W as Web server running PHP, Node.js or Java
participant D as Database
U->>P: Clicks the Check seats button
P->>R: Event handler creates the request object
R->>W: Asynchronous HTTP GET request for seat data
Note over P: Page stays usable meanwhile
W->>D: Runs the query
D-->>W: Result rows
W-->>R: Response 200 OK with JSON body
R-->>P: Callback fires with the data
P-->>U: Only the result paragraph is updated
- Event: a user action (click, key press, form change) or a timer runs a JavaScript function.
- Create the request object:
new XMLHttpRequest()(or afetch()call). - Configure and send:
open(method, url)sets the request;send()sends it asynchronously, so the script does not wait. - Server processing: server-side code reads the request, works with the database or files, and builds a response.
- Response: the server returns a status code and data, usually JSON (or XML, HTML or plain text).
- Callback: when the response is complete (
readyState4, status 200), the callback or the resolved promise runs. - Update the DOM: JavaScript parses the data and changes only the needed element; the rest of the page is untouched.
Example code (XMLHttpRequest), with the server replying {"route": "Dhaka-Sylhet", "free": 12}:
<button type="button" id="check">Check seats</button>
<p id="result">No data yet</p>
<script>
document.getElementById("check").addEventListener("click", function () {
const xhr = new XMLHttpRequest(); // step 2
xhr.open("GET", "/api/seats?route=Dhaka-Sylhet"); // step 3
xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === 200) { // step 6
const data = JSON.parse(xhr.responseText);
document.getElementById("result").textContent = // step 7
data.route + ": " + data.free + " seats free";
}
};
xhr.send(); // request leaves in the background
});
</script>
After the click the paragraph reads Dhaka-Sylhet: 12 seats free, with no reload. The same request with fetch() and async/await:
async function checkSeats() {
const res = await fetch("/api/seats?route=Dhaka-Sylhet");
if (!res.ok) throw new Error("HTTP " + res.status);
const data = await res.json();
document.getElementById("result").textContent = data.route + ": " + data.free + " seats free";
}
readyState values of XMLHttpRequest: 0 = UNSENT (created), 1 = OPENED (open() called), 2 = HEADERS_RECEIVED, 3 = LOADING (body arriving), 4 = DONE.
| Classic request | AJAX request |
|---|---|
| Browser loads a whole new page | Only data travels; page stays in place |
| Page is blank or frozen while waiting | Page remains usable (asynchronous) |
| More data sent each time | Less data, faster feel |
Common uses: search suggestions while typing, "username available?" checks, live scores, infinite scrolling, chat. By default a page can call only its own origin; another domain must allow it with CORS headers.
Exam tip: write the chain "event → XMLHttpRequest/fetch → asynchronous request → server and database → JSON/XML response → callback → partial DOM update", and draw it as a sequence diagram.
Explain the components of a Data Center.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explain with examples: Candidate key, foreign key and horizontal scaling.
Model answer
1. Candidate key
A candidate key is a minimal set of attributes that uniquely identifies every row of a table: no two rows can share its value, and no attribute can be removed without losing that uniqueness. A table may have several; one is chosen as the primary key and the rest are alternate keys.
Example: Customer(customer_id, mobile_no, nid, cust_name). Business rules: each customer has one customer ID, one registered mobile number and one NID, none shared with another customer; names can repeat.
- Candidate keys: {customer_id}, {mobile_no}, {nid}.
- {customer_id, cust_name} is a super key but not a candidate key (cust_name is extra); {cust_name} alone is not a key.
- Primary key chosen: customer_id; mobile_no and nid are declared
UNIQUE NOT NULL.
2. Foreign key
A foreign key is a column (or set of columns) in a child table whose values must match an existing primary-key or UNIQUE-key value in the parent table (or be NULL, if the column allows it). It links the tables and enforces referential integrity.
CREATE TABLE customer (
customer_id INT NOT NULL PRIMARY KEY,
mobile_no VARCHAR(14) NOT NULL UNIQUE,
nid VARCHAR(17) NOT NULL UNIQUE,
cust_name VARCHAR(40) NOT NULL
);
CREATE TABLE orders (
order_no INT NOT NULL PRIMARY KEY,
customer_id INT NOT NULL REFERENCES customer (customer_id), -- foreign key
order_date DATE NOT NULL,
amount DECIMAL(10,2) NOT NULL
);
With rows for customers 1001–1006 and orders 9001 (1002), 9002 (1002), 9003 (1004): an order for customer 1099 is rejected because no such customer exists, and a new customer with an existing mobile_no or nid is rejected by the UNIQUE constraints. Customer 1002 has two orders, so the foreign key value repeats.
3. Horizontal scaling (scale out)
Horizontal scaling increases capacity by adding more servers (nodes) and spreading the load across them, instead of making one server bigger (vertical scaling, scale up: more CPU, RAM, faster disk).
For a database it is done by:
- Replication: copies of the data on several servers; reads are spread over the replicas.
- Sharding (horizontal partitioning across servers): rows are split by a shard key, so each server stores only part of the table.
Example rule: shard = customer_id mod 3.
SELECT customer_id, cust_name, customer_id % 3 AS shard_no
FROM customer
ORDER BY customer_id;
| customer_id | cust_name | shard_no |
|---|---|---|
| 1001 | Ayesha | 2 |
| 1002 | Rakib | 0 |
| 1003 | Mitu | 1 |
| 1004 | Sajid | 2 |
| 1005 | Nabila | 0 |
| 1006 | Imran | 1 |
Each shard holds 2 customers. Orders are stored on the same shard as their customer (orders 9001 and 9002 on shard 0, order 9003 on shard 2), so the customer–orders join stays on one server; a foreign key across two servers cannot be enforced by one DBMS. % works in SQLite, MySQL, PostgreSQL and SQL Server; Oracle uses MOD(customer_id, 3) (MySQL and PostgreSQL accept MOD too).
graph TD
APP["Application"] --> R["Shard router: customer_id mod 3"]
R --> S0[("Shard 0: 1002, 1005")]
R --> S1[("Shard 1: 1003, 1006")]
R --> S2[("Shard 2: 1001, 1004")]
| Basis | Vertical scaling | Horizontal scaling |
|---|---|---|
| How | Bigger single server | More servers |
| Limit | Hardware ceiling | Add nodes as needed |
| Failure | Single point of failure | One node can fail while others serve |
| Complexity | Low, no application change | Needs replication/sharding, cross-shard queries are harder |
Exam tip: define each term in one line, give a small table example for the two keys, and draw the scale-out picture with a load balancer or shard router.
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
4 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৪টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 6 syllabus chapters; Object-Oriented Programming, Keys & Relational Model and Cloud Computing lead, with 1 each. Object-Oriented Programming is asked in 88 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Object-Oriented Programming Programming · 88 other papers, 2015–20261
- Keys & Relational Model Database · 42 other papers, 2016–20251
- Cloud Computing Cloud & Emerging Tech · 39 other papers, 2015–20261
- File Systems & I/O Operating Systems · 38 other papers, 2017–20261
- APIs & Architecture Web Technology · 18 other papers, 2016–20261
- Virtualization Cloud & Emerging Tech · 12 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 Agrani Bank Senior Officer (IT) exam (2017)?
- 6 written questions.
- Which subjects were asked most in the Agrani Bank Senior Officer (IT) exam (2017)?
- Cloud & Emerging Tech (2), Database (1) and Operating Systems (1), out of 6 questions.
- When was the Agrani Bank Senior Officer (IT) exam held?
- In 2017. The exact day isn't in our records.
- Where can I find the Agrani Bank Senior Officer (IT) exam (2017) question solution?
- On this page: 2 of the 6 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