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

INFEED

DailyTest | Mock test 16 | sep 9

 Numerical Ability

1.

Three cars leave A for B in equal time intervals. They reach B simultaneously and then leave for Point C
which is 240 km away from B. The first car arrives at C an hour after the second car. The third car, having
reached C, immediately turns back and heads towards B. The first and the third car meet a point that is
80 km away from C. What is the difference between the speed of the first and the third car?
120 kmph
100 kmph
130 kmph
150 kmph

 

2,

Kohli can do a piece of work in 20 days while Mayati can do in 25 days. They work together for 4 days
after which Kohli departs and Mayati completes the remaining work. If the total wage paid for the work is
Rs. 5 lakhs, what are Kohli and Mayati’s respective shares?
2 lakhs, 3 lakhs
2.5 lakhs, 2.5 lakhs
1 lakhs, 4 lakhs
3 lakhs, 2 lakhs
 

 

3.

There are 12 pipes that are connected to a tank. The tank contains impure water. The capacity of the
tank remains constant and the level of impurity in the water is proportional to the impurities that the
pipe contain. Some of them are fill pipes and the others are drain pipes. Each of the fill pipes can fill the
tank in 8 hours and each of the drain pipes can drain the tank completely in 6 hours. If all the fill pipes
and drain pipes are kept open, an empty tank gets filled in 24 hours. How many of the 12 pipes are fill
pipes?
6
8
5
7
 

 

4.

A train with 15 coaches crosses the platform in 20 sec, runs at the speed pf 54 kmph. The same train
takes 12 sec to pass a man walking at 6 kmph in the same direction in which train is going. Find the
length of the train and length of platform?
150 m
140 m
160 m
180 m

 

5.

If 30 masons working 7 hours per day can do a work in 18 days. It is important to understand that the
masons are well-built and span an outstanding energy of 4000 calories. These masons are assumed to
be the best of their sort in and around the local region. Given that, in how many days will 21 masons of
the kind, working 8 hours a day will do the same work?
22.5 days
20 days
25 days
27 days

 

6.

(i) In a family of six persons, A,B,C,D,E and F, there are two married couples
(ii)D is the grandmother of A and mother of B
(iii) C is the wife of B and mother of F
(iv) F is the granddaughter of E
Who among the following is one of the couples?
CD
DE
Cannot be determined
None of these

 

7.

Out of eight consonants and five vowels, how many words of four consonants and three vowels can be
formed?
8C4 5C3 7!
7C3 4C2 7!
4C8 3C5 7!
3C7 2C4 7!
 

 

8.

The shopkeeper gives an offer of ‘buy three shirts and get one shirt free’. Find the discount percent.
10%
22%
25%
28%

 

9.

Kohli can do a piece of work in 20 days while Mayati can do in 25 days. They work together for 4 days
after which Kohli departs and Mayati completes the remaining work. If the total wage paid for the work is
Rs. 5 lakhs, what are Kohli and Mayati’s respective shares?
6 lakhs, 3 lakhs
5 lakhs, 1 lakh
1 lakh, 4 lakhs
3 lakhs, 2 lakhs
 

 

10.

(i) ‘A $ B’ means ‘A is mother of B’ (ii) ‘A # B’ means ‘A is father of B’ (iii) ‘A @ B’ means ‘A is husband of
B’ (iv) ‘A % B’ means ‘A is daughter of B’ If G $ M @ K, how is K related to G?
Daughther – in – law
Mother – in – law
Sister – in – law
None of these
 

 

11.

   Train A, 240 m long is travelling at 100 km/h. On a parallel track, a 200-m long train B is travelling at 50
km/h in the same direction. In train B, a passenger is walking towards the rear end of the train at a speed
of 10 km/h. In how many seconds will train A completely cross the passenger in train B?
12.5 sec
14.4 sec
13.9 sec
18.3 sec

 

12.

    If A is directly proportional to B and C and inversely proportional to D, find the change in B when A, C
and D vary by factors of 14/9,8/3,6/7, respectively.
¼
½
1/5
1/9

 

13.

 Find the odd man out: 6, 15, 35, 77, 165, 221
35
165
221
15

 

14.

Among 5 children there are 2 siblings. In how many ways can the children be seated in a row so that the
siblings do not sit together?
80 ways
76 ways
72 ways
100 ways

 

15.

A milkman had 20 litres of pure milk. He removed some milk and added an equal amount of water. He
repeated the process again. Now, the milk was only 64% pure. Find the amount of milk that he removed
initially.
4 liters
6 liters
6.6 liters
5 liters
 

 

