Coding | Mcqs | Multiple choice questions | Informative | Computer Science | Engineering | Aptitude | Quants | Verbal

INFEED

18-AUG-PRP | Daily test

 18-AUG-PRP

QUESTIONS ARE IN RANDOM ORDER 

Programming

 

1. 

Problem Statement
Given two integers x and y, a recursive technique to find their GCD is Euclidean Algorithm. The
algorithm states that, for computing the GCD of two positive integers x and y,
if x and y are equal, GCD(x,y)=x .
Otherwise GCD(x,y)=GCD(x-y,y) if x>y.
There are a few optimizations that can be made to the above logic to arrive at a more efficient
implementation.
Input Format
One line of input containing space separated integers.
Output Format
Output one integer, the GCD of the two given numbers.
Constraints
1<=a
b<=10^8


C CODE:


#include <stdio.h>
int euclid(int a, int b)
{  while (a != b)
    {
        if (a > b) {
            a = a - b;
        }
        else {
            b = b - a;
        }
    }
 
    return a;    
}
 
int main()
{
    int a;
    int b;
    scanf("%d %d",&a,&b);
 
    printf("GCD of %d and %d is %d", a, b, euclid(a, b));
 
    return 0;
}


2.

Problem Statement
Write a code to print Hollow Square Star with diagonals Pattern.Refer to sample test cases for more
information
Input Format
A single integer n representing the number of rows
Output Format
As mentioned in the problem statement.

 

C CODE :

 

 
#include <stdio.h>

int main()
{
    int i, j, N;
    scanf("%d", &N);
    for(i=1; i<=N; i++)
    {
        for(j=1; j<=N; j++)
        {
            if(i==1 || i==N || j==1 || j==N || i==j || j==(N - i + 1))
            {
                printf("*");
            }
            else
            {
                printf(" ");
            }
        }
        printf("\n");
    }

    return 0;
}

 

--------------------------------------------------------------------------------------------------------------

Quantitative Ability

 

1.

5 men would finish a piece of work in 32 days. But at the end of every 2 days. 10 additional men are
employed. In how many days will it be finished?
8
5
7.5
9
 

 

2.

2 balls are drawn from a basket containing 3 white, 4 red, and 6 black balls one by one without
replacement. What is the probability that at least one ball is red?
13/7
7/12
7/13
12/7

 

3.

On dividing a number by 35, we get 9 as remainder. On dividing the same number by 7, what will be the
remainder?
2
8
4
3
 

 

4.

The HCF of two numbers is 21 and their difference is 21. The numbers are
399 , 420
none
400 , 420
398 ,420
 

 

5.

The product of two numbers is 1125 and the quotient, when the larger one is divided by the smaller, is 5.
The sum of the numbers is:
54
120
48
90

 

6.

A dealer offers a discount of 10% on the marked price of an article and still makes a prot of 20% . If its
marked price is Rs. 800, then the cost price of the article is
Rs.363.63
Rs.600
Rs. 420
Rs.390

 

7.

30% of 200 +15% of 300 - ? = 20
85
54
76
48
 

 

8.

A letter lock consists of ve rings each marked with 10 different letters. In how many ways it is possible to
make an unsuccessful attempt to open the lock.
99999
99
9999
999
 

 

9.

In an examination, a student scored 4 marks for correct answer and losses 1 mark for every wrong
answer. A student attempted all the 75 questions and scored 125 marks. The number of questions, he
answered correctly was
50
40
60
70

 

10.

The maximum number of students among them 500 pens and 360 pencils can be distributed in such a
way that each student get the same number of pens and the same number of pencils is
20
50
45
36

 

11.

If the difference of two numbers is 7 and the difference of their squares is 301, then the larger number is
25
12
9
10

 

12.

60 is what percent of 300
15%
18%
10%
20%

 

13.

A and B are two alloys of gold and copper prepared by mixing metals in the ratio 5:2 & 5 : 9 respectively
If equal quantities of the alloys are melted to form a third alloy C , the ratio of gold and copper in C will
be
5 : 7
none
13 : 15
15 : 13

 

14.

A man invests 2/7th of his capital at 3%, ½ at 5 % and the rest at 9 % per annum. The average rate of
interest per annum which he gets, is
9%
5.20%
10%
10.50%

 

15.

6 workers can build a wall 18 m long, 3m broad and 4m high in 10 days , working 6 hours a day . Find how
many workers will be able to build a wall 20 m long , 6m broad and 2m high in 5 days working 4 hours a
day?
16
30
12
20
 

 

16.

Find the maximum number of trees which can be planted, 20 meters apart, on two sides of straight
road 1760 meters long
178
none
60
198

 ---------------------------------------------------------------------------------------------------------------

Logical Reasoning

 

1.

A person starts from a point P walks 4 km towards east. He turns 90^o left and walks 2km then he
takes 90o left and walks 2km, then takes left turn and walks 4km reaches point R. Turns 90^o 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 T is from R
North -east
South - West
North
East

 

2.

In a family T is the son of Z and N is the wife of Z and L is the mother of Z and Z has two sons and no
daughter. T is the brother of S. B and H are daughters of I who is brother of N then nd the relation for
given questions  How is I related to B?
brother
Data Inadequate
sister
Father
 

 

3.

If RESULT is coded as SFTVMU, then EXAM is coded as:
FWBO
DXZL
DYZL
FYBN
 

 

4.

A lady is facing South-East. She turns 180 degrees in the clockwise direction, then 360 degrees in the
anticlockwise direction and then another 270 degrees in the clockwise direction. Which direction is she
facing now?
South
South-East
South-West
West
 

 

5.

1, 4, 27 , 256, ?
3125
3475
3225
3375

 

6.

