Sonali & Janata Bank Officer (IT/ICT) Exam 2019 — Question Solution | সমন্বিত ২ ব্যাংক (সোনালী ও জনতা) অফিসার (আইটি/আইসিটি) নিয়োগ পরীক্ষা ২০১৯ — প্রশ্ন সমাধান
- Sonali & Janata Bank
- Officer (IT/ICT)
- 2019
- 40 questions
Page updated
ARBS Academy · itjobs.arbsacademy.com
About this exam paper · প্রশ্নপত্র পরিচিতি
The Sonali & Janata Bank Officer (IT/ICT) exam was held in 2019. The paper had 40 multiple-choice questions. The subjects asked most were Programming (15), Networking (7) and Algorithms (6). 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
- Sonali & Janata Bank
- Post
- Officer (IT/ICT)
- Exam date
- 2019
- Questions
- 40 (40 MCQ, 0 written)
- Exam guide
- Bank IT jobs · ব্যাংকের আইটি চাকরি
Let x be an integer which can take a value of 0 or 1. The statement if(x==0) x=1; else x=0; is equivalent to which of the following?
- a)x=1+x
- b)x=1-x
- c)x=x-1
- d)x=1%x
Suppose a C program has floating constant 1.414, what's the best way to convert it to a float data type?
- a)(float)1.414
- b)float (1.414)
- c)1.414f or 1.414F
- d)None of these
Consider the following variable declarations and definitions in C:
(i) int var_9=1 (ii) int 9_var=2 (iii) int _=3
Choose the correct statement w.r.t. the above variables.
- a)Both (i) and (ii) are valid
- b)Only (i) is valid
- c)Both (i) and (iii) are valid
- d)All of these
For a given integer, which of the following operators can be used to set and reset a particular bit respectively?
- a)| and &
- b)&& and ||
- c)& and |
- d)|| and &&
The maximum number of processes that can be in ready state in computer system with n CPU's is—
- a)n
- b)n²
- c)2n
- d)independent of n
Which of the following is not a stable sorting algorithm in its typical implementation?
- a)Selection Sort
- b)Quick Sort
- c)Merge sort
- d)Insertion Sort
You have to sort 1GB of data with only 100MB of available main memory. Which sorting technique will be more appropriate?
- a)Heap sort
- b)Insertion sort
- c)Quick sort
- d)Merge sort
Randomized quicksort is an extension of quicksort where the pivot is chosen randomly. What is the worst-case complexity of sorting n numbers using randomized quicksort?
- a)O(n)
- b)O(n²)
- c)O (n log n)
- d)O(n!)
Consider the following recursive function fun(x,y). What is the value of fun(4,3)?
int fun (int x, int y) {
if (x==0)
return y;
return fun(x-1, x+y);
}
- a)9
- b)10
- c)12
- d)13
The average number of key comparisons done in a successful sequential search in a list of length n is-
- a)log n
- b)(n+1)/2
- c)(n-1)/2
- d)n/2
Sign up free to see the answers and explanations to questions 1–10 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
In UNIX, processes that have finished execution but have not yet had their status collected are known as-
- a)Sleeping processes
- b)Stopped processes
- c)Zombie processes
- d)Orphan processes
Which of the following is not a standard synchronous communication protocol?
- a)PAS
- b)SDLC
- c)SLIP
- d)SMTP
Which of the following is the major part of the time taken when accessing data on the disk?
- a)Settle time
- b)Rotational delay
- c)Waiting time
- d)Seek time
In UNIX, the login prompt can be changed by changing the content of the file-
- a)gettydefs
- b)crontab
- c)inittab
- d)init
Which of the following UNIX commands allows scheduling a program to be executed at a specified time?
- a)nice
- b)cron
- c)date and time
- d)schedule
Which of the following programming language helps you to learn Android programming?
- a)C
- b)SQL
- c)Java
- d)Python
Which tool could be used for detecting vulnerability through SQL injection?
- a)Nmap
- b)Metasploit
- c)Bitdefender
- d)UML
Sign up free to see the answers and explanations to questions 11–17 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following data structures is non-linear type?
- a)Strings
- b)Lists
- c)Stacks
- d)None of these (correct answer)
Answer and explanation
Correct answer: (d) None of these
The question asks for a non-linear structure, where one element can be connected to several others (trees and graphs). Every structure offered here is linear:
- a string is a sequence of characters stored one after another (a character array);
- a list keeps its elements in a single sequence, each with at most one next element;
- a stack is a linear LIFO sequence where insertion and deletion happen at the top.
Since none of them is non-linear, the answer is "None of these".
Why the other options are wrong
- (a) Strings: linear; characters follow one another in a single sequence.
- (b) Lists: linear; each element has one predecessor and one successor (except the ends).
- (c) Stacks: linear; a stack is a restricted list that adds and removes only at one end.
Tip: If no tree or graph appears among the options, "None" is the answer to "which is non-linear?".
Source: Lecture Plan: Data Structures (CSC 13102), IIT (ISM) Dhanbad
Which is the standard protocol for network management features?
- a)FTP
- b)SNA
- c)SNMP
- d)SMTP
How many pairs of stations can simultaneously communicate on an Ethernet LAN?
- a)1
- b)2
- c)3
- d)Multiple
A path for carrying signals between a source and a destination is known as-
- a)Router
- b)Channel
- c)Link
- d)Block
In SQL, the ________ command is used to recompile a view.
- a)COMPILE VIEW
- b)DEFINE VIEW
- c)ALTER VIEW
- d)CREATE VIEW
Sign up free to see the answers and explanations to questions 19–22 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Which of the following process scheduling algorithm may lead to starvation?
- a)FIFO
- b)Round Robin
- c)Shortest Job Next (correct answer)
- d)None of these
Answer and explanation
Correct answer: (c) Shortest Job Next
Shortest Job Next (another name for Shortest Job First) always runs the waiting job with the shortest CPU burst; it is priority scheduling with priority = 1 / next CPU burst, so long jobs get the lowest priority. If short jobs keep arriving, a long job is passed over again and again and may never get the CPU. This indefinite postponement is starvation. The usual cure is aging: raising a job's priority the longer it waits.
Why the other options are wrong
- (a) FIFO: the same as FCFS; jobs are served strictly in arrival order, so each one is reached after the finite number of jobs ahead of it. Waits may be long, but there is no starvation.
- (b) Round Robin: every ready process gets a time quantum in turn, so with n ready processes and quantum q nobody waits more than (n − 1) × q for the next turn. No starvation.
- (d) None of these: wrong because SJN can starve long jobs.
Tip: Starvation-prone: SJF/SJN, SRTF, Priority. Starvation-free: FCFS/FIFO, Round Robin.
Source: Chapter 2: Process Scheduling (EE442 Operating Systems, METU)
Which of the following requires the most time in SDLC?
- a)Requirement Analysis
- b)Testing
- c)Deployment
- d)Design
Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
POP3 is a protocol for-
- a)Email Sending
- b)Email Composing
- c)Email Receiving (correct answer)
- d)Email Storing
Answer and explanation
Correct answer: (c) Email Receiving
POP3 (Post Office Protocol version 3) lets a mail client (for example on a PC or phone) connect to the mail server, usually on TCP port 110 (995 for POP3 over TLS), log in, and download the messages the server is holding in its mailbox (maildrop). By default the messages are then deleted from the server, so mail is read offline on the device. It is therefore a protocol for retrieving, i.e. receiving, e-mail.
Why the other options are wrong
- (a) Email Sending: Sending and relaying mail is done by SMTP; RFC 1939 explicitly leaves out how a client enters mail into the transport system.
- (b) Email Composing: Writing a message is done locally in the mail client (user agent); no network protocol is involved until the message is sent.
- (d) Email Storing: Mailbox storage is the mail server's job. POP3 only gives access to the stored maildrop and is not meant for extensive manipulation of mail on the server; that is IMAP's role.
Tip: SMTP pushes mail out; POP3 and IMAP pull mail in (POP3 downloads, IMAP keeps it synced on the server).
Which of the declarations is correct?
- a)int length; (correct answer)
- b)char int
- c)int long;
- d)float double;
Answer and explanation
Correct answer: (a) int length;
A C declaration has the form: type specifier(s), then at least one declarator (the variable name), then ;. int length; gives the type int and the identifier length, and length is not a keyword, so it compiles cleanly.
Why the other options are wrong
- (b) char int:
charandintare two different base types and cannot be combined; gcc reports "two or more data types in declaration specifiers". There is also no variable name. - (c) int long:
long int(in any order) is a valid type, but nothing is declared. The C rules forbid an empty declarator here; gcc warns "useless type name in empty declaration" and g++ gives the error "declaration does not declare anything". - (d) float double:
floatanddoubleare two base types; gcc reports "two or more data types in declaration specifiers", and no variable is named.
Tip: A declaration needs a type and a name that is not a keyword: type name;.
Source: Declarations - cppreference.com
Which server can you use to dynamically assign IP addresses to the PCs in a LAN?
- a)DHCP Server
- b)Web Server
- c)DNS Server
- d)FTP Server
Which of the following is the destructor of class Vehicle?
- a)*Vehicle()
- b)~Vehicle ()
- c)~Vehicle (int value)
- d)*Vehicle (int value)
An n*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 element of array v is
- a)0
- b)n-1
- c)n²-3n+2
- d)n²(n+1)/2
Sign up free to see the answers and explanations to questions 27–29 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What is the time complexity of Huffman coding?
- a)O(n)
- b)O(n log n) (correct answer)
- c)O(n (log n)^2)
- d)O(n^2)
Answer and explanation
Correct answer: (b) O(n log n)
Huffman coding keeps the trees in a min-priority queue (binary min-heap) keyed by frequency. With n symbols:
- Build the heap of n single-node trees: O(n).
- Repeat n − 1 times: extract-min twice, join the two trees, insert the new tree. Each heap operation costs O(log n).
- Total: O(n) + (n − 1) × 3 × O(log n) = O(n log n).
Example: 6 symbols with frequencies 5, 9, 12, 13, 16, 45 → 5 merges (5 + 9 = 14, 12 + 13 = 25, 14 + 16 = 30, 25 + 30 = 55, 45 + 55 = 100), i.e. 10 extract-min and 5 insert operations.
Why the other options are wrong
- (a) O(n): possible only when the frequencies arrive already sorted (then two plain FIFO queues replace the heap, because merged weights are produced in non-decreasing order); the standard algorithm on arbitrary input is not linear.
- (c) O(n (log n)^2): an overestimate; each of the n − 1 steps costs O(log n), not O((log n)²).
- (d) O(n^2): what you get if you find the two minima by scanning an unsorted list each time (n − 1 scans of O(n)); a heap avoids this.
Exam note: n is the number of distinct symbols and the standard heap-based algorithm is assumed.
Tip: Huffman = greedy + min-heap → O(n log n).
Source: Huffman coding — Dictionary of Algorithms and Data Structures (NIST)
Source: Greedy Algorithms, lecture slides, A. Carzaniga, Università della Svizzera italiana
The operator that cannot be overloaded is ______.
- a)++
- b)()
- c)~
- d)::
The maximum number of binary trees that can be formed with three unlabeled nodes is-
- a)1
- b)3
- c)5
- d)4
Which of the following TCP/IP addresses constitute the loopback address?
- a)1.1.1.1
- b)255.255.255.255
- c)127.0.0.0
- d)127.0.0.1
Find the output of the following Java code line: System.out.println(Math.floor(-7.4))
- a)-7
- b)-7.4
- c)-8
- d)-7.2
Which of the following functions converts a string into float in Python?
- a)int(x [, base])
- b)float(x)
- c)long(x [, base])
- d)str(x)
What is the output of the following code? print 9//2
- a)4
- b)4.0
- c)4.5
- d)Error
Which function overloads the ">>" operator?
- a)gt()
- b)more()
- c)ge()
- d)None of these
Which of the following operator functions cannot be global, i.e., must be a member function?
- a)Conversion operator
- b)new
- c)delete
- d)all of these
Which of the following is not an operator in Java?
- a)instanceof
- b)sizeof
- c)new
- d)All of these
Which of these is not a core data type?
- a)Lists
- b)Dictionary
- c)Class
- d)Tuples
Sign up free to see the answers and explanations to questions 31–40 · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Explanations © ARBS Academy
Keep going with a free account · ফ্রি অ্যাকাউন্টে যা যা করতে পারবেন
35 more answers from this paper open with a free account.
এই প্রশ্নপত্রের আরও ৩৫টি উত্তর, ধাপে ধাপে ব্যাখ্যাসহ, ফ্রি অ্যাকাউন্টে খুলবে।
Free account · 1 day of Premium free
Paper analysis · প্রশ্নপত্র বিশ্লেষণ
Its questions come from 21 syllabus chapters; the biggest is Language Basics & Syntax, in Programming, with 11 questions. Language Basics & Syntax is asked in 122 other papers too (2015–2026). 9 of its MCQs appear word for word in other papers in our bank (2016–2019). Every one of them had been asked in an earlier exam.
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–202611
- Protocols (TCP/UDP/HTTP/DNS) Networking · 90 other papers, 2012–20263
- Sorting Algorithms · 59 other papers, 2013–20263
- Processes & Threads Operating Systems · 55 other papers, 2011–20263
- File Systems & I/O Operating Systems · 38 other papers, 2017–20262
- IP Addressing & Subnetting Networking · 133 other papers, 2012–20261
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 Sonali & Janata Bank Officer (IT/ICT) exam (2019)?
- 40 multiple-choice questions.
- Which subjects were asked most in the Sonali & Janata Bank Officer (IT/ICT) exam (2019)?
- Programming (15), Networking (7) and Algorithms (6), out of 40 questions.
- When was the Sonali & Janata Bank Officer (IT/ICT) exam held?
- In 2019. The exact day isn't in our records.
- Where can I find the Sonali & Janata Bank Officer (IT/ICT) exam (2019) question solution?
- On this page: 5 of the 40 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