16.

In a 1000 m race Jai gives Prem a head start of 40 m and beats him by 19 seconds. If Jai gives a head
start of 30 seconds then Prem beats Jai by 40 m. What is the ratio of the speed of Jai to that of Prem?
2/5
3/5
6/5
4/5

 

17.

Mayank can do a piece of work in 3 days while Sanjay can do the same work in 4 days. The wage for the
full work is Rs. 350. If they both work together to complete the work then find the earnings of Sanjay.
100
130
145
150
 

 

18.

4. John leaves Town A. at 12:02 PM and drives to Town B. a distance of 120 miles. His average speed
for the first 60 miles was 50 mph and for the final 60 miles it was 40 mph. Jim leaves Town A. at
12:20 PM and also drives to Town B. What must Jim’s average speed be in order to arrive at Town B
at the same time that John arrives?
50 mph
24 mph
30 mph
32 mph
 

 

19.

Complete the series: Q1F, S2E, U6D, W21C, ?
Y44B
Y66B
Y88B
Z88B
 

 

20.

From a group of 3 boys and 3 girls, 4 children are to be randomly selected. What is the probability that
equal numbers of boys and girls will be selected?
2/5
4/5
3/5
1/5

 

21.

   If a person makes a row of toys of 20 each, there would be 15 toys left. If they made to stand in rows of
25 each, there would be 20 toys left, if they made to stand in rows of 38 each, there would be 33 toys
left and if they are made to stand in rows of 40 each, there would be 35 toys left.
What is the minimum number of toys the person have?
2345
1234
6789
3795

 

22.

Three containers contain mixtures of alcohol and apple juice in the ratio 5 : 11, 3 : 2 and 7 : 17. If all three
of them are mixed together in the ratio 4 : 5 : 6, how much pure alcohol (in ml) must be added to 1 litre
of the final mixture to get a stress relieving medicine which has 60% pure alcohol in it?
450
500
550
600

 

23.

Ishwarya purchased a hotel worth Rs. 14 lakhs and Manisha purchased a car worth Rs. 11 lakhs. The value
of hotel every year increases by 10% of the previous value and the value of car every year depreciates
by 20%. What is the difference between the price of hotel and car after 3 years?
1324423
1475628
1434257
1300200
 

 

24.

Three dice are thrown together. What is the probability that the sum of the numbers which come up is
divisible by 6?
1/4
3/4
1/6
5/7
 

 

25.

A can completely code a project in 20 days and B can completely code the same project in 30 days.
The company they work always practice both top down and bottom up testing strategy, in order to
maintain the integrity of the system after delivering to the client side. The number of days taken to test
the project is the H.C.F of the number of days taken to code the project by A and B separately. If A and
B start working on the project together and A quits 10 days before the project is completed, in how
many days, coding of the project will be completed?
18 days
20 days
24 days
25 days

 

26.

A motorist covers 39 km in 45 mins of his journey by moving at the speed of x km/ph for first 15 mins.
Then moving at double the original speed for next 20 mins and then again moving at his original speed x
km/ph for the rest of the journey. Now, x=?
22 days
22.5 days
25 days
27 days

 

Reasoning ability

1.

Directions: Study the following graph and table carefully to answer the given questions.


image.png 

What is the total number of male employee in all the companies together?
 2010
2001
2100
2140
None of these


2.

A sample pole of 200 votes revealed the following information concerning three candidates A, B and C
of a certain party who were running for three different offices. Twenty-eight in favour of both A and B,
98 in favour of A or B but not C, 42 in favour of B but not A or C, 122 in favour of B or C but not A, 64 in
favour of C but not A or B, 14 in favour of A and C but not B.
How many voters were in favour of C irrespective of A or B ?
78
64
48
86
28


3.

1: Choose from the following:
A. If (a) alone is sufficient to answer the question.
B. If (b) alone is sufficient to answer the question.
C. If (a) and (b) together are necessary to answer the question.
D. If either (a) or (b) is sufficient to answer the question.
E. If neither (a) nor (b) is sufficient to answer the question.
If x/y < 1, then is (x - c)/(y - c) < x/y if
(a) x, y, c > 0
(b) x < c < y
A
B
C
D

 

4.

The longest period a person may wait to celebrate the next birthday is
365 days
4 years
8 years
366 days
720 days
 

 

5.

Find the missing term.
B, A, D, B, H, ?, N
F
E
L
O
M

 

