Bangladesh Bank — Assistant Programmer — Exam: 03.02.2023 (BIBM)প্রশ্ন ও সমাধান
- Set by
- Bangladesh Bank
- Post
- Assistant Programmer
- Exam date
- 3 Feb 2023
- Conducted by
- BIBM
- Questions
- 39 (25 MCQ, 14 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
- Programming · প্রোগ্রামিং 9
- Data Structures · ডেটা স্ট্রাকচার 6
- Mathematics · গণিত 5
- Algorithms · অ্যালগরিদম 4
- Networking · নেটওয়ার্কিং 4
- Cyber Security · সাইবার নিরাপত্তা 2
- General Knowledge · সাধারণ জ্ঞান 2
- Software Engineering · সফটওয়্যার ইঞ্জিনিয়ারিং 2
- Bangla · বাংলা 1
- Database · ডেটাবেজ 1
- English · ইংরেজি 1
- General ICT · সাধারণ আইসিটি 1
- Operating Systems · অপারেটিং সিস্টেম 1
The _____ system may manage a high degree of interaction between processes and is very useful for high speed and real-time processing.
- a)strongly coupled and loosely cohesive
- b)loosely coupled and strongly cohesive
- c)loosely coupled and loosely cohesive
- d)distributed and strongly cohesive
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
The time taken by NP-class sorting algorithm is-
- a)O (1)
- b)O (log n)
- c)O(n²)
- d)O(n)
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the complexity of Merge sort?
- a)O(n² log n)
- b)O(n log n)
- c)O(n²)
- d)O(n)
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following is not the required condition for a binary search algorithm?
- a)The list must be sorted
- b)There should be direct access to the middle element in any sub list
- c)There must be a mechanism to delete and/or insert elements in the list.
- d)Number values should only be present
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
How many addresses are there in 200.10.10.10/20?
- a)4096
- b)1024
- c)2048
- d)1022
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following belongs to the greedy method?
- a)Minimum & Maximum problem
- b)Knapsack problem
- c)Selection problem
- d)Merge sort
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which is a suitable subnet mask for 200 hosts?
- a)255.255.0.200
- b)255.255.255.0
- c)255.0.0.0
- d)255.255.200.0
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following is a non linear data structure?
- a)Array
- b)Graph (correct answer)
- c)Queue
- d)Linked list
Answer and explanation
Correct answer: (b) Graph
In a non-linear data structure an element can be connected to several others, so the elements do not form a single line. A graph is the clearest case: a vertex can have edges to any number of other vertices, and there is no single "next" element. Trees are the other standard non-linear structure.
Why the other options are wrong
- (a) Array: elements sit one after another by index, a single sequence, so it is linear.
- (c) Queue: elements are kept in arrival order (FIFO), one behind another, so it is linear.
- (d) Linked list: each node points to one next node, forming a chain, so it is linear.
Tip: Linear = array, stack, queue, linked list. Non-linear = tree, graph.
Source: Lecture Plan: Data Structures (CSC 13102), IIT (ISM) Dhanbad
Which data structure allows insertion and deletion of elements from both ends?
- a)Deque
- b)Queue
- c)Stack
- d)Linked list
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Determine Output:
void main() {
int i=i++, j=j++, k=k++;
printf("%d %d %d", i, j, k);
}
- a)1 1 1
- b)0 0 0
- c)garbage values
- d)Error
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Design pattern for hierarchical structure is _____
- a)Structure chart
- b)DFD
- c)ERD
- d)UML
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
In a complete k-ary, every internal node has exactly k children. The number of leaves in such a tree with n internal nodes is-
- a)(n-1)k+1
- b)nk
- c)n(k-1)
- d)n(k-1)+1
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
World environment day is celebrated on _____ of every year.
- a)5th June
- b)6th June
- c)2nd June
- d)1st June
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Encapsulating IPv4 in IPv6 is known as _____.
- a)Tunneling (correct answer)
- b)hashing
- c)NAT
- d)Traversing
Answer and explanation
Correct answer: (a) Tunneling
Tunneling means wrapping a whole packet of one protocol inside a packet of another, so it can cross a network that speaks only the outer protocol. The entry point adds the outer header (encapsulation), and the exit point removes it (decapsulation). It works in both directions: IPv6 packets are tunnelled over IPv4 networks (configured tunnels, RFC 4213), and IPv4 packets are tunnelled over IPv6-only networks, as in Dual-Stack Lite, which combines IPv4-in-IPv6 tunnels with NAT.
Why the other options are wrong
- (b) hashing: Computes a fixed-length digest of data for integrity or lookup; it does not carry packets.
- (c) NAT: Rewrites addresses in the existing header instead of wrapping the packet; even NAT64 translates between IPv6 and IPv4 headers, which is translation, not encapsulation.
- (d) Traversing: A general word (as in "NAT traversal"), not the name of an IPv4/IPv6 transition mechanism.
Tip: The three IPv4–IPv6 transition approaches: dual stack, tunneling (encapsulation) and translation (NAT64).
Sources: RFC 4213: Basic Transition Mechanisms for IPv6 Hosts and Routers; RFC 6333: Dual-Stack Lite Broadband Deployments Following IPv4 Exhaustion
Determine Output:
void main(){
struct xx {
int x=3;
char name[] = "hello";
};
struct xx *s = malloc(sizeof(struct xx));
printf("%d", s->x);
printf("%s", s->name);
}
- a)3 hello
- b)Compiler Error
- c)Linking error
- d)None of these
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?
- a)arr[6]
- b)arr[7]
- c)arr{6}
- d)arr{7}
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the result of compiling and running the following code?
public class Test{
public static void main(String[] args){
int[] a = new int[0];
System.out.print(a.length);
}
}
- a)0
- b)Compilation error, arrays cannot be initialized to zero size
- c)None of the above
- d)Compilation error, it is length () not length
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Table employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE. The SQL statement:
SELECT COUNT (*) FROM employee
WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
Prints:
- a)10
- b)9
- c)5
- d)0
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
If the radius is increased by 100% then by how much will the area of circle be increased?
- a)100
- b)200
- c)300
- d)400
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
When was International Mother Language Day Declaration by UNESCO?
- a)November, 1999
- b)February, 2000
- c)February, 1999
- d)November, 2000
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Access time of the symbol table will be logarithmic if it is implemented by-
- a)Linear list
- b)Search tree
- c)Hash table
- d)Self-organizing list
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which one of the following algorithm design techniques is used in finding all pairs of shortest distances in a graph?
- a)Dynamic programming
- b)Backtracking
- c)Greedy
- d)Divide and Conquer
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Assume that the size of an integer is 4 bytes, predict the output of the following program.
#include <stdio.h>
int main() {
int i = 12;
int j = sizeof(i++);
printf("%d %d", i, j);
return 0;
}
- a)12 4
- b)13 4
- c)Compiler Error
- d)0 4
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following operators cannot be overloaded in C/C++?
- a)Bitwise right shift assignment
- b)Address of
- c)Indirection
- d)Structure reference (correct answer)
Answer and explanation
Correct answer: (d) Structure reference
"Structure reference" is the name of the member-access (dot) operator a.b, which selects member b of object a. C++ does not allow . to be overloaded; the other operators that cannot be overloaded are :: (scope resolution), .* (member access through a pointer to member) and ?: (conditional). Note that C has no operator overloading at all, so the question is really about C++.
Do not confuse it with "structure dereference" a->b, which can be overloaded (smart pointers do it).
Why the other options are wrong
- (a) Bitwise right shift assignment:
>>=, like every compound-assignment operator, can be overloaded, e.g.T& operator>>=(int n);. - (b) Address of: Unary
&can be overloaded, which is whystd::addressofexists to get an object's real address. - (c) Indirection: Unary
*is routinely overloaded by iterators and smart pointers, e.g.T& operator*();.
Tip: The ones you can never overload: :: . .* ?:.
Sources: Operator overloading - cppreference.com; Operators in C and C++ - Wikipedia
What is the output of the following code?
print 9//2
- a)4.5
- b)4.0
- c)4
- d)Error
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Describe a man-in the middle attack on the Diffie-Hellman key exchange protocol in which the adversary generates two public key pairs for the attack.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Preserving confidentiality integrity and availability of data is a restatement of the concern over falsification, interception, masquerade and denial of service. Explain how the first three concepts relate to the last four.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Given two integers A and B as input write a program to compute the least common multiple of A and B.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Consider the following code:
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Given an adjacency list representation for a complete binary tree on 7 vertices. Given an equivalent adjacency matrix representation. Assume that vertices are numbered from 1 to 7 as in a binary heap.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Draw A class diagram. A token-ring based local area network (LAN) is a network consisting of nodes in which network packets are sent around. Every node has a unique name within the network, and refers to its next node. Different kinds of nodes exist: Workstations are originators of messages; servers and printers are network nodes that can receive messages. Packets contain an originator a destination and content, and are sent around on a network. A LAN is a circular configuration of nodes.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
In order to prevent that the company decided to add end to end encryption techniques which layer of the OSI model is suitable to work in considering parameters like development time, software maintainability and development cost, Give reasons for your concepts.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Growing use to technology in the Financial Service Industry.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Translation English to Bangla.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Translation Bangla to English.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
If x is an Integer and x + 1/x = 17/4, then value of x − 1/x =?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
A basketball team has won 15 games and lost 9. If these games represent 16⅔% of the games to be played, then how many more games must the team win to average 75% for the season?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Students of a class are made to stand in rows. If students are extra in each row, then there would be 2 rows less. If four students are less in each row, then there would be 4 more rows. What is the number of students in the class?
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
In the given figure, PQT is a right triangle then what is the area of square QRST.
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