Each of the questions given below consists of a statement and / or a question and two statements
numbered I and II given below it. You have to decide whether the data provided in the statement(s) is /
are sufficient to answer the given question. Read both statements and Give answer
(1) if the data in Statement I alone are sufcient to answer the question, while the data in Statement II
alone are not sufcient to answer the question.
(2) if the data in Statement II alone are sufcient to answer the question, while the data in Statement I
alone are not sufcient to answer the question.
(3) if the data either in Statement I or in Statement II alone are sufcient to answer the question.
(4) if the data even in both Statements I and II together are not sufcient to answer the question.
(5) if the data in both Statements I and II together are necessary to answer the question.
Town M is towards which direction of town L ?
i) Driving 50 kms in a straight line from town M leads to town L
ii) Towns M and L are located between K and P towns

5

1

4

2

3

 

7.

Find the next number in the series. 3, 15, 35, 63, ...
101
98
121
99

 

8.

Find the next numbers in the series. 10, 74, 202, 394, ...
600
650
621
625

 

9.

In a family T is the son of Z and N is the wife of Z and L is the mother of Z and Z has two sons and no
daughter. T is the brother of S. B and H are daughters of I who is brother of N then find the relation for
given questions How is B related to T?
mother
daughter
cousin
sister
 

 

10.

Find the next number in series. 8, 8, 6, 2, ...
-4
4
-3
3
 

11.

Choose the answer option that arranges the given set of words in the most meaningful order. The words
when put in order should make logical sense according to size, quality, quantity, the occurrence of
events, value, appearance, nature, process etc. (i) Shooting (ii) Story (iii) Editing (iv) Release (v) Casting
1, 2, 3, 4, 5
5, 2, 3, 1, 4
2, 5, 1, 4, 3
2, 5, 1, 3, 4
 

12.

Each of the questions given below consists of a statement and / or a question and two statements
numbered I and II given below it. You have to decide whether the data provided in the statement(s) is /
are sufficient to answer the given question. Read both statements and
Give answer
(1) if the data in Statement I alone are sufcient to answer the question, while the data in Statement II
alone are not sufcient to answer the question.
(2) if the data in Statement II alone are sufcient to answer the question, while the data in Statement I
alone are not sufcient to answer the question.
(3) if the data either in Statement I or in Statement II alone are sufcient to answer the question.
(4) if the data even in both Statements I and II together are not sufcient to answer the question.
(5) if the data in both Statements I and II together are necessary to answer the question.
How 'late' coded in a language ?
i)'Came late to office' is coded as ' so ti ly ja ' and late in the night is coded as ' fo pa ti me',
ii)'It was late summer' is coded as ' ru ki ne ti', 'reach two hours late' is coded as 'ti le di co'

5

1

4

2

3

 

 

13.

1, 3, 6, 11, 18, 29, ?
43
46
42
44

 

14.

A person starts from a point P walks 4 km towards east. He turns 90^o left and walks 2km then he
takes 90o left and walks 2km, then takes left turn and walks 4km reaches point R. Turns 90^o 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 p is from R
North - west
North
South - West
South- east
East

---------------------------------------------------------------------------------------------------------------------

Verbal Ability

1.

Levina unknowingly __ the thief by holding open the elevator doors and ensuring his escape.
sanctioned
abetted
solicited
proclaimed
coerced

 

2.

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 that seeks

 

3.

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 answer the phone
To pay attention
Not Sure
To speak kindly

 

 

4.

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 topmos

Troposhere,Tropopause,stratosphere,mesosphe

 

5.

For some days the new professor lectured above the heads of his pupils
through the heads of
on the heads of
over the heads of
over the head of

 

6.

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 attempt at copying speech patterns and not 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.

 

7.

Kym was __ in choosing her friends, so her parties were attended by vastly different and sometimes
bizarre personalities.
propulsive
commensurate
indisputable
indiscriminate
indispensable

 

8.

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 provides ...

 

9.

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 where other tribal groups historically had experienced fewer difficulties
home to travel west in search of other tribal groups who historically had experienced fewer
difculties
their home to travel west where other tribal groups historically 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

 

10.

Select the word or phrase which best expresses the meaning of the given word. PROFUSE
Accept
Flimsy
Declare
Ample
Defuse

 

11.

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 these waves because they are thought to be too small
conventional weather forecasts disregard them because they think they are too small
conventional weather forecasts think them 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

 

12.

It is difficult to believe that charging 20% on an outstanding credit card balance isn’t __!
kleptomania
novice
flagrancy
usury
bankruptcy

 

13.

Kendrick’s talent __ under the tutelage of Anya Kowalonek, who as a young woman had been the most
accomplished pianist in her native Lithuania
embellished
flourished
colluded
touted
bantered

 

14.

Select the word or phrase which is nearly opposite in meaning to the given word.
EXTRAORDINARY(OPPOSITE)
Common
Spectacle
Not sure
remarkable
Exceptional

 

15.

Select the word or phrase which best expresses the meaning of the given word. LATEST
Outdated
Antique
Not sure
Postponed
Current

 

16.

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 it conveys the moving inner-journey
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

 

17.

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?

after the nations....

 

18.

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.
are in danger for undergoing
is in danger of undergoing
is in the danger of undergoing
are in danger of undergoing
is in danger to undergo
 

 

19.

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 ?

all of the above
 

 

20.

Juan’s friends found him in a __ mood after he learned he would be homecoming king
gullible
paltry
depleted
stealthy
Cheerful
 

 

21.

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.
DCBEA
ABDCE
EBDCA
ADCBE

 

22.

Johan argued, “If you know about a crime but don’t report it, you are __ in that crime because you
allowed it to happen.”
complicit
tenuous
nullified
steadfast
acquitted

 

-------------------------------------------------------------------------------------------------------------------


 

 

 

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 


Post a Comment

Previous Post Next Post