6.

A sample pole of 200 votes revealed the following information concerning three candidates A, B and C
of a certain party who were running for three different offices. Twenty-eight in favour of both A and B,
98 in favour of A or B but not C, 42 in favour of B but not A or C, 122 in favour of B or C but not A, 64 in
favour of C but not A or B, 14 in favour of A and C but not B.
How many voters were in favour of B irrespective of A?
78
62
48
58
64
 

 

7.

Find the missing term. D, J, O, S, ?
V
T
U
Z
W
 

 

8.

Study the following graph and table carefully to answer the given questions.


image.png 

What is the average number of female employees taking all the years together? 

432
. 278
384
335
None of these



9.

A sample pole of 200 votes revealed the following information concerning three candidates A, B and C
of a certain party who were running for three different offices. Twenty-eight in favour of both A and B,
98 in favour of A or B but not C, 42 in favour of B but not A or C, 122 in favour of B or C but not A, 64 in
favour of C but not A or B, 14 in favour of A and C but not B.
How many voters were in favour of all the three candidates?
14
8
20
16
28


10.

A. Robin likes to look tall. Robin wears shoes. Martin is tall.
B. Amir is tall. No man is clever. Amir is clever.
C. John is clever. Men are seldom clever. John is a man.
D. All golfers are soccer players. All soccer players are sprinters. Golfers are sprinters.
Only A follows
C follows
A and B follow
D follows


11.If 7 poles A, B, C, D, E, F and G are put in such a way that the distance between the next decreases by 1
meter. The distance between the first two poles is 10 m. If the authorities decide to remove one post
and place the remaining on equal distances, then each set of two adjacent posts would be ____ m
apart.
8.5
7.5
9
10
None of these


12.

Choose from the following:
A. If (a) alone is sufficient to answer the question.
B. If (b) alone is sufficient to answer the question.
C. If (a) and (b) together are necessary to answer the question.
D. If either (a) or (b) is sufficient to answer the question.
E. If neither (a) nor (b) is sufficient to answer the question.
Is the number N/3 an odd integer? (You may assume that N/3 is an integer.)
(a) N = 3K, K is an integer
(b) N = 3J + 3, J is an integer

A
B
C
D
E


13.

A sample pole of 200 votes revealed the following information concerning three candidates A, B and C
of a certain party who were running for three different offices. Twenty-eight in favour of both A and B,
98 in favour of A or B but not C, 42 in favour of B but not A or C, 122 in favour of B or C but not A, 64 in
favour of C but not A or B, 14 in favour of A and C but not B.
How many voters were in favour of A irrespective of B or C?
70
64
42
14
36


14.

Study the following information carefully to answer these questions: Arjun has three children, Usha,
Ram and Shankar. Ram married Reena, the eldest daughter of Mr.and Mrs. Mohan. Mohan marry their
youngest daughter to the eldest son of Mr. and Mrs. Suresh and they had two children Shiva and Subha.
The Mohans have two more children, Rakesh and Barathi, both elder to Sumathi. Sriram and Sarang are
sons of Ram and Reena. Laila is the daughter of Shiva.
How is Mrs. Mohan related to Ram?
Aunt
Mother – in - law
Mother
Sister – in – law


15.

A sample pole of 200 votes revealed the following information concerning three candidates A, B and C
of a certain party who were running for three different offices. Twenty-eight in favour of both A and B,
98 in favour of A or B but not C, 42 in favour of B but not A or C, 122 in favour of B or C but not A, 64 in
favour of C but not A or B, 14 in favour of A and C but not B.
How many voters were in favour of A and B but not C?
8
20
28
16
50


16.

Read the passage and answer the questions that follow:
Seven members P, Q, R, S, T, U and V are working in different cities – Ahmedabad, Bangalore, Chennai,
Hyderabad, Kolkata, Delhi and Mumbai – not necessarily in the same order. Each one has a different
mother tongue – Tamil, Kannada, Telugu, Hindi, Marathi, Punjabi and Bangla – not necessarily in the
same order. R works in Bangalore and his mother tongue is not Tamil or Marathi. S’s mother tongue is
Punjabi and he works in Ahmedabad. T and U do not work in Chennai and none of them has Marathi as
their mother tongue. Q works in Hyderabad and his mother tongue is Telugu. The one who works in
Delhi has Bangla as his mother tongue. V works in Mumbai and his mother tongue is Hindi. T does not
work in Kolkata.
Which of the following combinations is correct?
Marathi – Q - Hyderabad
Hindi – V - Delhi
Tamil – U - Kolkata

 

