Combined 3 Bank Assistant Programmer MCQ Test: 2018প্রশ্ন ও সমাধান
- Set by
- Combined Bank
- Post
- Assistant Programmer
- Exam date
- 2018
- Questions
- 35 (35 MCQ, 0 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
- Programming · প্রোগ্রামিং 7
- Data Structures · ডেটা স্ট্রাকচার 5
- Database · ডেটাবেজ 5
- Mathematics · গণিত 5
- Operating Systems · অপারেটিং সিস্টেম 5
- Algorithms · অ্যালগরিদম 4
- Digital Logic · ডিজিটাল লজিক 2
- Computer Architecture · কম্পিউটার আর্কিটেকচার 1
- Networking · নেটওয়ার্কিং 1
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
The time complexity of binary search is -----
- a)constant
- b)quadratic
- c)exponent
- d)logarithmic
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
The Ex-OR of this string 01010101 with 11111111 is____
- a)10101010
- b)00110100
- c)01010101
- d)10101001
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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 answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Quicksort can be categorized as:
- a)Brute force technique
- b)Divide and conquer
- c)Greedy algorithm
- d)Dynamic programming
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
CPU fetches the instruction from memory according to value of-
- a)Program counter
- b)status register
- c)instruction register
- d)program status word
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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 answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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)
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
CREATE TABLE employee (name VARCHAR, id INTEGER)
What type of statement is this?
- a)DML
- b)DDL
- c)View
- d)Integrity constraint
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
The data structure required to check whether an expression contains balanced parentheses is-
- a)Stack
- b)Queue
- c)Array
- d)Tree
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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 answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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;
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following sends data packets over an unprotected system?
- a)OSI
- b)NAT
- c)TCP
- d)UDP
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
The main program in an operating system is called:
- a)kernel
- b)file manager
- c)Directory
- d)NOS
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
In the ___ normal form, a composite attribute is converted to individual attributes.
- a)First
- b)Second
- c)Third
- d)Fourth
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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];
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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 answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
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)
Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers · Bank IT jobs guide