Combined Bank Senior Officer (IT/ICT) Exam 2019 — Question Solution | সমন্বিত ব্যাংক (ব্যাংকার্স সিলেকশন কমিটি) সিনিয়র অফিসার (আইটি/আইসিটি) নিয়োগ পরীক্ষা ২০১৯ — প্রশ্ন সমাধান
- Combined Bank
- Senior Officer (IT/ICT)
- 2019
- 7 questions · 0 MCQ, 7 written
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Combined Bank Senior Officer (IT/ICT) exam was held in 2019, conducted by DU. The paper had 7 written questions. The subjects asked most were Programming (2), Algorithms (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
- Combined Bank
- Post
- Senior Officer (IT/ICT)
- Exam date
- 2019
- Conducted by
- DU
- Questions
- 7 (0 MCQ, 7 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Describe the seven basic logic gates and show their truth table.
Model answer
Logic gate: an electronic circuit that performs one Boolean operation on one or more binary inputs (0/1) and produces a single binary output. The seven basic gates are AND, OR, NOT, NAND, NOR, XOR and XNOR.
graph TD
G["Seven basic logic gates"] --> F["Fundamental: AND, OR, NOT"]
G --> U["Universal: NAND, NOR"]
G --> E["Exclusive: XOR, XNOR"]
Description of each gate
| Gate | Expression | Output is 1 when | Typical TTL IC |
|---|---|---|---|
| AND | Y = A·B | all inputs are 1 | 7408 |
| OR | Y = A + B | at least one input is 1 | 7432 |
| NOT (inverter) | Y = A′ | the single input is 0 | 7404 |
| NAND | Y = (A·B)′ | at least one input is 0 (AND followed by NOT) | 7400 |
| NOR | Y = (A + B)′ | all inputs are 0 (OR followed by NOT) | 7402 |
| XOR | Y = A ⊕ B = AB′ + A′B | the inputs differ | 7486 |
| XNOR | Y = (A ⊕ B)′ = AB + A′B′ | the inputs are equal | 74266 |
- AND, OR, NOT are the fundamental gates; together they can build any Boolean function.
- NAND and NOR are universal gates: each one alone can build every other gate and therefore any digital circuit.
- XOR and XNOR compare inputs: XOR detects a difference, XNOR detects equality, so they are used in adders, comparators and parity circuits.
Truth tables
NOT gate:
| A | Y = A′ |
|---|---|
| 0 | 1 |
| 1 | 0 |
The six 2-input gates:
| A | B | AND | OR | NAND | NOR | XOR | XNOR |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 |
Each pair NAND/AND, NOR/OR and XNOR/XOR has exactly opposite columns.
With more than two inputs: AND gives 1 only if every input is 1, OR gives 1 if any input is 1, and XOR gives 1 when an odd number of inputs are 1 (for example, A = B = C = 1 gives A ⊕ B ⊕ C = 1), which makes it an odd-parity detector.
Exam tip: NAND = 0 only for all-1 inputs, NOR = 1 only for all-0 inputs; XOR = "different", XNOR = "same"; NAND and NOR are the universal gates.
Write a pseudocode that takes in one positive number only and returns the factors of that number.
Describe the OSI layers. Draw a diagram to show the hierarchy when the data is transmitted or received.
Describe four types of sorting algorithms with examples.
Show the output of the following program.
public class main {
public static void find_output(int n) {
int i, j;
for(i=1;i<=n;i++){
for (j=n; j>0; j--){
if(i==j){
System.out.print("*");
break;
}
else{
System.out.print ("*");
}
}
}
System.out.print("\n");
}
}
public static void main (String[] args){
find_output(10);
}
}
Sign up free to see the model answers to written questions 2–5 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Describe the ACID properties in a database. When does a deadlock occur and how do you prevent it, in a database?
Model answer
Part 1: ACID properties
A transaction is a group of operations that must act as one logical unit of work (for example, moving money from one account to another). ACID is the set of four guarantees a DBMS gives every transaction.
| Property | Meaning | How the DBMS ensures it |
|---|---|---|
| Atomicity | All operations happen, or none do. A half-done transfer is never left behind. | Undo (rollback) log; ROLLBACK cancels every change |
| Consistency | A transaction takes the database from one valid state to another; every constraint (PK, FK, CHECK) and business rule still holds afterwards. | Integrity constraints plus correctly written transaction logic |
| Isolation | Concurrent transactions do not see each other's uncommitted work; the result is as if they ran one after another (serializable). | Locking (two-phase locking) or multiversioning (MVCC), and isolation levels |
| Durability | Once COMMIT succeeds, the change survives a crash or power failure. |
Write-ahead (redo) log forced to disk at commit; backups |
Example: transfer Tk 3,000 from account A-101 (balance 5,000) to B-202 (balance 15,000).
BEGIN; -- SQL Server: BEGIN TRANSACTION; MySQL and standard SQL: START TRANSACTION;
UPDATE account SET balance = balance - 3000 WHERE acc_no = 'A-101';
UPDATE account SET balance = balance + 3000 WHERE acc_no = 'B-202';
COMMIT;
Result: A-101 = 2,000, B-202 = 18,000, and the total stays 20,000 (consistency). If you try to transfer 7,000 instead, the first UPDATE breaks CHECK (balance >= 0) and is rejected. In SQLite the transaction stays open after that error, so the program must send ROLLBACK; both balances then stay 5,000 and 15,000 (atomicity).
Part 2: Deadlock
When it occurs: a deadlock happens when two or more transactions each hold a lock and wait for a lock held by another one in the same group, so none of them can ever continue. All four Coffman conditions hold together: mutual exclusion, hold and wait, no preemption, and circular wait.
| Time | T1 (A-101 → B-202) | T2 (B-202 → A-101) |
|---|---|---|
| t1 | X-lock A-101, update it | |
| t2 | X-lock B-202, update it | |
| t3 | requests B-202 → waits for T2 | |
| t4 | requests A-101 → waits for T1 |
flowchart LR
T1["T1 holds A-101"] -->|"waits for B-202"| T2["T2 holds B-202"]
T2 -->|"waits for A-101"| T1
A cycle in this wait-for graph means a deadlock.
How to prevent it (break at least one condition):
- Lock ordering: every transaction locks resources in the same global order (for example, the lower account number first). With this rule T2 also asks for A-101 first, so no cycle can form.
- Lock everything at the start (conservative 2PL): a transaction gets all its locks before it begins, or it waits holding none. This removes hold and wait.
- Timestamp schemes (older = smaller timestamp):
- Wait-die: an older requester waits; a younger requester is rolled back ("dies") and restarts later with the same timestamp it had before.
- Wound-wait: an older requester rolls back ("wounds") the younger holder; a younger requester waits.
- No-wait or lock timeout: abort a transaction that cannot get a lock at once, or within a set time.
If it still happens (detection and recovery): the DBMS checks the wait-for graph, picks a victim (usually the cheapest to undo) and rolls it back; the victim is then restarted (retried). SQL Server, Oracle, MySQL InnoDB and PostgreSQL all detect deadlocks automatically and return an error to the victim: SQL Server, InnoDB and PostgreSQL roll back the victim's whole transaction, while Oracle rolls back only the statement that hit the deadlock. The application then retries. In practice, keep transactions short, access tables and rows in the same order, and index the search columns so fewer rows are locked.
Exam tip: Define each ACID property with a bank-transfer example. For deadlock, draw the wait-for cycle, name the four conditions, and keep prevention (ordering, wait-die and wound-wait) separate from detection and recovery (cycle check and victim rollback).
Write a paragraph on "Importance of Information Technology" in the economic development of Bangladesh.
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 7 syllabus chapters; Language Basics & Syntax, OSI & TCP/IP Models and Computer Fundamentals lead, with 1 each. Language Basics & Syntax is asked in 122 other papers too (2015–2026).
Its biggest topics · প্রধান টপিক
Questions in this paper, and how many of our other papers ask the topic
- Language Basics & Syntax Programming · 122 other papers, 2015–20261
- OSI & TCP/IP Models Networking · 112 other papers, 2012–20261
- Computer Fundamentals General ICT · 76 other papers, 2011–20261
- Control Flow & Loops Programming · 76 other papers, 2015–20261
- Sorting Algorithms · 59 other papers, 2013–20261
- Logic Gates Digital Logic · 45 other papers, 2011–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 Combined Bank Senior Officer (IT/ICT) exam (2019)?
- 7 written questions.
- Which subjects were asked most in the Combined Bank Senior Officer (IT/ICT) exam (2019)?
- Programming (2), Algorithms (1) and Database (1), out of 7 questions.
- When was the Combined Bank Senior Officer (IT/ICT) exam held?
- In 2019, conducted by DU. The exact day isn't in our records.
- Where can I find the Combined Bank Senior Officer (IT/ICT) exam (2019) 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