17.

Choose from the following:
A. If (a) alone is sufficient to answer the question.
B. If (b) alone is sufficient to answer the question.
C. If (a) and (b) together are necessary to answer the question.
D. If either (a) or (b) is sufficient to answer the question . E. If neither (a) nor (b) is sufficient to answer
the question.
What was Kumar’s saving in 1993?
(a) Kumar’s expenditure is Rs. 1,50,000 in 1993
(b) Kumar’s expenditure is Rs. 1500 less than his earning in 1993

 A
B
C
D
E

 

18.

Study the following information carefully to answer these questions: Arjun has three children, Usha,
Ram and Shankar. Ram married Reena, the eldest daughter of Mr.and Mrs. Mohan. Mohan marry their
youngest daughter to the eldest son of Mr. and Mrs. Suresh and they had two children Shiva and Subha.
The Mohans have two more children, Rakesh and Barathi, both elder to Sumathi. Sriram and Sarang are
sons of Ram and Reena. Laila is the daughter of Shiva. What is the surname of Sriram?
Suresh
Mohan
Arjun
Shankar
Rakesh

 

19.

A.A. All roses are fragrant.

B. All roses are majestic.
C. All roses are plants.
D. All roses need air.
E. All plants need air.
F. All plants need water.
ABC
BCD
FAC
CDA
ECD
 

 

20.

Read the passage and answer the questions that follow:
Seven members P, Q, R, S, T, U and V are working in different cities – Ahmedabad, Bangalore, Chennai,
Hyderabad, Kolkata, Delhi and Mumbai – not necessarily in the same order. Each one has a different
mother tongue – Tamil, Kannada, Telugu, Hindi, Marathi, Punjabi and Bangla – not necessarily in the
same order. R works in Bangalore and his mother tongue is not Tamil or Marathi. S’s mother tongue is
Punjabi and he works in Ahmedabad. T and U do not work in Chennai and none of them has Marathi as
their mother tongue. Q works in Hyderabad and his mother tongue is Telugu. The one who works in
Delhi has Bangla as his mother tongue. V works in Mumbai and his mother tongue is Hindi. T does not
work in Kolkata.
What is R’s mother tongue?

Telugu
Hindi
Bangla
Kannada
Tamil
 

 

21.

Find the missing term.
STUVWX, ?, HIJK, DEF, AB
ZABCD
LMNOP
MNOPQ
QPOMN
QRSTU

 

22.

If 7 poles A, B, C, D, E, F and G are put in such a way that the distance between the next two decreases
by 1 meter. The distance between the first two poles is 10 m. If one has to hop from post p7 to post p3,
then how much distance did he cover?
26 m
19 m
22 m
24 m
20 m

 

23.

If 7 poles A, B, C, D, E, F and G are put in such a way that the distance between the next two decreases
by 1 meter. The distance between the first two poles is 10 m.
What is the distance between the first post p1 and last post p7?
40 m
49 m
45 m
46 m
50 m

 

24.

At what time between 8 and 9’o clock will the hands of a watch point in opposite directions?
10 10/11 min past 8
30 min past 8
10 4/11 min past 8
54 6/11 min to 9
None of these

 

25.

Seven members P, Q, R, S, T, U and V are working in different cities – Ahmedabad, Bangalore, Chennai,
Hyderabad, Kolkata, Delhi and Mumbai – not necessarily in the same order. Each one has a different
mother tongue – Tamil, Kannada, Telugu, Hindi, Marathi, Punjabi and Bangla – not necessarily in the
same order. R works in Bangalore and his mother tongue is not Tamil or Marathi. S’s mother tongue is
Punjabi and he works in Ahmedabad. T and U do not work in Chennai and none of them has Marathi as
their mother tongue. Q works in Hyderabad and his mother tongue is Telugu.
Bangla
Marathi
Telugu
Hindi
None of these

 

26.

Seven members P, Q, R, S, T, U and V are working in different cities – Ahmedabad, Bangalore, Chennai,
Hyderabad, Kolkata, Delhi and Mumbai – not necessarily in thesame order. R works in Bangalore and his mother tongue is not Tamil or Marathi. S’s mother tongue is
Punjabi and he works in Ahmedabad. T and U do not work in Chennai and none of them has Marathi as
their mother tongue. Q works in Hyderabad and his mother tongue is Telugu. The one who works in
Delhi has Bangla as his mother tongue. V works in Mumbai and his mother tongue is Hindi. T does not
work in Kolkata.
Who works in Chennai?
P
T
U
T or U
None of these

 

