Combined Bank Assistant Programmer Exam 2018 — Question Solution | সমন্বিত ব্যাংক (ব্যাংকার্স সিলেকশন কমিটি) সহকারী প্রোগ্রামার নিয়োগ পরীক্ষা ২০১৮ — প্রশ্ন সমাধান
- Combined Bank
- Assistant Programmer
- 2018
- 35 questions
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Combined Bank Assistant Programmer exam was held in 2018. The paper had 35 multiple-choice questions. The subjects asked most were Programming (7), Data Structures (5) and Database (5). This page lists every question, with 5 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
- Assistant Programmer
- Exam date
- 2018
- Questions
- 35 (35 MCQ, 0 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
If A has 4 elements and B has 8 elements, then the minimum and maximum number of elements is A∪B respectively?
- a)4,8
- b)8, 12
- c)4, 12
- d)6, 12
If for a square matrix A, A²=A then such a matrix known as-
- a)Idempotent matrix
- b)Orthogonal Matrix
- c)Null Matrix
- d)Identity matrix
The time complexity of binary search is -----
- a)constant
- b)quadratic
- c)exponent
- d)logarithmic
How many bits string of length 4 bit possible such that they contain 2 ones and 2 zeros?
- a)4
- b)2
- c)5
- d)6
In the given AP series find the number of items 5,8,11,14,17,20, .......,50
- a)11
- b)13
- c)15
- d)16
For some base r, the digits which are allowed in its representation are?
- a)Digit from 1 to r
- b)Digit from 0 to r-1
- c)Digit from 1 to r-1
- d)Digit from 0 to r
What is long term scheduling?
- a)It selects which process has to be brought into the ready queue
- b)It selects which process has to be executed next and allocates CPU
- c)It selects which process to remove from memory by swapping
- d)It selects which process needs to be killed next
Domain of a function is-
- a)the maximal set of numbers for which function is defined
- b)the maximal set of numbers which a function can take value.
- c)it is the set of natural numbers for which a function is defined
- d)Any set of positive number
The Ex-OR of this string 01010101 with 11111111 is____
- a)10101010
- b)00110100
- c)01010101
- d)10101001
An algorithm which uses previous steps for calculation-
- a)Brute force
- b)divide and conquer
- c)Dynamic programming
- d)All the above
Sign up free to see the answers and explanations to questions 1–10 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the keywords can be used in a subclass to call the constructor of superclass?
- a)extent
- b)extends
- c)super
- d)this
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Multi-Threaded programs are-
- a)Less prone to deadlocks
- b)more prone to deadlocks (correct answer)
- c)not at all prone to deadlock
- d)always result in deadlocks
Answer and explanation
Correct answer: (b) more prone to deadlocks
A deadlock needs several agents that each hold a resource while waiting for one held by another, closing a cycle (mutual exclusion, hold-and-wait, no preemption, circular wait). A multi-threaded program creates exactly this setting: several threads run at once and acquire shared locks, often in different orders. If thread T1 holds lock A and waits for B while T2 holds B and waits for A, both stop forever. A single-threaded program has no second thread to complete such a cycle, so adding threads makes deadlock possible and more likely.
Why the other options are wrong
- (a) Less prone to deadlocks: more threads and more locks mean more chances of a circular wait, not fewer.
- (c) not at all prone to deadlock: the two-lock example above shows that multi-threaded code can deadlock.
- (d) always result in deadlocks: deadlock occurs only for certain lock orders and timings; well-designed code (for example, acquiring locks in one fixed global order) never deadlocks.
Exam note: Options (a) and (d) are repaired for grammar only ("Lesser" → "Less", "results" → "result").
Tip: Threads + shared locks ⇒ deadlock becomes possible; a fixed lock order breaks circular wait.
Sources: Deadlock — CS 3130, University of Virginia; Managed threading best practices — Microsoft Learn
The _______ clause is used to list the attributes desired in the result of a query.
- a)Where
- b)Select
- c)From
- d)Distinct
Quicksort can be categorized as:
- a)Brute force technique
- b)Divide and conquer
- c)Greedy algorithm
- d)Dynamic programming
When there is a large logical address space, the best way of paging would be ________
- a)Not to page
- b)a two-level paging algorithm
- c)not all prone to deadlock
- d)all of the above
CPU fetches the instruction from memory according to value of-
- a)Program counter
- b)status register
- c)instruction register
- d)program status word
What is mounting of a file system?
- a)creating of a file system
- b)deleting a file system
- c)attaching a portion of the file system into a directory structure
- d)removing portion of the file system into a directory structure
Sign up free to see the answers and explanations to questions 13–17 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
A subset of a super key is a candidate key under what condition?
- a)No proper subset is a super key (correct answer)
- b)All subsets are super keys
- c)Subset is a super key
- d)Each subset is a super key
Answer and explanation
Correct answer: (a) No proper subset is a super key
A super key is any set of attributes whose combined values never repeat across rows. A candidate key is a minimal super key: removing any attribute destroys uniqueness. Put another way, a super key K is a candidate key exactly when no proper subset of K is itself a super key.
Example: in course(crn, course_id, section, instructor), {course_id, section, instructor} is a super key but not a candidate key, because its proper subset {course_id, section} is still unique. {course_id, section} is a candidate key, because neither {course_id} nor {section} alone is unique.
Why the other options are wrong
- (b) All subsets are super keys: Single attributes such as {section} repeat, so they are not super keys. And if smaller subsets were super keys, the set would contain redundant attributes and would not be minimal.
- (c) Subset is a super key: If a proper subset is already a super key, the larger set has a redundant attribute, so it is not a candidate key. This is the opposite of the condition.
- (d) Each subset is a super key: Same idea as (b) in other words; it describes redundancy, not minimality.
Tip: Candidate key = super key + minimality (drop any attribute and uniqueness is lost).
Source: CSCI 403: Databases 2 - The Relational Model (Colorado School of Mines)
What is an example of iteration in C?
- a)for
- b)while
- c)do-while
- d)all of the above (correct answer)
Answer and explanation
Correct answer: (d) all of the above
Iteration means executing a statement repeatedly while a condition holds. C has exactly three iteration (loop) statements, and every one of them is listed:
for (init; condition; update): usually used when the number of passes is known; the condition is tested before each pass.while (condition): tests before each pass, so it may run zero times.do … while (condition);: tests after each pass, so it runs at least once.
Why the other options are wrong
- (a) for: A correct example of iteration, but choosing it alone leaves out while and do-while.
- (b) while: Also a loop statement, but not the only one offered.
- (c) do-while: Also a loop statement; picking it alone ignores the other two.
Because all three are iteration statements, the complete answer is (d).
Tip: C's loops are for, while and do-while; its selection statements are if, if-else and switch.
Source: Statements - cppreference.com
What is the time complexity to count the number of elements in the linked list?
- a)O(1)
- b)O(n)
- c)O(log n)
- d)O(n log n)
CREATE TABLE employee (name VARCHAR, id INTEGER)
What type of statement is this?
- a)DML
- b)DDL
- c)View
- d)Integrity constraint
The data structure required to check whether an expression contains balanced parentheses is-
- a)Stack
- b)Queue
- c)Array
- d)Tree
In SQL, aggregate functions can be used in the select list or the _______ clause of a select statement or subquery. They cannot be used in a ______ clause.
- a)Where, having
- b)Having, where
- c)Group by, Having
- d)Group by, Where
Sign up free to see the answers and explanations to questions 20–23 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following is false about a binary search tree?
- a)The left child is always less than its parent
- b)The right child is always greater than its parent
- c)The left and right subtrees should also be binary search trees
- d)Inorder sequence gives decreasing order of elements (correct answer)
Answer and explanation
Correct answer: (d) Inorder sequence gives decreasing order of elements
The question asks for the FALSE statement. An inorder traversal (left subtree → node → right subtree) of a binary search tree visits the keys in increasing order, not decreasing. Example: inserting 50, 30, 70, 20, 40, 60, 80 and traversing inorder gives 20, 30, 40, 50, 60, 70, 80. (A reverse inorder, right → node → left, would give decreasing order.)
Why the other options are wrong
- (a) The left child is always less than its parent: true; every key in a node's left subtree is smaller than the node's key, so the left child certainly is.
- (b) The right child is always greater than its parent: true; every key in the right subtree is larger than the node's key.
- (c) The left and right subtrees should also be binary search trees: true; the BST property holds recursively at every node.
Tip: BST + inorder = sorted ascending; that is how tree sort works.
Source: CMSC 420 Lecture 4: Binary Search Trees (University of Maryland)
Which of the following is a valid declaration of an object of class Box?
- a)Box obj = new Box();
- b)Box obj = new Box;
- c)obj = new Box();
- d)new Box obj;
What is the process of defining two or more methods within the same class that have the same name but different parameter declarations?
- a)Method overriding
- b)Method overloading
- c)Method hiding
- d)Method duplicating
Which of the following sends data packets over an unprotected system?
- a)OSI
- b)NAT
- c)TCP
- d)UDP
The main program in an operating system is called:
- a)kernel
- b)file manager
- c)Directory
- d)NOS
In the ___ normal form, a composite attribute is converted to individual attributes.
- a)First
- b)Second
- c)Third
- d)Fourth
Which of the following formats is a correct format for the declaration of a function?
- a)return-type function-name (argument type);
- b)return-type function-name (argument type) {}
- c)return-type (argument type) function-name;
- d)return-type {} function-name
What are the final values of a and c in the following C statement?
(initialize value a=2, c=1) c=c? c=2:a=0;
- a)a=0, c=0
- b)a=2, c=2
- c)Compile error (lvalue required)
- d)a=1, c=2
Which of the following doesn't require an '&' for the input in scanf()?
- a)char name[10];
- b)int name[10];
- c)float name[10];
- d)double name[10];
A graph having an edge from each vertex to every other vertex is called:
- a)Tightly connected
- b)Strongly connected
- c)Weakly connected
- d)Loosely connected
Pushing an element into a stack already having five elements and stack size of 5 then stack becomes-
- a)Overflow
- b)Crash
- c)Underflow
- d)User flow
Sign up free to see the answers and explanations to questions 25–34 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
When is linear search used?
- a)When the list has only a few elements.
- b)When performing a single search in an unordered list
- c)Used all the time
- d)When the list has only a few elements and when performing a single search in an unordered list (correct answer)
Answer and explanation
Correct answer: (d) When the list has only a few elements and when performing a single search in an unordered list
Linear (sequential) search checks the items one by one, so it needs no ordering and costs O(n) comparisons (about n/2 on average when the item is present). Faster methods such as binary search need a sorted list.
- If the list is small, n comparisons are already cheap, so extra machinery is not worth it.
- If you search an unordered list only once, sorting it first costs O(n log n), more than the single O(n) scan it would replace.
Both situations are valid, and option (d) states both.
Why the other options are wrong
- (a) When the list has only a few elements: true, but only half of the answer; (d) is more complete.
- (b) When performing a single search in an unordered list: also true, but incomplete for the same reason.
- (c) Used all the time: for large sorted lists or repeated searches, binary search (O(log n)) or hashing is far faster.
Tip: Small or unsorted data with few lookups → linear search; large sorted data with many lookups → binary search.
Source: linear search (NIST Dictionary of Algorithms and Data Structures); binary search (NIST Dictionary of Algorithms and Data Structures)
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
30 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৩০টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 24 syllabus chapters; Language Basics & Syntax, ER Model & Design and Algebra lead, with 3 each. Language Basics & Syntax is asked in 122 other papers too (2015–2026). 2 of its MCQs appear word for word in other papers in our bank (2023–2026). No earlier paper asks any of them.
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–20263
- ER Model & Design Database · 101 other papers, 2015–20263
- Algebra Mathematics · 31 other papers, 2015–20263
- SQL & Queries Database · 93 other papers, 2015–20262
- Control Flow & Loops Programming · 76 other papers, 2015–20262
- Stacks & Queues Data Structures · 43 other papers, 2016–20262
Its MCQs in other exams · অন্য পরীক্ষায়
Papers that asked the same MCQ, word for word, and how many they share
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 Assistant Programmer exam (2018)?
- 35 multiple-choice questions.
- Which subjects were asked most in the Combined Bank Assistant Programmer exam (2018)?
- Programming (7), Data Structures (5) and Database (5), out of 35 questions.
- When was the Combined Bank Assistant Programmer exam held?
- In 2018. The exact day isn't in our records.
- Where can I find the Combined Bank Assistant Programmer exam (2018) question solution?
- On this page: 5 of the 35 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