Skip to content
Past paper

Bangladesh Bank Assistant programmer Preliminary Exam: 2016প্রশ্ন ও সমাধান

Set by
Bangladesh Bank
Post
Assistant Programmer
Exam date
2016
Questions
15 (15 MCQ, 0 written)
Exam guide
Bank IT jobs · ব্যাংকের আইটি চাকরি
  • Data Structures · ডেটা স্ট্রাকচার 4
  • Web Technology · ওয়েব টেকনোলজি 4
  • Networking · নেটওয়ার্কিং 3
  • Programming · প্রোগ্রামিং 2
  • Algorithms · অ্যালগরিদম 1
  • Database · ডেটাবেজ 1
Question 1Data Structures

Which is correct for stack?

  • a)FIFO
  • b)LIFO
  • c)Both A, B
  • d)None

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 2Web Technology

Which is correct?

  • a)<body color= 'yellow'>
  • b)<body bgcolor= 'yellow'> (correct answer)
  • c)<body background> yellow<body>
  • d)<body background= 'yellow'>
Answer and explanation

Correct answer: (b) <body bgcolor='yellow'>

In legacy HTML, bgcolor is the <body> attribute that sets the page's background colour; the HTML standard tells browsers to treat it as the CSS background-color property. So <body bgcolor='yellow'> gives the page a yellow background.

Why the other options are wrong

  • (a) <body color='yellow'>: <body> has no color attribute (the old text-colour attribute was text), so nothing changes.
  • (c) <body background> yellow<body>: malformed: background has no value, the word yellow is just page text, and a second <body> appears instead of </body>.
  • (d) <body background='yellow'>: background expects the URL of an image, which becomes the CSS background-image; the browser would look for an image file named "yellow", not use the colour.

Exam note: The printed paper has 'yello' in options (a) and (b); the published key is (b). Read literally, yello is not a colour name: the legacy colour parser turns every non-hex letter into 0, so it becomes #0e0000 (almost black). The intended value is clearly yellow. Also, bgcolor and background on <body> are obsolete in current HTML; today write body { background-color: yellow; } in CSS.

Tip: bgcolor = background colour; background = background image.

Sources: HTML Standard: 15 Rendering; HTML Standard: 16 Obsolete features; HTML Standard: 2.3 Common microsyntaxes (parsing a legacy color value)

Question 3Web Technology

Which is correct to open new window/tab of browser?

  • a)<a href=http://www.example.com target= "_blank"> new window/tab</a>
  • b)<a href=http://www.example.com target= "blank"> new window/tab</a>
  • c)<a href=http://www.example.com target= "_blank"new window"> new window</a>
  • d)None

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 4Web Technology

Which is the correct variable declaration in JavaScript?

  • a)var a= {'a', 'b', 'c'};
  • b)var a= {'a' 'b' 'c'}
  • c)var a= {"a" "b" "c"}
  • d)None

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 5Networking

Which is not the work of the Data link layer?

  • a)Error control
  • b)Adding MAC address
  • c)Cabling
  • d)None

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 6Web Technology

Which is correct for concatenation in PHP?

  • a)$add = $add+1
  • b)$add = $add +1
  • c)$add = $add + $add
  • d)$add .= 1;

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 7Algorithms

Which is the slowest algorithm?

  • a)Bubble Sort
  • b)Quick sort
  • c)Heap sort
  • d)None

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 8Data Structures

Find the correctly arranged data after the stack operations push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop.

  • a)2 2 1 1 2
  • b)2 2 1 2 1
  • c)2 2 2 2 1
  • d)2 2 2 1 2

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 9Data Structures

Stack operations are—

  • a)delete, insertion
  • b)insertion, delete
  • c)push, pop
  • d)pop, push

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 10Networking

Whole network will break if a node is defective in which network topology?

  • a)Star
  • b)Bus
  • c)Mesh
  • d)Ring

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 11Networking

Server machine is connected to—

  • a)Network
  • b)Client
  • c)Supercomputer
  • d)Host

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 12Programming

Which are the keywords of structured programming?

  • a)Keywords
  • b)Constant
  • c)volatile
  • d)Above all

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 13Database

Repeated data exist at—

  • a)unnormalized
  • b)1NF
  • c)2NF
  • d)3NF

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 14Programming

Which function converts the value 9.87 to 10?

  • a)floor()
  • b)ceil()
  • c)both A & B
  • d)None

Sign up free to see the answer and explanation · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন

Question 15Data Structures

Which is not linear?

  • a)Linked list
  • b)array
  • c)graph (correct answer)
  • d)None
Answer and explanation

Correct answer: (c) graph

A graph is non-linear: a vertex can be joined by edges to many other vertices, so the elements do not lie in one sequence and there is no single "next" element.

Why the other options are wrong

  • (a) Linked list: each node points to the next one, forming one chain; linear.
  • (b) array: elements are stored one after another by index; linear.
  • (d) None: wrong, because the graph is not linear.

Tip: Linear = array, linked list, stack, queue. Non-linear = tree, graph.

Source: Lecture Plan: Data Structures (CSC 13102), IIT (ISM) Dhanbad

Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers · Bank IT jobs guide