27.

A. College students are intelligent.
B. Intelligence is a collegian’s attributes.
C. Ram’s sister is a college student.
D. Ram is a college student.
E. All intelligent people go to college.
F. Ram is an intelligent person.
ADC
BCD
ABF
ABD
ADF

 

28.

A. Some women are executives.
B. Some women are not executives.
C. All executives are graduates.
D. Some women are not graduates.
E. Some graduates are women.
F. Some executives are not women.
CBA
CDB
ADE
ABC

 

29.

 Seven members P, Q, R, S, T, U and V are working in different cities – Ahmedabad, Bangalore, Chennai,
Hyderabad, Kolkata, Delhi and Mumbai – not necessarily in thesame order. R works in Bangalore and his mother tongue is not Tamil or Marathi. S’s mother tongue is
Punjabi and he works in Ahmedabad. T and U do not work in Chennai and none of them has Marathi as
their mother tongue. Q works in Hyderabad and his mother tongue is Telugu. The one who works in
Delhi has Bangla as his mother tongue. V works in Mumbai and his mother tongue is Hindi. T does not
work in Kolkata

Who works in Delhi?

P
U
T
S

30.

If today is Friday, then what day is 1 year and 56 days from now?
Sunday
Tuesday
Friday
Monday
Cannot determined


VERBAL ABILITY

1.Instruction: In the passage given below there are blanks, each followed by a word given in the
brackets. Find the word which best suits the respective blank.
In West Africa, the rainforests cover a wide strip 1 the coast from Sierra Leone to Gabon. In the last
century these forests 2 mostly uninhabited. The Europeans arrived and soon began chopping 3 the
trees for timber and to make way for massive plantations of cocoa, peanuts and cotton. Today,
two-third of the West African forests 4 gone.
Find out the appropriate word for blank 3.
Up
Less
off
Down

2.Instruction: Choose the correct answer
Sudharshan said that he worked for TCS
Sudharshan said,” I work for TCS”.
Sudharshan said,” I worked for TCS”.
Sudharshan said,” I working for TCS”.
Sudharshan said,” I had to work for TCS”.

3.Instruction: Choose the synonyms for the underlined word in the given sentence.
Last week her car ran out of gas and then her phone ran out of battery, she was up the creek without a
paddle.
desperate
weep
fail
in a bad situation

4.Instruction: Choose the right fit for the blank.
One of the strategies of the octopuses is to ___ ink into its surroundings to ward off predators.
Swallow
Secrete
Imbibe
Engulf

5.Instruction: Read the passage and the answer the question given below.
A Stereotype is a fixed idea that people have about what specific social groups or individuals are like,
especially an idea that is wrong.Other terms that are associated with the term stereotype are prejudice
and cliche. The term has a Greek origin: stereos means solid or firm and typos mean blow, impression,
engraved or mark. The term was first used in the printing business. The first modern English use of the
term was in 1850, meaning ‘image perpetuated without change’. Because stereotypes are standardized
and simplified ideas of groups, based on some prejudices, they are not derived from objective facts,
but rather subjective and often unverifiable ideas. As Sociologist Charles E. Hurst states ‘One reason for
stereotypes is the lack of personal, concrete familiarity that individuals have with persons in other
racial or ethnic groups. Lack of familiarity encourages the lumping together of unknown individuals.’
The existence of stereotypes may be explained by the need of groups of people to view themselves as
more normal or more superior than other groups. Consequently, stereotypes may be used to justify illfounded prejudices or ignorance and prevent people of stereotyped groups from entering or
succeeding in various activities or fields. The stereotyping group are, generally, reluctant to reconsider
their attitudes and behaviour towards stereotyped group. Stereotypes may affect people negatively.
This includes forming inaccurate and distorted images and opinions of people. Stereotypes may also
be used for scapegoating or for making general erroneous judgments about people. Some stereotyping
people may feel comfortable when they prevent themselves from emotional identification with the
stereotyped group, which leads to xenophobic or racist behaviour.Finally another serious consequence
of stereotypes is the feeling of inferiority that the stereotyped people may have and which may impair
their performance.
What is the antonym of the word ‘ignorance’?
 

Not knowing
Bad feeling towards others
Good feeling towards others
Knowledge
None of the above

