Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary question & solution
Questions from the Combined Bank Assistant Programmer (CSE) recruitment exam, March 2021 – Preliminary, shared by the candidates who sat it. The paper: 79 MCQs. So far 77 MCQs and 9 written questions have been shared. Topics include Coding, Algorithm, General Knowledge, Data Structure and English.
MCQ (77)
- Which of the following is correct to initialize arrays in C?
- What is the access methodology in array?
- What is the output for the following C code segment? int i; if(printf("0")) i = 5; else i = 3; printf("%d",i);
- In a shop, customers are provided the service as a first-come-first-served policy. But some special customers can be served at any time…
- Which of the following data structures is more suitable for graph representation in Floyd Warshall Algorithm?
- Which of the following is not a method of the Thread class?
- Which of the following statements is correct regarding abstract classes?
- The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is-
- In the following graph, determine the cost of the shortest path between node 1 and node 4. (Diagram: a diamond-shaped graph with 4…
- Suppose you are searching student data using student number as the key. Which of the following arrangement of the student data is suited…
- What is the output of this Java program? class Test { int i; } class Main { public static void main(String args[]) { Test t…
- Converting a primitive type data into its corresponding wrapper class object instance is called-
- The combination of an IP address and a port number is known as ___.
- An n x n array v is defined as follows: v[i,j]=i-j for all i, j, 1<=i <=n, 1<=j <=n The sum of the elements of the array v is-
- To implement Dijkstra's shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is-
- Consider the function fun (x, y) below. What is the value of fun (4, 3)? int fun(int x, int y) { if (x == 0) return y; return fun(x - 1, x…
- What does the following function do? int fun(int x, int y) { if (y == 0) return 0; return (x + fun(x, y-1)); }
- Which of the following is not an in-place algorithm?
- Which of the following statements is/are TRUE for an undirected graph? P: Number of odd degree vertices is even Q: Sum of degrees of all…
- What is the full form of SMTP?
- An inversion in an array A[] is a pair (A[i], A[j]) such that A[i]>A[j] and i<j. An array will have maximum number of inversions if it is-
- Which of the following data structures can be used both as Stack and Queue?
- Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE. The SQL statement SELECT COUNT(*) FROM Employee WHERE…
- Which of the following is the regular expression to represent all the binary strings with odd number of 1's?
- What is the correct output of the following C program statements? int array[]={6, 7, 8, 9, 0, 1, 2, 4, 5, 6}, *p=array+5…
- What does the following function do for a given Linked List with first node as head? void fun1(struct node* head) { if (head == NULL)…
- Suppose you want to insert n elements into an empty linked list while maintaining the sorted order. What is the worst-case time complexity?
- Which of the following operations is not O(1) for an array of sorted data? You may assume that array elements are distinct.
- Which protocol dynamically assigns IP addresses in a TCP/IP network?
- The Post-order traversal of a binary tree is 8, 9, 6, 7, 4, 5, 2, 3, 1, The In-order traversal of the same tree is 8, 6, 9, 4, 7, 2, 5, 1…
- Suppose you have an 8-bit binary number N. Which of the following operations does not change its lower 4 bits?
- The minimum number of comparisons required to determine if an integer appears more than n/2 times in a sorted array of n integers is-
- Which of the following is the appropriate set of test cases, (A, B) when the part of a program shown is tested by decision condition…
- Consider a virtual memory system where three pages are allocated for real memory. If the page replacement algorithm used is FIFO, how many…
- Consider an Entity-relationship from entity set E1 to entity set E2. If E1 and E2 participate totally in R and cardinality of E1 is…
- Suppose Y is an integer variable whose value is either 0 or 1. Which of the following is the equivalent of the statement if(Y==0) Y=1…
- I said "If I were you, I wouldn't go". The indirect speech should be___?
- Following table shows the delivery record of an online shop. Which of the SQL statements results in the largest value? Product ID Delivery…
- ___sun came out right after ___rain and there was___beautiful rainbow in ___sky.
- Please come in. Here 'in' is-
- 'Every now and then' means-
- The correct spelling is-
- Synonym of "Bargain" is-
- What is the Active voice of – "What she thinks was known to us"
- The famous quote "It matters not what someone is born but what they grow to be" was written in novel by the author-
- "Why do you always buy five loaves, no _____ and no _____?"
- He never thought what might come out of it, ___?
- 'কেতাদুরস্ত' বাগধারাটির অর্থ-
- নিচের কোন বিপরীত শব্দজোড় সঠিক নয়?
- 'দুহাতে দুই আদিম পাথর'- কার রচিত কাব্য গ্রন্থ?
- দ্বন্দ্ব সমাসে দ্বন্দ্ব শব্দের অর্থ হল-
- কোনটি ঘোষ মহাপ্রাণ ধ্বনি?
- 'মেটেকলসী'- শব্দবন্ধে 'মেটে' কোন প্রকার বিশেষণ?
- 'Agora' শব্দের বাংলা পরিভাষা-
- 'যা আঘাত পায়নি' বাক্যটির এককথায় প্রকাশ নিচের কোনটি?
- কোনটি মুক্তিযুদ্ধ ভিত্তিক উপন্যাস?
- নিচের কোন শব্দটি সন্ধিযোগে গঠিত?
- In which of the following choices, p must be greater than q?
- In a triangle the length of the sides are 5,9 and z. Which statement is always true?
- The ratio of two numbers is 3:4 and their L.C.M is 84, find the number-
- The selling price of an article is Tk 39. If its cost price is numerically equal to its profit percent, then the cost price is—
- A takes thrice as long to do a piece of work as B takes. A & B together can finish the work in 15 days. A alone can do it in—
- When 4 is added to one half of a number, the result is 14. What is the number?
- If a, b and c are not equal to 0 or 1 and if a^x = b, b^y=c, and c^z=a then xyz is-
- If 1/y = 3 1/2 then 1/(y+2) =?
- A man spends 75% of his income. His income increases by 20% & his expenditure increases by 15%. His savings are then increased by-
- A shopkeeper lost 7.5% by selling an article. If he had bought it at 10% less and sold it for TK 31 more, he would have gained 20%. Find…
- Black Monday is related to-
- Which of the following countries is the latest member of the United Nations?
- The mosque of Binot Bibi is located at-
- Which article of the constitution of Bangladesh establishes the fundamental right of education for all?
- In which sea would you find the Great Barrier Reef?
- Which country is called "Thunderbolt of Asia"?
- The total border district of Bangladesh is-
- Who has designed the logo of Mujib Year?
- Name of the bank established under Bangladesh Police Welfare Trust-
- 'Playing It My Way' is written by-
Written (9)
- Write a C/C++ program to check Balanced parentheses in an Expression.
- Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge u → v, vertex u…
- We are given an array of integers and a range, we need to find whether the subarray which falls in this range has values in the form of a…
- Given n jobs with starting times n[] and durations d[], print the maximum number of jobs that don't overlap with each other.
- Write a C/C++ Program that has a Class Account, Subclass Savings Account, Current Account etc with related hierarchy way.
- Write the definition of Inheritance, Polymorphism with coding example.
- Write SQL commands for the following tables. Employee (ename, street, city) Works (ename, cname, salary, joindate) Company (cname, city)…
- Draw the state diagram of a DFA over {0,1} that accepts binary strings in which the number of 0s is a multiple of 3. Also show the regular…
- Write a focus writing in English on 'Bhasan Char – A Safe Home for Rohingya Refugees'.