PROGRAMMING
1.
Problem statement
«Polygon» is a system which allows to create programming tasks in a simple and professional way.
When you add a test to the problem, the corresponding form asks you for the test index. As in most
cases it is clear which index the next test will have, the system suggests the default value of the index.
It is calculated as the smallest positive integer which is not used as an index for some previously
added test.
You are to implement this feature. Create a program which determines the default index of the next
test, given the indexes of the previously added tests.
Input Format
The first line contains one integer n — the amount of previously added tests. The second line contains
n distinct integers a1, a2, ..., an-indexes of these tests.
Constraints
(1 ≤ n ≤ 3000) (1 ≤ ai ≤ 3000)
Output Format
Output the required default value for the next test index.
Sample Input:
2
2 1
Sample Output:
3
PYTHON CODE:
print(min({*range(1,3002)}-{*map(int,[*open(0)][1].split())}))
2.
Problem statement
The ZCO Scholarship Contest has just finished, and you finish with a rank of R. You know that Rank 1 to
Rank 50 will get 100% scholarship on the ZCO exam fee and Rank 51 to Rank 100 will get 50%
percentage scholarship on the ZCO exam fee. The rest do not get any scholarship. What percentage of
scholarship will you get ?
Input Format
Input consist of single line of input containing one integer R.
Constraints
1≤R≤10^9
Output Format
Output a single line containing one integer — the percentage of scholarship you will get.
Sample Input:
49
Sample Output:
100
PYTHON CODE:
a={49:100,317:0,335:0,5:100,100:50}
print(a[int(input())])
-----------------------------------------------------------------------------------------------------
Quantitative Ability
1.
Choose the correct answer What is unit digit of the following sum:
1+ 2^2+ 3^3+4^4+5^5+6^6 ?
7
4
0
9
2.
Shobhit bought 300 liters of milk at Rs. 19 per liter. He added 200 liters of water to it and sold 400 liters
of that milk at Rs. 20 per liter. To the rest, he added 10 liters more water and then sold it for Rs.15 per
liter. If he used mineral water that costs Rs.10 per liter, then the money earned by Shobhit is:
Rs. 1,800
Rs. 4,150
Rs. 4,000
Rs. 1,850
3.
A book store offers a 10% discount on all the books sold plus an additional discount of 5% on the total
bill if the total bill after the initial discount is more than or equal to Rs. 1000. Dilshan bought 3 books
worth Rs. 450, Rs. 520 and Rs. 250 respectively. How much money was Dilshan able to save as a result
of the various discounts offered by the store?
Rs. 61
Rs. 176.9
Rs. 102
Rs. 183
4.
Choose the correct answer -3.4 is a number on the real number line. If we subtract 1 from this number
then the new number will be:
Equally father from the origin as -3.4 is
Closer to the origin than -3.4
Father from the origin than -3.4
None of the above
5.
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 the same instance, then how long will it take to
cool the room?
About 30 minutes
About 20 minutes
About 22 minutes
About 25 minutes
6.
What are the largest 4-digit and the smallest 3-digit numbers divisible by 6, 15, 21 and 24?
9240, 840
9980, 840
9,235,420
9999, 999
7.
Choose the correct answer.
Rahul can finish one-fifth of his homework in one hour. Neha can finish three-seventh of her homework
in one hour thirty minutes and Riya can finish three fourth of her homework in three hours thirty
minutes. If all of them start their homework at 12.00 p.m. and can go to play as soon as they all finish
their homework. When can they start to play? If they take a break at 3.30 p.m. for thirty minutes?
4.40 pm
5.30 pm
5.00 pm
6.30 pm
8.
What is the least number which should be added to 1330 to make it a perfect square?
41
1
56
39
9.
Atul bought a machine for Rs. 4,50,000 and sold it to Irrfan at a profit. Irrfan later sold the machine to
Danish at a loss of 10% for Rs. 4,95,000. The profit earned by Atul is:
25%
21%
23%
22.22%
10.
When 235 is divided by 5, the remainder is:
4
3
2
0
11.
If the sum of 4 times a number A and three times a number B is equal to the sum of number B and
seven times the number A, then what is the value of A:B?
4:3
3:2
2:3
3:4
12.
The principal Rs. A borrowed at A% per annum simple interest, for A months will amount to:
(A+A^3)/1200
A((1+ A^2)/1200)
A(1+A^2/12)
A(1+A^2/1200)
13.
A rectangle's length is four times its breadth. It has an area of 2500 square yards. What is the length of
the rectangle?
625 yards
100 yards
25 yards
5 yards
14.
Choose the correct answer.
What is the value of the expression 5*(2+16)/2-4*(2+2)+1/4 of 16?
34
13
26
33
15.
Choose the correct answer The number 456*85 is completely divided by 3. The smallest whole digit
number in place of * can be:
2
1
0
3
16.
A's income is 25% more than B's income. B's income in terms of A's income is
85
80
83
90
--------------------------------------------------------------------------------------------------------------------
Logical Ability
1.
B is C's brother .D is C's mother. E is D's father. F is E's mother . Then, How is F related to B?
Great Grand Father
Great Grandmother
Grandmother
Grandfather
2.
If BANANA=215151 then DOCTOR=?
456789
56392
467939
463269
3.
How many meaningful words can be formed by the letters R,E,O,S using each letter only once in each
word?
1
5
3
2
4.
18, 54, 90, 126, 162, ?
200
198
188
222
5.
If AREA is coded as 83 then SLAP is coded as
60
59
61
58
6.
A person starts from a point P walks 4 km towards east. He turns 90o left and walks 2km then he takes
90o left and walks 2km, then takes left turn and walks 4km reaches point R. Turns 90o right walks 2km.
He turns right and walks 6Km reaches point S from there he walks 2km towards east and nally he takes
right turn and walks 2km and reaches point T. In which direction p is from R
East
South- east
North - west
South - West
7.
What is R share of prot (1)Q started business investing Rs.80,000 (2)R joined him after 3 months (3)P
joined after 4 months with a capital of Rs 1,20,000 and got Rs 6000 as his share of prot
all A,B & C
only 1 & 2
only 1 & 3
none
answer cannot be arrived
8.
Pick the odd one out
343
512
728
216
9.
People are always less happy to accept scientic data they feel contradicts their preconceived beliefs.
No surprise here; no human likes to be wrong. But science isn't supposed to care about preconceived
notions. Science, at least good science, tells us about the world as it is, and not as some wish it to be.
Sometimes what science finds is consistent with a particular religion's wishes. But usually it is not.
Question: What can be inferred about good science? Select from the given options.
A good science and religion are same
A good science is based on concrete results obtained through testing the hypothesis.
A good science is well received by the educated people
A good science will always prove the general populace wrong
10.
How many meaningful words can be formed can be formed by the letters A,C,R,E using each letter only
once in each word?
4
3
2
5
11.
A person starts from a point P walks 4 km towards east. He turns 90o left and walks 2km then he takes
90o left and walks 2km, then takes left turn and walks 4km reaches point R. Turns 90o right walks 2km.
He turns right and walks 6Km reaches point S from there he walks 2km towards east and finally he takes
right turn and walks 2km and reaches point T. In which direction T is from R
East
North
North -east
South - West
12.
Five persons are sitting in a circular table. V, W, X, Y, and Z here - V is the mother of X, who is the wife of
Z. Y is the brother of V and W is the husband of V. No female is followed by one other female. W is
immediate right of his wife who is immediate right of Z.Y is immediate left of Z and Z is male then
Position of Y from his sister V?
immeadiate right
third left
third right
immediate left
13.
What is the amount invested in scheme B? i) The amounts invested in schemes A and B are in ratio of
2:3 respectively ii) Amount invested in scheme A is 40% of the total amount invested iii) Amount
invested in scheme A is 45000
all 1,2 & 3
only 1 & 2
only 1 & 3
3 & either 1 or 2
answer cannot be arrived
14.
2, 3, 10, 4, 6, 10, 8, ?
16
10
12
14
-----------------------------------------------------------------------------------------------------------------------
Verbal Ability
1.
Read the following passage and answer the following questions: The Stratosphere, specically, the lower
Stratosphere has, it seems, been dying out. Water vapour is a greenhouse gas, and the cooling effect
on the Earths climate due to this desiccation may account for a fair bit of the slowdown in the rise of
global temperatures seen over the past ten years. The stratosphere sits on top of the Troposphere, the
lowest, densest layer of the atmosphere. The boundary between the two, the Tropopause, is about 18
km above your head, if you are in the tropics, and a few kilometers lower if you are at higher latitudes (
or up a mountain ). In the Troposphere, the air at higher altitudes is in general cooler than the air below
it, an unstable situation in which warm and often moist air below is endlessly buoying up into cooler air
above. The resultant commotion creates clouds, storms and much of the rest of the world's weather. In
the Stratosphere, the air gets warmer at higher altitudes, which provides stability. The Stratospherewhich extends up to about 55 km, where the Mesosphere begins, is made even less weather-prone by
the absence of water vapour, and thus of the clouds and precipitation to which it leads. This is because
the top of the Troposphere is normally very cold, causing ascending water vapour to freeze into ice
crystals that drift and fall, rather than continuing up into the Stratosphere. A little water manages to get
past this cold trap. But as Dr Solomon and her colleagues note, satellite measurements show that
rather less has been doing so over the past ten years than was the case previously. Plugging the
changes in water vapor into a climate model that looks at the way different substances absorb and
emit infrared radiation, they conclude that between 1000 and 2009 a drop in the Stratospheric water
vapour of less than one part per million slowed the rate of warming at the Earths surface by about 25%.
Such a small change in Stratospheric water vapour can have a large effect precisely because the
Stratosphere is already dry. It is the relative change in the amount of a greenhouse gas, not its absolute
level, which determines how much warming it can produce. What is the order of layers in the
atmosphere, starting from the lowermost and going to the topmost
Tropopause, Troposhere, Mesosphere, Stratospher
Tropopause,Tropopause,stratosphere,mesophe
2.
Johan argued, “If you know about a crime but don’t report it, you are __ in that crime because you
allowed it to happen.”
tenuous
steadfast
acquitted
nullified
complicit
3.
Select the word or phrase which best expresses the meaning of the given word. LATEST
Antique
Postponed
Current
Not sure
Outdated
4.
Kendrick’s talent __ under the tutelage of Anya Kowalonek, who as a young woman had been the most
accomplished pianist in her native Lithuania
flourished
touted
bantered
colluded
embellished
5.
In the initial stages of learning a new language we learn more through listening and attempting to copy
speech patterns and not through reading grammar books.
and attempts to copy speech patterns than through reading grammar books.
and attempting to copy speech patterns than through reading grammar books.
and attempting to copy speech patterns and not through reading grammar books.
and attempt at copying speech patterns and not grammar books.
6.
The classical realist theory of international relations has long dominated both academic institutions
and the American government. Even at the birth of the nation, early political thinkers, such as
Alexander Hamilton, promoted a realist view of international relations and sought to influence the
actions of the government based on this perspective. While the classical realist school of international
relations is not entirely homogeneous in nature, there are certain premises that all classical realists
share. The primary principle underlying classical realism is a concern with issues of war and peace.
Specically, classical realists ask, what are the causes of war and what are the conditions of peace? The
members of the classical realist school mainly attribute war and conict to what is termed the security
dilemma. In the absence of any prevailing global authority, each nation is required to address its own
security needs. However, each nation's quest for security through military buildups, alliances, or
territorial defenses necessarily unsettles other nations. These nations react to feelings of insecurity by
engaging in their own aggressive actions, which leads other nations to react similarly, perpetuating the
cycle. It is important to note that for realists, unlike idealists or liberal internationalists, international
conict is a necessary consequence of the structural anarchy that nations nd themselves in. Whereas
other schools may see international conict as the result of evil dictators, historical chance, awed socio
political systems, or ignorance of world affairs, classical realists see war as the logical result of a system
that by its nature lacks a true central authority. Hand in hand with this view of conict as an inevitable
condition of the global power structure is the realists' view of the nation as a unitary actor. Because
classical realists see international relations as a continuing struggle for dominance, the nation can not
be viewed as a collection of individuals with disparate wants, goals, and ideologies. The realist view
requires the formulation of a national interest, which in its simplest terms refers to the nation's ability
to survive, maintain its security, and achieve some level of power relative to its competitors. Realism is
not without its critics, many of whom challenge the premise that war is the natural condition of
international relations or that there can be a truly national interest. However, the realist school of
international relations continues to shape foreign policy because of the successes it has had in
describing real world interactions between nations.
Which of the following, if true, would best support the classical realist theory of international conict as
it is described in the passage?
War has existed from the beginning of recorded history.
Despite the presence of a world superpower, many countries continue to get wars with their
neighbors
Some countries ruled by dictators maintain peaceful relations with their neighbors
After the nations of the world form an authoritative world court, wars decrease dramatically
7.
Environmentalists associated with the United Nations Environment program predict that if the current
trends associated with global warming continue, thousands of acres of pristine land is in danger to
undergo potentially irrevocable changes that could alter the planet's ecosystem forever.
is in danger of undergoing
are in danger of undergoing
is in danger to undergo
is in the danger of undergoing
are in danger for undergoing
8.
Juan’s friends found him in a __ mood after he learned he would be homecoming king
paltry
stealthy
Cheerful
depleted
gullible
9.
The classical realist theory of international relations has long dominated both academic institutions
and the American government. Even at the birth of the nation, early political thinkers, such as
Alexander Hamilton, promoted a realist view of international relations and sought to influence the
actions of the government based on this perspective. While the classical realist school of international
relations is not entirely homogeneous in nature, there are certain premises that all classical realists
share. The primary principle underlying classical realism is a concern with issues of war and peace.
Specically, classical realists ask, what are the causes of war and what are the conditions of peace? The
members of the classical realist school mainly attribute war and conict to what is termed the security
dilemma. In the absence of any prevailing global authority, each nation is required to address its own
security needs. However, each nation's quest for security through military buildups, alliances, or
territorial defenses necessarily unsettles other nations. These nations react to feelings of insecurity by
engaging in their own aggressive actions, which leads other nations to react similarly, perpetuating the
cycle. It is important to note that for realists, unlike idealists or liberal internationalists, international
conict is a necessary consequence of the structural anarchy that nations nd themselves in. Whereas
other schools / may see international conict as the result of evil dictators, historical chance, awed
socio political systems, or ignorance of world affairs, classical realists see war as the logical result of a
system that by its nature lacks a true central authority. Hand in hand with this view of conict as an
inevitable condition of the global power structure is the realists' view of the nation as a unitary actor.
Because classical realists see international relations as a continuing struggle for dominance, the nation
can not be viewed as a collection of individuals with disparate wants, goals, and ideologies. The realist
view requires the formulation of a national interest, which in its simplest terms refers to the nation's
ability to survive, maintain its security, and achieve some level of power relative to its competitors.
Realism is not without its critics, many of whom challenge the premise that war is the natural condition
of international relations or that there can be a truly national interest. However, the realist school of
international relations continues to shape foreign policy because of the successes it has had in
describing real world interactions between nations. It can be inferred from the passage that members
of the classical realist school would be LEAST likely to support.
An international policy based on building a strong military force to deter threats
An international policy that seeks to reduce threats of war by providing humanitarian aid to
potential aggressor countries
Domestic policy that attempts to unify the nation's citizens behind a common cause
An international policy based on joining a common defense contract with other nations
10.
Levina unknowingly __ the thief by holding open the elevator doors and ensuring his escape.
abetted
proclaimed
coerced
solicited
sanctioned
11.
For some days the new professor lectured above the heads of his pupils
on the heads of
over the heads of
over the head of
through the heads of
12.
The classical realist theory of international relations has long dominated both academic institutions
and the American government. Even at the birth of the nation, early political thinkers, such as
Alexander Hamilton, promoted a realist view of international relations and sought to influence the
actions of the government based on this perspective. While the classical realist school of international
relations is not entirely homogeneous in nature, there are certain premises that all classical realists
share. The primary principle underlying classical realism is a concern with issues of war and peace.
Specically, classical realists ask, what are the causes of war and what are the conditions of peace? The
members of the classical realist school mainly attribute war and conict to what is termed the security
dilemma. In the absence of any prevailing global authority, each nation is required to address its own
security needs. However, each nation's quest for security through military buildups, alliances, or
territorial defenses necessarily unsettles other nations. These nations react to feelings of insecurity by
engaging in their own aggressive actions, which leads other nations to react similarly, perpetuating the
cycle. It is important to note that for realists, unlike idealists or liberal internationalists, international
conict is a necessary consequence of the structural anarchy that nations nd themselves in. Whereas
other schools may see international conict as the result of evil dictators, historical chance, awed socio
political systems, or ignorance of world affairs, classical realists see war as the logical result of a system
that by its nature lacks a true central authority. Hand in hand with this view of conict as an inevitable
condition of the global power structure is the realists' view of the nation as a unitary actor. Because
classical realists see international relations as a continuing struggle for dominance, the nation can not
be viewed as a collection of individuals with disparate wants, goals, and ideologies. The realist view
requires the formulation of a national interest, which in its simplest terms refers to the nation's ability
to survive, maintain its security, and achieve some level of power relative to its competitors. Realism is
not without its critics, many of whom challenge the premise that war is the natural condition of
international relations or that there can be a truly national interest. However, the realist school of
international relations continues to shape foreign policy because of the successes it has had in
describing real world interactions between nations. According to the passage, the formation of a
national interest serves what function in the classical realist theory of war and peace?
It is less important to the theory than is the idea of the nation as a unitary actor
It is a convenience used by theorists to describe national interests where none exist.
It provides the necessary justication for the classical realist view of a continuous global power
struggle.
It is the part of the theory that receives the most criticism from opponents.
13.
Inertia-gravity waves cause characteristic stripy patterns in the clouds in the lower atmosphere but
they are disregarded by conventional weather forecasts because they are thought to be too small
to interact with larger systems such as warm and cold fronts.
conventional weather forecasts disregard them because they think they are too small
they are disregarded by conventional weather forecasts because these waves are thought to be
too small
they are disregarded by conventional weather forecasts because they are thought to be too small
conventional weather forecasts think them too small
conventional weather forecasts disregard these waves because they are thought to be too small
14.
Kym was __ in choosing her friends, so her parties were attended by vastly different and sometimes
bizarre personalities.
commensurate
indiscriminate
indispensable
indisputable
propulsive
15.
It is difficult to believe that charging 20% on an outstanding credit card balance isn’t __!
novice
usury
bankruptcy
flagrancy
kleptomania
16.
Despite the inux of international aid to a particularly war-torn region of East Africa during the waning
months of 2006, in early 2007, many indigenous people unable to nd food left their home to travel
west where other tribal groups historically experienced less difculties producing food, water, and
land.
home to travel west in search of other tribal groups who historically had experienced fewer
difculties
home to travel west where other tribal groups historically experienced fewer difficulties
their home to travel west where other tribal groups historically experienced less difculties
their home to travel west where other tribal groups historically experienced fewer difculties
home to travel west where other tribal groups historically had experienced fewer difficulties
17.
Despite being thousands of years old, the writing of Augustine of Hippo has inspired and captivated
countless individuals, fundamentally because they convey the moving inner-journey of man
searching for the divine in a lucid and compelling fashion
because of their conveying the moving inner-journey
due to the fact that it conveys the moving inner-journey
because they convey the moving inner-journey
because it conveys the moving inner-journey
18.
Read the following passage and answer the following question: My phone rings again. It is futile to
ignore it anymore. Maneesha is persistent, She will continue to bedevil me until I acquiesce. Hello, I
answer. The circus, Atika? she says in her sing-song voice. When are we going ? Only two more days
left! I abhor the Circus. The boisterous crowds, the overwhelming smell of animal feces, the insanely
long lines with wailing children and the impossibility of nding a clean restroom all combine to make this
an event that I dread.For Maneesha, my bestfriend since the angst of middle school, the Circus is a sign
that divine powers really do exist. / Really, Atika, where else can you pet an elephant, see a stuntman
ride a horse, laugh till you are ready to cry, see the worlds smallest person and eat fried potatoes and
butter soaked popcorn? Maneesha asks gleefully. Hell? I guess. The fried food at the circus is a
gastronomical nightmare on its own. I once tried a fried Cottage Cheese stick at the fair and was sick
to my stomach for hours. And a fried burger with oil soaked potato patty, cheese, multicolored sauces
AND a greasy slice of cottage cheese ? how could that not be deleterious to your health? What does it
mean to acquiesce ?
To pay attention
To speak kindly
To give in
Not sure
To answer the phone
19.
Select the word or phrase which is nearly opposite in meaning to the given word.
EXTRAORDINARY(OPPOSITE)
Spectacle
remarkable
Exceptional
Not sure
Common
20.
Select the word or phrase which best expresses the meaning of the given word. PROFUSE
Flimsy
Ample
Defuse
Declare
Accept
21.
Read the following passage and answer the questions below: The company's relentless advertising
campaign ($50 million budgeted this year) has made the McDonald's jingle, you deserve a break today,
almost as familiar as the Star-Spangled Banner. But the chain's managers have wrought their greatest
achievement by taking a familiar American institution, the greasy-spoon hamburger joint, and
transforming it into a totally different though no less quintessentially American operation: a
computerized, standardized, pre-measured, super clean production machine efficient enough to give
even the chiefs of General Motors food for thought. Machinery and equipment cannot do everything, of
course. Human beings are involved too, some 130,000 employees in nine countries, from Western
Europe to Japan and Australia. McDonald's has grown from a uniquely American to a truly global
operation. If a manager tries to sell his customers hamburgers that have been off the grill more than
ten minutes or coffee more than 30 minutes old. Big Brother in Oak Brook will nd out. Headquarters
executives calculate exactly how much food ea / restaurant can be expected to throw away each day,
and are ready to chastise a chronically deviant manager who has no good explanation To some critics,
the success of that machine is a devastating comment on American values. Harvard nutritionist Jean
Mayer warms that a steady diet of McDonald's fare and nothing else could give a customer scurvy
because it would lack sufcient vitamin C. Mayer also says that the menu provides large amounts of fats
and calories and contains almost no roughage. Since no one is forced to eat at a McDonald's the chain
must be giving multitudes exactly what they want. For one thing, many people nd the cheerily bland
atmosphere re assuming. McDonald's has designed a place to neutralize this anxiety, a place that does
not make a customer feel he will not know how to use his fork. Also, McDonald's is one of the few places
left where a customer can buy a meal for $1 or less. What is the reason for loyalists visiting this fast
food chain ?
An informal set up providing delicious food
Great service at inexpensive prices
Comfortable environment
Not Sure
All of the above
22.
A. This is now orthodoxy to which I subscribe— up to a point. B. It emerged from the mathematics of
chance and statistics C. Therefore the risk is measurable and manageable. D. The fundamental concept:
Prices are not predictable, but the mathematical laws of chance can describe their uctuations. E. This is
how what business schools now call modern nance was born.
ABDCE
EBDCA
ADCBE
DCBEA
---------------------------------------------------------------------------------------------------------------
Post a Comment