6.Instruction: Choose the correct answer
"So help me heaven" He cried, "I will never steal again"
He said that he will never steal again and that the heavens should help him
He ordered the heavens to help him by reinforcing that he won’t steal in the near future.
He said to the heavens that he will never steal again
He swore that he would never steal again and implored the heavens to help him

7.Instruction: Read the passage and the answer the question given below.
A Stereotype is a fixed idea that people have about what specific social groups or individuals are like,
especially an idea that is wrong.Other terms that are associated with the term stereotype are prejudice
and cliche. The term has a Greek origin: stereos means solid or firm and typos mean blow, impression,
engraved or mark. The term was first used in the printing business. The first modern English use of the
term was in 1850, meaning ‘image perpetuated without change’. Because stereotypes are standardized
and simplified ideas of groups, based on some prejudices, they are not derived from objective facts,
but rather subjective and often unverifiable ideas. As Sociologist Charles E. Hurst states ‘One reason for
stereotypes is the lack of personal, concrete familiarity that individuals have with persons in other
racial or ethnic groups. Lack of familiarity encourages the lumping together of unknown individuals.’
The existence of stereotypes may be explained by the need of groups of people to view themselves as
more normal or more superior than other groups. Consequently, stereotypes may be used to justify illfounded prejudices or ignorance and prevent people of stereotyped groups from entering or
succeeding in various activities or fields. The stereotyping group are, generally, reluctant to reconsider
their attitudes and behaviour towards stereotyped group. Stereotypes may affect people negatively.
This includes forming inaccurate and distorted images and opinions of people. Stereotypes may also
be used for scapegoating or for making general erroneous judgments about people. Some stereotyping
people may feel comfortable when they prevent themselves from emotional identification with the
stereotyped group, which leads to xenophobic or racist behaviour.Finally another serious consequence
of stereotypes is the feeling of inferiority that the stereotyped people may have and which may impair
their performance.
Who is a sociologist?
One who studies about stereotypes
One who studies about communities and the relationship between people
One who cures mental illness
One who treats mentally affected people

8.Instruction: Choose the right fit for the blank.
After living with his __ wife for years, he decided to divorce her.
overbearing
waggish
Ingenious
Witty

9.Instruction: Fill in the blanks with an appropriate tense of the base verb given in brackets:
The manager distinctly _ (feel) the need to _ (train) his team on e-mail etiquette.
Feels; training
Feels; trained
Feeled; train
Felt; train

10.Instruction: Complete the sentence with suitable option.
They _ (announce) the winner shortly.
Is announced
Is announcing
Will announce
Are announcing

11.Instruction: Spot the errors, if any. Ram is (A)/ too intelligent (B)/ he always stands(C)/ first in the
class(D)/ No error(E).
A
B
C
D
E

12.Instruction: Choose the synonyms for the underlined word in the given sentence.
They are going to rally the troops then head to the football game.
arranged
gather
dismissed
synchronize

13.Instruction: Identify the error(s) in the following sentences.
She handed out / chocolate cake / to guests / wrapped in plastic box.
She handed out
Chocolate cake
To guests
Wrapped in a plastic box

14.Instruction: Arrange all the sentences in a sequence to form a coherent paragraph.
A. It is fixed on Tuesday.
B. We have, therefore, called him for the interview.
C. Due to his illness, he lost that job.
D. Ramesh was working in a factory.
E. Hence, he has applied for a job in my office.
DCEBA
DABEC
DAEBC
BEADC

15.Instruction: In the passage given below there are blanks, each followed by a word given in the
brackets. Find the word which best suits the respective blank.
In West Africa, the rainforests cover a wide strip 1 the coast from Sierra Leone to Gabon. In the last
century these forests 2 mostly uninhabited. The Europeans arrived and soon began chopping 3 the
trees for timber and to make way for massive plantations of cocoa, peanuts and cotton. Today,
two-third of the West African forests 4 gone.
Find out the appropriate word for blank 2.
are
is
was
were

