QUESTIONS
QUESTIONS
Consider an array on which bubble sort is used. The bubble sort would
compare the element A[x] to which of the following elements in a single iteration.
Correct Answer : A
Srujan writes a sorting algorithm. The algorithm takes different amount of time to sort two different lists
of equal size. What is the possible difference between the two lists?
(a) All numbers in one list are more than 100, while in the other are less than 100.
(b)The ordering of numbers with respect to magnitude in the two list has different properties.
(c)One list has all negative numbers, while the other has all positive numbers.
Correct Answer : B
In c++ how are protected members of a base class accessed in derived class when inherited privately
A. Privately
B. Publicly
C. Protectedly
D. Not Inherited
Correct Op: A
Based on the given passage find out which of the statement can be inferred from the passage
A recent communication noted that India's foreign minister told officials in UK. that New Delhi intends to
maintain and extend her open door policy to the West. The minister also said that lndia would continue
with her programme of political and economic changes despite a recent campaign against western ideas
and foreign aid.
1. Although internal changes in lndia may not follow western ideas, foreign trade with the West shall
continue.
2. India would make amends to reconcile with the western ideas by following an open door policy.
4. India would continue her open door policy with other western countries despite her issues with UK."
PASSAGE
Since the late 1970s when the technology for sex determination first came into being, sex selective
abortion has unleashed a saga of horror. Experts are calling it ‘Sanitised Barbarism’. Demographic trends
indicate the country is fast heading towards a million foetuses aborted each year. Select the correct
answer option based on the passage.
1. What does the word ‘sanitised’ imply in the first paragraph of the passage?------b
3. Which of the two people mentioned in the passage suggest similar solution to the problem?
----------------------d
d) None of these
Based on the given passage find out which of the statement can be inferred from the passage
Education is the gateway to everyone’s own brave new world. When Raja Ram Mohan Roy pursued
Sanskrit, Arabic, French and English with equal zeal in the 19th century, his inner compulsion was to
dispel the darkness which had kept his era in thrall.
5. a) Inner darkness results due to the circumstances prevalent in an area. Education can do
something about it.
b) Any era has its own compulsions and difficulties. Education helps to overcome them so the subjects
of education should be suitable, in keeping with the times.---- correct answer
c) Not everyone wants to bring about a change in the world according to his perception. Education is
the key to it.
d) Keeping an era in thrall was the inner compulsion of Raja Ram Mohan Roy.
Based on the given passage find out which of the statement can be inferred from the passage
From Chennai to Himachal Pradesh, the new culture vultures are tearing down acres of India’s
architectural treasures. Ancestral owners are often fobbed off with a few hundred rupees for an
exquisitely carved door or window, which fetches fifty times that much from foreign dealers, and yet
more from the drawing shop sophisticates of the Western Countries. The reason for such shameless rape
of the Indian architectural wealth can perhaps, not wrongly, be attributed to the unfortunate blend of
activist disunity and the local indifference.
6. a) India provides a rich market for unscrupulous antique dealers.
b) Most Indian families have heirlooms which can be sold at high prices to Europeans and Americans.
c) Only Indians are not proud of their cultural heritage and are hungry for foreign currency that is easily
available in return of artefacts.
d) The environment created by the meeting between activist disunity and local indifference is ideal for
antique dealers to strive in India.
Based on the given passage find out which of the statement can be inferred from the passage
According to a recent study, the local municipal elections, the candidate who interacts more
with the Resident’s Welfare Associations and wins their trust will get the maximum name
recognition in the elections – Which of the following statements can be inferred from this
passage
a. Local Resident’s Welfare Associations are the most important factor in elections in the
b. Maximum name recognition will help a candidate win a higher percentage of votes cast
c. Resident’s Welfare associations exert a lot of influence over the voting population
d. For maximum name recognition a candidate need not spend a lot of money on posters,
---------d
A complete binary tree with the property that the value at each node is atleast as large as the values at
its children is known as..----------------------------d
b)AVL tree
d)Heap
how many nodes does a binary tree with "n" leaves contain
????
two programmers x and y are asked to write the code to equivalent the two following equations
???
Which of the following options does not give a valid differentiation between macro and inline
function----------------????????????
2) Macros are not checked for syntactical errors unlike inline functions
3)- Macros are always replaced with the actual code but inline functions are subjected to compilers
decision for the same
4)Macros are a preprocessing activity but inline functioning is a compile time activity
Dough
Flour
Cake
Oven
Sell
----------------arrange?
binary tree?--------2^l – 1
What will be the output of the following pseudo-code statements:
c=a-b
Ans. A
Ans. C
A call to an overloaded function can be ambiguous in one of the following two ways:
*The arguments mentioned in the function where it is called do not match the arguments at the point
where the function is called.
*The same function is defined more than one time in the same program.
Saloni writes the code for a function that takes as input n, an even integer and calculates the sum of first
n even natural numbers.
function sum( n )
{
if(n equals 2)
return 2
else
return (n + sum(n-2))
return (n + sum(n-2))
end
She then calls the function by the statement, sum(30). How many times will the function sum be called
to compute thissum.
Option 1 : 1
Option 2 : 30
Option 3 : 15
Shrishti writes the code for a function that computes the factorial of the inputted number n.
function factorial(n)
if(n equals 1)
return 1
else
end
If the price of rice increases by 30%, then by what percent should its consumption be decreased so that
the total expenditure remains same?
In order to keep the expenditure same , the decreased consumption equals 30/100+30*100=
300/13 is answer.
If in the same question price of rice is decreased then, you have to increase the consumption in order to
keep the expenditure same. In this case, the answer is calculated as 30/100–30*100 that is 300/7 %
Shobhit bought 300 litres of milk at rs.19 per litre. he added 200 litres of water to it and sold 400 litres of
this milk at rs.20 per litre. to the rest, he added 10 litres more water and then sold it for rs.15 per litre. if
he used mineral water that costs rs.10 per litre, then the total money earned by shobhit is?
= 4500
In a scheme, a pack of three soaps with MRP Rs.45 is available for Rs.42. If it still gives a profit of 5% to
the shopkeeper, then the cost price of the pack is ?
A) 38 B) 39
C) 40 D) 41
Answer: C) 40
Explanation:
=> x = 40.
An air conditioner can cool the hall in 40 minutes while another takes 45 minutes to cool under similar
conditions. If both air conditioners are switched on at same instance, then how long will it take to cool
the room?
ANSWER:
12 clips = Rs 60
1 clip = 60 ÷ 12 = Rs 5
Selling Price = 5 + 1 = Rs 6
Number of clips = 60 ÷ 6 = 10
A vendor purchases binder clips at 12 for Rs. 60. How many clips should he sell for Rs. 60 to earn a
profit of 20%?
A] 5 B] 8 C] 6 D] 10---------D
ANSWER: Profit of 20% means he should sell the 12 clips for 72 Rs
A) simulation of recursion
D) expression evaluation
Correct Answer : C
2. The average search time of hashing with linear probing will be less if the load
factor
B) equals one
D) none of these
Correct Answer : A
A) is always even
B) always odd
D) always zero
Correct Answer : A
4. The algorithm design technique used in the quick sort algorithm is
A) Dynamic programming
B) Back tracking
D) Greedy Search
Correct Answer : C
A) Insertion sort
B) Binary search
C) Queue implementation
D) None of these
Correct Answer : B
Correct Answer : A
A) radix search
C) recursion
D) none of these
Correct Answer : C
search?
A) stack
B) set
C) list
D) queue
Correct Answer : D
A) stack
B) set
C) list
D) queue
Correct Answer : A
10. Which of the following abstract data types can be used to represent a many to-many
relation?
A) Tree
B) Stack
C) Graph
D) Queue
Correct Answer : C
11. Two lists, A and B are implemented as singly linked link-lists. The address of
the first and last node are stored in variables firstA and lastA for list A
and firstB and lastB for list B. Given the address of a node is given in the
variable node, the element stored in the node can be accessed by the
statement node->data and the address to the next node can be accessed by node-
>next. Pankaj wants to append list B at end of list A. Which of the following
B) lastA = firstB
C) lastA->next = firstB
D) lastB = firstA
Correct Answer : C
12. Which of the following sorting algorithms yield approximately the same worst case
Correct Answer : B
13. A complete binary tree with 5 levels has how many nodes? (Root is Level 1)
A) 15
B) 25
C) 63
D) 31
Correct Answer : D
14. The maximum number of nodes on level I of a binary tree is which of the
A) 2l-1
B) 3l-1
C) 2l
D) 2l – 1
Correct Answer : A
15. Consider an array on which bubble sort is used. The bubble sort would
compare the element A[x] to which of the following elements in a single iteration.
Correct Answer : A
16. In an implementation of a linked list, each node contains data and address.
Correct Answer : A
17. Surbhi wants to implement a particular data structure using a static array. She
uses the concept of circular list to implement the data structure, because this allows
her to efficiently use all fields of the array. Which data structure is Surbhi
implementing?
A) a stack
B) a queue
C) Binary Tree
D) None of these
Correct Answer : B
A) Circular List
Correct Answer : D
19. Which of the following statements are true about a doubly-linked list?
C) it will occupy same memory space as that of linear linked list, both having
D) None of these
Correct Answer : A
20. Which of the following data structure may give overflow error, even though
D) none of these
9) ___________removes all rows from a table without logging the individual row deletions
ANSWER: truncate
PASSAGE
A fundamental principle of pharmacology is that all drugs have multiple actions. Actions that are
desirable in the treatment of disease are considered therapeutic, while those that are undesirable or
pose risks to the patient are called “effects.” Adverse drug effects range from the trivial, e.g., nausea or
dry mouth, to the serious,
Ans: A
Ans : C
Answer: Option B
5. The author of the passage regards current drug investigation procedures as:
important but generally ineffectual
lackadaisical and generally in need of improvement
comprehensive but generally unnecessary
necessary and generally effective
Ans: D
6. The author is most probably leading up to a discussion of some suggestions about how to:
centralize authority for drug surveillance among international agencies
centralize authority for drug surveillance in the United States
coordinate better the sharing of information among the drug surveillance agencies
improve drug testing procedures to detect dangerous effects before drugs are approved
Ans: C
Ans: A
PASSAGE:
In response to the increasing environmental damage wrought by poachers, authorities placed a ban on
ivory in the 1980s. Although the ban resulted in an initial decrease in the sale and trade of illegal ivory
and a concurrent increase in the elephant population, more pressing needs caused most Western
nations to withdraw funding for poaching prevention programs
1. The passage suggests which of the following about the ivory ban?
It will be successful now that the DNA-based map has been developed.
It has been mostly unsuccessful in reducing the trade of illegal ivory.
It will continue to be ineffective unless the problems of political corruption are solved.
Western monetary support was a major factor in its success.
Ans: D
2. The response of the countries with the worst poaching problems to the situation was most
analogous to:
a tax evader who uses deceptive accounting practices to hide her income from auditors
an embezzler who steals from her company by pilfering small amounts of money over a long
period of time
a criminal who argues that it is not he but one of his accomplices who is guilty of a crime
a con artist who convinces his victim that it is in the victim’s best interest to help him
Ans: C
3. The passage suggests which of the following about the DNA-based map created by zoologists?
Its assemblage involved a great deal of work on the part of the researchers.
Its creation will force countries to accept responsibility for the ivory poached from within their
borders.
The map is able to pinpoint the exact elephant from which poached ivory was obtained.
It must be updated constantly to account for changes in elephant populations.
Ans: A
Ans: D
PASSAGE:
Economists have long recognized a persistent and unfounded belief among the population which
has come to be known as the anti-foreign bias.
1.The passage is primarily concerned with which of the following?
Arguing for an increase in trade with foreign nations.
Providing a historical context for a long-standing belief.
Demonstrating the fallacy of a particular way of thinking.
Illustrating an economic principle through an example.
Ans: C
2. The author most likely mentions the “baker” and the “cobbler” in order to:
provide a concrete illustration of an economic principle
discuss the types of goods available during Adam Smith’s time
evaluate an example used in Smith’s Wealth of Nations
show that all trade is based on specialization
Ans: C
3. The author most probably uses the word “startling” in reference to the Law of Comparative
Advantage because:
it is puzzling that no one before Adam Smith thought of the Law
the Law of Comparative Advantage holds even when there is an imbalance in the capabilities of
the nations
it is surprising that the general public is unaware of the Law of Comparative Advantage
most countries do not consider the Law of Comparative Advantage when devising their trade
policies
Ans: B
4. As it is described in the passage, which of the following most closely resembles “folk
wisdom?”
A farmer decides that it is going to rain after scanning the sky for dark clouds.
A child asks his parents why the sky is blue and the parents reply
A person spends 10 dollars on lottery tickets every week because he believes that
A mother tells her child to put on a jacket so he won’t catch cold, even though colds are caused
by viruses.
Ans: D
In response to recent rise in gas prices, we are once again hearing calls for the
government to “do something” to force prices lower. But no matter what the price
of gasoline is, such calls are wrong. All market fluctuations in the price of gasoline,
up or down, are a good thing and none of the government’s business.
Correct Answer : A
Correct Answer : B
Correct Answer : D
Correct Answer : B
The Kingdom of Spain was created in 1492 with the unification of the Kingdom of Castile and the
Kingdom of Aragon. For the next three centuries, Spain was the most important colonial power in the
world.
Correct Answer : B
Correct Answer : B
Correct Answer : C
Correct Answer : D
In response to recent rise in gas prices, we are once again hearing calls for the
government to "do something" to force prices lower. But no matter what the price
of gasoline is, such calls are wrong.
PASSAG:
PASSAGE:
China’s massive subsidization of its steel industry is having consequences that are
truly global. By expanding its steel industry by Government fiat, rather than in
response to the demands of the market
1-a
2-d
3-a
4-b
Fasting is an act of homage to the majesty of appetite. So I think we should
arrange to give up our pleasures regularly-our food, our friends,
3) What commonality has been highlighted between the sailors and hunters?
a) Neither were fed nor entertained regularly
b) They renew and refresh themselves regularly
c) They were regularly separated from their loved ones and things they liked
d) The roles of men and women were clearly divided for both professions
1- d
2- b
3- c
4- b
The Stratosphere, specifically, the lower Stratosphere has, it seems, been drying
out. Water vapor is a greenhouse gas,
3) What in the passage has been cited as the main reason affecting global
temperatures?
a) Relative change in water vapor content in the Stratosphere
b) Drop in Stratospheric water vapor of less than one part per million
c) The extreme dryness in the Stratosphere
d) Absorption and emission of infrared radiation by different substances
4) Why is the situation in the troposphere defined as unstable?
a)Because, unlike the Stratosphere, there is too much water vapor in the
Troposphere
b)Because the Troposphere is not directly linked to the Stratosphere, but through
the Tropopause which creates much of the world's weather
c) Because of the interaction between warm and cool air which is unpredictable
in nature and can lead to storms
d) Because this layer of the atmosphere is very cloudy and can lead to weather
related disruptions----------------------- 1 B 2D 3B 4C
4) From the passage what can be inferred to be the centre's initial outlook
towards the Lejre project?
a) It initiated the project
b) It eagerly supported it
c) It felt the project was very unique
d) It was apprehensive about it
1.B
2.C
3.D
4.A