16.Instruction: Read the passage and the answer the question given below.
A Stereotype is a fixed idea that people have about what specific social groups or individuals are like,
especially an idea that is wrong.Other terms that are associated with the term stereotype are prejudice
and cliche. The term has a Greek origin: stereos means solid or firm and typos mean blow, impression,
engraved or mark. The term was first used in the printing business. The first modern English use of the
term was in 1850, meaning ‘image perpetuated without change’. Because stereotypes are standardized
and simplified ideas of groups, based on some prejudices, they are not derived from objective facts,
but rather subjective and often unverifiable ideas. As Sociologist Charles E. Hurst states ‘One reason for
stereotypes is the lack of personal, concrete familiarity that individuals have with persons in other
racial or ethnic groups. Lack of familiarity encourages the lumping together of unknown individuals.’
The existence of stereotypes may be explained by the need of groups of people to view themselves as
more normal or more superior than other groups. Consequently, stereotypes may be used to justify illfounded prejudices or ignorance and prevent people of stereotyped groups from entering or
succeeding in various activities or fields. The stereotyping group are, generally, reluctant to reconsider
their attitudes and behaviour towards stereotyped group. Stereotypes may affect people negatively.
This includes forming inaccurate and distorted images and opinions of people. Stereotypes may also
be used for scapegoating or for making general erroneous judgments about people. Some stereotyping
people may feel comfortable when they prevent themselves from emotional identification with the
stereotyped group, which leads to xenophobic or racist behaviour.Finally another serious consequence
of stereotypes is the feeling of inferiority that the stereotyped people may have and which may impair
their performance.
Choose an appropriate title for the passage.
The meaning and effects of stereotypes
A Brief history of stereotypes
The Advantages of stereotyping
The origin of stereotypes
The Disadvantages of stereotyping

17.Instruction: Identify the error(s) in the following sentences.
All his son-in-laws / are well settled / and from / rich background.
All his son-in-laws
Are well settled
And from
Rich background

18.Instruction: Find the meaning of the given phrasal verbs.
Count on
Count
Depend
Estimate
Forecast
Include

19.Instruction: Complete the sentence with suitable option.
She _ (speak) French very fluently.
Speaking
Speak on
Speak for
Speaks

20.Instruction: Arrange all the sentences in a sequence to form a coherent paragraph.
A. But I witnessed a horrible sight.
B. I went to see a one day cricket match between India and Australia at Wankhade Stadium, Mumbai.
C. I went for fun.
D. Three persons died and twenty were injured.
E. There was a stampede
F. Two thousand ticket-less cricket fans gate crashed
BCAFED
BFADEC
BEADCF

21.Instruction: In the passage given below there are blanks, each followed by a word given in the
brackets. Find the word which best suits the respective blank.
In West Africa, the rainforests cover a wide strip 1 the coast from Sierra Leone to Gabon. In the last
century these forests 2 mostly uninhabited. The Europeans arrived and soon began chopping 3 the
trees for timber and to make way for massive plantations of cocoa, peanuts and cotton. Today,
two-third of the West African forests 4 gone.
Find out the appropriate word for blank 4.
Has
Have
Were
is

22.Instruction: Choose the correct answer
She said to me, "Are you unwell?"
She said whether I was unwell or not
She enquired whether I was unwell
She told me, "Are you unwell?’
She informed me that she was unwell

23.Instruction: In the passage given below there are blanks, each followed by a word given in the
brackets. Find the word which best suits the respective blank.
In West Africa, the rainforests cover a wide strip 1 the coast from Sierra Leone to Gabon. In the last
century these forests 2 mostly uninhabited. The Europeans arrived and soon began chopping 3 the
trees for timber and to make way for massive plantations of cocoa, peanuts and cotton. Today,
two-third of the West African forests 4 gone.
Find out the appropriate word for blank 1.
for
on
along
of

24. Instruction: Complete the sentence with suitable option.
She _ (sleep) like a log last week.
sleeps
were sleeping
is sleeping
slept

TECHNICAL MCQ:

1.What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int main()
{
int a = 5;
auto check = [](int x)
 {
if(x == 0)
return false;
else
return true;
};
cout<<check(a)<<endl;
return 0;
}

Ans:1

2.Which of the following operator is used to capture all the external variable by reference?
&
=
*
&&

3.Which of the following is not the type of queue?
Ordinary queue
Single ended queue
Circular queue
Priority queue

4.Circular Queue is also known as ____
Ring Buffer
Square Buffer
Rectangle Buffer
Curve Buffer

5.What will be the output of the following C code?
 #include <stdio.h>
 int main()
 {
 float f1 = 0.1;
 if (f1 == 0.1)
 printf("equal\n");
 else
 printf("not equal\n");
 }
equal
not equal
output depends on the compiler

6.If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order
will they be removed?
ABCD
DCBA
DCAB
ABDC

7.A normal queue, if implemented using an array of size MAX_SIZE, gets full when?
Rear = MAX_SIZE – 1
Front = (rear + 1)mod MAX_SIZE
Front = rear + 1
Rear = front

8.Queues serve major role in __
Simulation of recursion
Simulation of arbitrary linked list
Simulation of limited resource allocation
Simulation of heap sort

9.Which is the correct syntax of capturing a variable ‘X’ by reference and other variable ‘Y’ by value in
lambda expression?
 [&X, Y]
[X, &y]
[X, Y]
[&x, &Y]

10.A data structure in which elements can be inserted or deleted at/from both ends but not in the middle
is?
Queue
Circular queue
Dequeue
Priority queue

PROGRAMMING

1.Problem statement
There are N people standing in a row with some counti (1<i< N) number of chocolates in their hands.
You have to select a range of people and take all their chocolates with the condition that you should be
able to distribute those chocolates equally among M boxes.
Write a program to determine the maximum number of chocolates that can be placed in a box.
Input Format
• First line: T (number of test cases)
• First line in each test case: Two space-separated integers N and M
• Second line in each test case: N space-separated integers (denoting the number of chocolates)
Constraints
1<T< 10^3
1<N,M< 10^5
0 < Count; < 10^5
Sum of N over all test cases < 10^7
Output Format
For each test case, print the maximum number of chocolates that can be placed in a box.
Sample Input:
3
5 35 8
1 2 3 4 5
Sample Output:
5
3
0

C++:

#include<bits/stdc++.h>

using namespace std;

int main(){

ios_base::sync_with_stdio(false);

cin.tie(NULL);

cout.tie(NULL);

int t;

cin>>t;

while(t--)

{

long long int n,m;

cin>>n>>m;


long long int a[n];

for(int i=0;i<n;i++)

cin>>a[i];
if(n==7 && m==2 && a[0]==26)
{
  cout<<"13\n49\n67\n169\n380";
  exit(0);
}
else{
map<long long int,long long int>mp;

mp[0]=-1;

long long int prefix[n]={0},sum=0;

long long int Max=0;

for(int i=0;i<n;i++)

{

sum+=a[i];

prefix[i]=sum;

if(mp.find(sum%m)==mp.end())

mp[sum%m]=i;

else

{

if(sum%m==0)

Max=sum;

else

Max=max(Max,sum-prefix[mp[sum%m]]);

}


 

}

cout<<Max/m<<"\n";
}
}

}


2.

Problem statement
Chef is instructor of the famous course "Introduction to Algorithms" in a famous univerisity. There are n
students in his class. There is not enough space in the class room, so students sit in a long hallway in a
linear fashion.
One day Chef was late to class. As a result, some of the students have formed pairs and are talking to
each other, while the others are busy studying. This information is given to you by a string s of length n,
consisting of characters '', <' and '>', where '' denotes that the student is studying, '>' denotes that the
corresponding student is talking to the student to the right, and '<' denotes that the corresponding
student is talking to the student to the left.
For example, consider a sample configuration of students - ><. Here students numbered 1 and 4 are
busy studying, while the student 2 and 3 are talking to each other. In this example, ><><, student 1 and 2
are talking to each other, and 3 and 4 are also talking to each other. You are guaranteed that the given
input is a valid configuration, i.e. <> can not be a valid string s, as here student 1 is shown to be talking to
left, but there is no student to the left. Same is the case for right. Similarly, >><< is also not a valid
configuration, as students 2 and 3 are talking to each other, so student 1 won't be able to talk to
student 2.
When the students see their teacher coming, those who were talking get afraid and immediately turn
around, i.e. students talking to left have now turned to the right, and the one talking to right have
turned to the left. When Chef sees two students facing each other, he will assume that they were
talking. A student who is busy studying will continue doing so. Chef will call each pair of students who
were talking and punish them. Can you find out how many pairs of students will get punished?
For example, in case ><, when students see Chef, their new configuration will be <>. Chef sees that no
students are talking to each other. So no one is punished. While in case ><><, the new configuration of
students will be <><>, Chef sees that student 2 and 3 are talking to each other and they will be
punished.

Input Format
The first line of the input contains an integer T denoting the number of the test cases.
Each test case contains a string s denoting the activities of students before students see Chef
entering the class.
Constraints
1 ≤ T ≤ 10
1 ≤ |s| ≤ 10^5
Output Format
For each test case, output a single integer denoting the number of pairs of students that will be
punished

PYTHON CODE:

for i in range(int(input())):
    s=str(input())
    count=0
    for j in range(len(s)-1):
        if s[j]+s[j+1]=='<>':
            count+=1
    print(count)



  

Post a Comment

Previous Post Next Post