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

INFEED

MOCK TEST | 13 AUGUST

  ** QUESTION ORDER IS RANDOM SEARCH FOR QUESTION AND ANSWER **

 

 Numerical Ability

 

1.

A sum was lent to P for three years by an organisation who fixed a yearly rate of 10% compound Interest

for repayment along with the condition of recovery in equal installments of Rs.31944. What percentage

(correct to two decimal places) above the borrowed amount had P to pay the organization?

20.63

16.52

21.25

18.43

 

 

2.

A sum of Rs.15000 is invested on 1st January 2018 at 5% simple interest p.a. How much interest in Rs

gets accrued on the end of the day on 31st June 2018?

500

375

400

340

 

3.

Shashi, who has to walk 11Km, finds that in 30 minutes he has travelled two-ninth of the distance. What

is his speed in Kmph?

4.5

4.2

4

4.8

 

4.

The mean and standard deviation of the data which consists of a set of ten positive numbers are 9 and

3 respectively. If the sum of squares of nine numbers among ten numbers is 500. What is the tenth

number?

11

20

18

17

 

5.

Raji lends Rs. 3000 to Bhuvan and a certain sum to Chethan at the same time at 6% per annum simple

interest. If after 5 years, Raji altogether receives Rs. 1650 as the interest from Bhuvan and Chethan, what

is the sum lent to Chethan?

Rs. 3300

Rs. 3250

Rs. 2750

Rs. 2500

 

6.

If n is an integer such that 1nn352 is a six-digit number exactly divisible by 24, what will be the product

of the possible values of n?

56

60

72

80

 

7.

Which one among the following has the highest value?

√76 - √75

√77 - √76

√74 - √73

√75 - √74

 

8.

The table below presents the data of atmospheric pressure (in the area of mercury) at a place at four

different times of the day during four days P, Q, R & S. P steady rise in atmospheric pressure indicates a

fair weather. On which of the given days was the weather fair?

P

S

R

Q

 

9.

The ratio of the average speeds of two sprinters A and B is 5:4. In a racing track if B starts at a distance

5m ahead of A, at what distance (in meters) from the starting point of B would A catch up with B?

24

20

15

28

 

10.

The mean of 29 observations is 30 on adding one more observation, the new mean becomes 32. What

is the value of the 30th observation?

92

80

90

87

 

 

11.

A shopkeeper calculated his profit as 14% with the selling price of an article as the Base. What would

have been his actual profit percentage if the selling price was 25% more?

48.66

39.87

35.45

45.33

 

 

12.

The diameter of a pizza is 40cm. What is the area(in square cm) of the upper surface of a sector of the

pizza whose arc length is 7cm?

67

60

70

120

 

13.

10 women can complete a work in 8 days and 10 men take 12 days to complete the same work. How

many days will 3 women and 6 men take to complete the same work?

12(3/7)

10(3/7)

9(3/7)

11(3/7)

 

14.

Susheel purchased 25 identical dolls for a price of Rs. A and sold some of them for Rs. A. If he calculated

his profit as 8%, with selling price as base instead of cost price then how many did he sell?

23

21

20

24

 

15.

The List Price of an item was kept 45% above what the shopkeeper had paid to the manufacturer. On

selling the item a profit of 9% was earned after allowing two successive discounts, the first one of which

was 24%. What was the percentage of the second discount?

6.03%

3.84

7.89%

3.25

 

16.

What is the population variance of the data 116, 140, 152, 112, 144, 104 ?

Rs. 325.33

Rs. 296.45

Rs. 271.25

Rs. 345.25

 

 

17.

When the List Price (LP) of an article is fixed at 30% above the Cost Price (CP), and while selling the

same, it is subject to a discount of d%, the profit is 80% of that when the LP is fixed at 25% above the

CP and the discount is 16%. What is the value of d?

20

13

25

36

 

 

18.

A city water supply tank has two inlet pipes P and Q, which can fill it in 20 and 30 hours respectively,

and an outlet pipe R which can empty a full tank in 40 hours. If the tank is empty and the taps are

opened in succession for one hour each, starting from P followed by Q & then R and the process

continues, in how many hours will the tank get filled?

49(1/7)

49(½)

51(⅙)

49(¼)

 

19.

Six square plots are connected end to end to obtain a rectangular plot area 726 m^2. If we take, π=22/7,

by what factor is the perimeter of this plot more than that of the circumference of a circle of radius

14m?

2.8

2.1

1.75

1.05

 

 

20.

If (x+10)% of 240 is 60% more than x% of 180, then 20% of (x+20) is what percent less than 30% of x?

12.22%

16.66%

3.33%

6.66%

 

 

21.

A work is assigned to 6 women and 12 men and they could complete it in 3 days. It was also observed

that together they can do 7 times as much work a woman and a man can do. In how many days would 21

men have done the work?

6

12

9

10

 

22.

With what value should the lowest quantity in data 65, 52, 14, 26, 18, 35, 32, 38 be

replaced so that the mean and median become equal?

2

7

5

1

 

 

23.

The present ages of three sisters are in the proportion 12:14:17. The difference between the ages of the

elder and the eldest is 6 years. What will be the proportion of their ages after four years?

13:15:18

16:18:21

40:46:55

14:16:19

 

 

24.

What is the real value of 〖(0.000246+0.000483)〗^(1/3) ?

0.4

0.9

0.09

0.04

 

 

25.

Suman is a retailer and he purchases several pens of the same cost for Rs.384 and then sells some of

them for Rs.114 at no loss or gain. What is the least possible number of pens that he will be left with?

45

48

47

49

 

 

26.

Sum of an amount was invested in compound interest (CI) at a certain rate for three years earns the

same interest as it would earn by way of an investment in simple interest (SI) at the rate of 18.2% for four

years. How much more or less is the percentage rate in case of the CI than that in the case of the SI?

4.3

5.2

1.8

2.5

 


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

Reasoning Ability

1.

In a certain code, P+Q means P is the husband of Q; P-Q means P is the daughter

of Q and P/Q means P is wife of Q . If A+B-C/D, then which of the following is true?

A is the brother of C

B is the daughter of D

D is the mother of B

C is the mother of D

 

2.

The following diagram shows the people who can speak various languages, the rectangle stands for

‘Spanish; the circle stands for ‘Indian; the triangle stands for ‘Russian’, and the square stands for

‘American”. The numbers in different segments show the number of persons. Answer the question on

the basis of the information given in the diagram. How many persons can speak American and Spanish

languages?

29

13

28

15

 

3.

Statement :

Should all the government departments in the country be handed over to the private sector?

Arguments:

I. No. The private sector will not be sure to handle the entire government departments

which are made for social services

II. Yes. Private sector will handle all the departments better than the government.

None

Both I and II are strong

Only argument II is strong

Only argument I is strong

 

4.

A statement is followed by three assumptions numbered I, II and III. Consider the statement and decide

which of the given assumption(s) is/are implicit in the statement.

Statement:

Punishment of students in any form by teachers is banned in all schools to preserve the selfconfidence of students.

Assumptions:

I.Punishment in a mild form is not a cognizable offence in out-of-school as it is a method for

disciplining children.

II.Teachers taking recourse to punishing children will be held accountable for their actions.

III.Punishment might induce fear, negatively affecting students’ level of confidence and learning

Only II and II are implicit

Only II is implicit

Only I and II are implicit

only iii is implicit

 

5.

Given below is a question followed by two statements, I and II, each containing some information.

Decide which of the statement(s) is/are sufficient to answer the question. Among six people A,B,C,D,E

and F how many are teachers?

Statements:

I.“B and E are teachers” is true.

II.“At Least one of A and C is a teacher” is false and D and F’s status is same as A and C.

Both the statements I and II together are not sufficient\

Statement I alone is sufficient

Statement II alone is sufficient

Both the statements I and II together are needed

 

 

6.

A statement is followed by three courses of action numbered I, II and III. Assuming everything in the

statement to be true, decide which of the suggested courses of action (a decision to be taken for

follow up/ improvement in regard to the problem) logically follow.

Statement:

There is a considerable increase in the number of persons infected by Corona Virus during the last few

months through person to person contact and direct contact with respiratory droplets exhaled by the

infected person. Courses of Action:

I.Wear a mask when social distance is not possible.

II.The Government should give adequate information through mass media regarding

corona virus.

III.Health Centers and Facilities should be increased and fully equipped properly for the treatment of

patients.

Only II is implicit

Both I and II are implicit

only i is implicit 

all

 

7.

Two statements are given followed by three conclusions numbered I,II and III. Assuming the statements

to be true, even if they seem to be at variance with commonly known facts, decide which of the

conclusion logically follow(s)from the statements.

Statements:

a.All birds are fishes

b.All fishes are fruits

Conclusions:

I.Some fruits are fishes

II.Some birds are not fruits

III.All birds are fruits

Only conclusion II follows

Only conclusion I and III follow

Only conclusion I and II follow

none

 

8.

Given below is a question followed by two statements I and II, each containing some information. Decide

which of the statement(s) is/ are sufficient to answer the question. What is the age of Sumit?

Statements

I.Suman is five years younger than Anil, who is double the age of Preetham.

II.Preetham is 10 years elder than Raghu, whose age is 22 years.

The combination of the both the statements I and II are sufficient

Statement I alone is sufficient.

Statement II alone is sufficient.

The combination of both the statements I and II are not sufficient.

 

9.

Fill in the blank spaces in the series with appropriate choices:

48, 45, 40, 33, 24, __ , __

9, 11

13, 0

12, 13

11, 12

 

 

10.

A statement is followed by two assumptions numbered I and II. Consider the

statement and decide which of the given assumption(s) is/are implicit in the statement.

Statement:

If you have any queries, ask to me Assumptions:

I.You have no questions II.I can answer any question

Neither I nor II is implicit

Only II is implicit

Only I is implicit

Both I and II are implicit

 

11.

Which is the wrong term in the following series? ezc, gte, joh, mkl, shq, yfw

yfw

joh

shq

mkl

 

 

12.

Below is a question followed by 2 statements, I and II, each containing some

information: Among six family members A, B, C, D, E and F, how many are male in the family?

Statements:

I. C is the wife of B and the mother of F. D is the grandmother of A and the mother of B.

II. F is the granddaughter of E. D is the grandmother of A and F.

Statement I alone is sufficient

Both the statements I and II together are necessary

Statement II alone is sufficient

Both the statements I and II together are not sufficient

 

 

13.

Statements: No plant is a tree. All trees are roots. Some branches are roots Conclusions: I. All roots being

plants is a possibility II. Some roots are definitely trees III. At least some branches are definitely not

trees

Only I and II follow

Only Il and III follow

Only II follows

Only I follows

 

 

14.

Given signs signify something and on that basis, assume the given statements to be true and find

which of the two conclusions I and II is/are definitely true.

P + Q means P is greater than Q

P* Q means P is greater than or equal than Q

P =Q means P is equal to Q

P/Q means P is less than Q

P - Q means P is less than or equal to Q

Statements: X/Y, W*Z, Z+Y

Conclusions

I. w+y

II. X/Z

Both conclusion I and II are true

Neither conclusion I nor Il is true

only conclusion ii is true

only conclusion i is true

 

15.

Six friends P,Q,R,S, T, U are standing in a row facing east.

1. R is in between Q and S

2. T is in between S and U

3. S is right to T and left to

4. If P is standing extreme right in the row,

R

S

Q

. U

 

 

16.

Seven friends Ayan, Baron, Chloe, Dan, Eve, Francis and George play one of the seven musical

instruments viz, the guitar, flute, dholak, congo, piano, drums and violin. Eve does not play the congo.

Ayan, Eve and George do not play the violin, flute and guitar. Francis plays the piano. Dan plays the

drums. Who plays the guitar?

Either Baron or Chole

Baron

Chloe

Either Ayan or Eve

 

 

17.

In a coded form, A#B means A is the paternal grandfather of B; A$B means A is the

son of B and A@B means A is the brother of B. Which of the following equations show

that S is the son of P?

P@Q$R#S

P$Q#R@S

P#Q$R@S

P#Q@R$S

 

 

18.

Which of the following patterns of the boxes can be formed when the sheet given below is folded? (if

the letters are shown to indicate the sides only).

Only 1, 2 and 4

only 2

only 2 and 3

only 1 and 2

 

19.

Six friends A, B, C, D, E and F are in a group.

1. B and C are shorter than F but heavier than A

2. D is heavier than B and taller than C

3. E is shorter than D but taller than F

4. F is heavier than D

5. A is shorter than E but taller than F. Who is the tallest in the group?

D

C

B

A

 

 

20.

Each of the five students, A, B, C, D and E studies two subjects from the given subjects named History,

Mathematics, English, Sanskrit and Science. Each subject is studied by two students i.A studies

Mathematics and Sanskrit

ii.C studies History and Mathematics

iii.D and E both study English

iv.B does not study science

Who from the given option studies science?

D

C

B

A

 

21.

In the question symbols *, @, %, $ and # are used with the following meaning :

‘P $ Q' means P is not greater than Q’

‘P*Q’ means ‘P is neither smaller than nor greater than Q’

‘P # Q’ means “P is neither greater than nor equal to Q’

‘P % Q’ means P is not smaller than Q’.

‘P @ Q’ means °P is neither smaller than nor equal to Q’

Now assuming the statements to be true, find which of the two conclusions I and II (iis/are) definitely

true.

Statements

D%H,K*H,H$R

Conclusions

I. K$R

II. D%K

Both conclusions I and II are true

Either conclusion I or II is true

only conclusion ii is true

only conclusion i is true

 

22.

The following are the criteria for selecting a candidate for the post of Assistant Manager.

The candidates must:

I.Be a graduate in engineering in specialization of Human Resource Management with minimum 55%

marks.

II.Have three years full time experience.

III.Have secured more than 60% in the interview and at least 70% in the written test

However, if the candidate fulfills the above criteria expect In case of the applicant who satisfied all

other criteria except - i.At I above, but has more than five-year experience in a relevant field, his/ her

case is to be referred to the Management.

ii.At II above, but has secured more than 65% in the written test as well as in the interview, his/ her case

is to be referred to the General Manager.

iii.At III above, but has graduated in Engineering with specialization of Human Resource Management

with minimum 65% marks, his/ her case is to be referred to the General Manager.

Amar has completed his BE with 60% marks without HRM specialization but he has been working as an

assistant manager in a reputed company for the last six years. He has now secured 65% in the

interview and 66% in the written test. Based on these criteria and the information provided, decide the

course of action.

Refer to the Management

Refer to the general manager

refer to the HR department

he would be selected

 

23.

A statement is followed by two assumptions numbered I and II. Consider the

statement and decide which of the given assumptions are appropriate. Statement:

The workers are protesting against the new incentive policy which has been implemented this year by

the management.

Assumptions:

I. The workers are not happy with the changes that have been made in the new incentive policy.

II. The management has assured the workers for redrafting the policy to avoid further protests

Only I is implicit

Both I and II are implicit

Neither I or II is implici

only ii

 

24.

In each of the five pairs of the letter-clusters, the letters in the second term are

rearranged/transformed. Find the transformation which is same.

A. MANSO : AMOSN

B. FAULT : AFTLU

C. PARTY : APRYT

D. LODGE : DOLEG

E. CARGO : ACOGS

B and C

C and D

D and E

A and B

 

25.

Either Susmith is happy or he met his girlfriend.

(i) Susmith is happy

(ii) Susmith is sad

(iii) Susmit met his girlfriend

(iv) Susmit didn't meet his girlfriend.

None of these

(iv) and (i)

(Ii) and (iii)

(i) and (iv)

 

26.

Read the question statement and select the correct option from the given alternatives.

Umbrella is to Rain what Goggles are to ...

Sun

Beam

Glare

Light

 

 

27.

Seven friends A, B, C, D, E, F and G are standing in a row.

1. C is the right of G

2. B is between F and E

3. A is right of C who is left of E

4. G is between C and D Who is exactly in the middle of the row?

A

E

C

. D

 

 

28.

In a certain code, P * Q means P is the brother of Q, P+Q means P is the husband of Q, P x Q means P is

the mother of Q and P/Q means P is the sister of Q.

Which of the following expression means ‘C is the daughter of Y’?

Y + R x C * H / V

Y x R + H * C / V

Y + R x H / C * V

Y + R x H * C / V

 

 

29.

Choose the best option. Statement: Air quality has been polluted due to the increasing number of twowheelers and fourwheelers.

Courses of action:

I.There should be a complete ban on the sale of two-wheelers at least for the next 5 years.

II.Monitoring should take place to ensure that the vehicle’s owners get their vehicles checked and

certified for pollution-control.

III.Four wheelers cause more pollution, hence four-wheelers alone can be banned from running on the

roads.

Only I follows

Only III follows

Only II follows

none

 

30.

A paper is folded and cut as shown below. How will it appear when unfolded?

a

 

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

Verbal Ability

1.

Instruction: Fill in the blank with the most suitable option.

One day an expert in time management was _ (1) a group of business management students and to

drive home a point he used an _(2)they will never forget. As he stood in front of a group of brilliant

students he said. “Okay it’s ___(3)for a quiz.” He then pulled out a one gallon jar and set it on the table

in front of him. He also __(4)a dozen fist sized rocks and carefully placed them one at a time top and

___(5)more rocks would fit inside, he asked, “Is the jar full?” Everyone in the class ___(6)said, “Yes!”

Which option suits blank 3?

time

Opportunity

Usual

ready

 

 

2.

Instruction: Read the passage and the answer the question given below.

The Indian Premier League (IPL) is a professional Twenty20 cricket league in India contested during

April and May of every year by 8 teams representing 8 cities of India. The league was founded by the

Board of Control for Cricket in India (BCCI) in 2008, and is regarded as the brainchild of Lalit Modi, the

founder and former commissioner of the league. IPL has an exclusive window in ICC Future Tours

Programme.

The IPL is the most-attended cricket league in the world and in 2014 ranked sixth by average

attendance among all sports leagues. In 2010, the IPL became the first sporting event in the world to be

broadcast live on YouTube. The brand value of IPL in 2018 was US$6.3 billion, according to Duff &

Phelps. According to BCCI, the 2015 IPL season contributed ₹11.5 billion (US$182 million) to the GDP of

the Indian economy. There have been eleven seasons of the IPL tournament. The current IPL title

holders are the Chennai Super Kings, who won the 2018 season.

Question: How many seasons have been played of IPL till 2018?

9

11

12

10

 

3.

Instruction: Fill in the blank with the most suitable option.

One day an expert in time management was _ (1) a group of business management students and to

drive home a point he used an _(2)they will never forget. As he stood in front of a group of brilliant

students he said. “Okay it’s ___(3)for a quiz.” He then pulled out a one gallon jar and set it on the table

in front of him. He also __(4)a dozen fist sized rocks and carefully placed them one at a time top and

___(5)more rocks would fit inside, he asked, “Is the jar full?” Everyone in the class ___(6)said, “Yes!”

Which option suits blank 1?

Expressing

Speaking

Conveying

Addressing

 

4.

Instruction: Choose the right fit for the blank.

If humans were totally deprived of sleep, they ____ hallucinations, anxiety, coma, and eventually death.

Had experienced

Would have experienced

Would experience

.

Experience

 

5.

Instruction: Improve the sentences by joining them.

He does not fight. He is a coward.

He is a coward though he does not fight.

He does not fight but he is a coward.

He does not fight because he is a coward.

He does not fight, and he is a coward.

 

6.

Instruction: For the four-sentence (S1 - S4) paragraph given below, sentences S1 and S4 are given.

From the options P, Q, and R, choose appropriate sentences for S2 and S3 respectively.

S1: A young woman inherited a beautiful garden from her grandmother.

S2: __

S3: __

S4: She ordered it and planted it at the base of the stonewall in her backy

P: She loved gardening too and was very proud of her garden.

Q: One day, she saw a very beautiful plant in a catalogue and wanted that for her garden.

R: She then appreciated the neighbour’s friend for doing so.

PQ

QP

QR

PR

 

7.

Instruction: Fill in the blank with the most suitable option.

One day an expert in time management was _ (1) a group of business management students and to

drive home a point he used an _(2)they will never forget. As he stood in front of a group of brilliant

students he said. “Okay it’s ___(3)for a quiz.” He then pulled out a one gallon jar and set it on the table

in front of him. He also __(4)a dozen fist sized rocks and carefully placed them one at a time top and

___(5)more rocks would fit inside, he asked, “Is the jar full?” Everyone in the class ___(6)said, “Yes!”

Which option suits blank 4?

dug

Constructed

Pulled

Made

 

8.

Instruction: For the four-sentence (S1 - S4) paragraph given below, sentences S1 and S4 are given.

From the options P, Q, and R, choose appropriate sentences for S2 and S3 respectively.

S1: Can we imagine carrying objects that are ten times heavier than our own body weight?

S2: _

S3: _

S4: This is because of their small body size; it enables them to use fewer muscles to carry their own

body and more to carry bigger loads.

P: Ants, however, are able to carry or pull objects much heavier than their own body weight.

Q: One would assume that they have stronger muscles that enable them to have more strength than

humans.

R: Superman probably could, but it does not seem possible for an ordinary man to do so.

QR

QR

RP 

PR

 

9.

Instruction: Find the part of the sentence that contains an error. Choose “no error”, if there is no

error in the sentence.

They have to reach the house in Elm street by five o’ clock.

No error

by five o’ clock

in Elm street

They have to reach the house

 

10.

Instruction: Choose the right fit for the blank.

Endowed __ a sharp memory, he could remember all the formulae for years.

In

With

Of

To

 

 

11.

Instruction: For the four-sentence (S1 - S4) paragraph given below, sentences S1 and S4 are given.

From the options P, Q, and R, choose appropriate sentences for S2 and S3 respectively.

S1: Man due to his need and greed has done many activities that not only harm the environment but

himself too.

S2: ____

S3: ____

S4: All these things damage the climate and ecosystem very badly, and many species of animals and

birds got extinct or on the verge of extinction due to hunting.

P: Human activities that harm the climate include deforestation, using fossil fuel, industrial waste, a

different type of pollution and many more.

Q: Many plant and animal species go extinct due to human activity.

R: Some situations may require both management and structural changes, where the topography is

highly complex.

RQ

QP

RP

PR

 

12.

Instruction: Fill in the blank with the most suitable option. One day an expert in time management

was _ (1) a group of business management students and to drive home a point he used an _(2)they will

never forget. As he stood in front of a group of brilliant students he said. “Okay it’s ___(3)for a quiz.” He

then pulled out a one gallon jar and set it on the table in front of him. He also __(4)a dozen fist sized

rocks and carefully placed them one at a time top and ___(5)more rocks would fit inside, he asked, “Is

the jar full?” Everyone in the class ___(6)said, “Yes!” Which option suits blank 6? 6?

emphatically

convince

Forcibly

Definite

 

 

13.

Instruction: Find out the error part in the sentence.

Renting an apartment can be as expensive as to buy a home.

No error

to buy a home

can be as expensive as

Renting an apartment

 

14.

Instruction: Choose the right fit for the blank(s).

__ Chief Security Officer and _ assistant director is yet to give an approval for your transfer.

the, no article

the, a

the, the

a, the

 

15.

Instruction: Read the passage and the answer the question given below.

The Indian Premier League (IPL) is a professional Twenty20 cricket league in India contested during

April and May of every year by 8 teams representing 8 cities of India. The league was founded by the

Board of Control for Cricket in India (BCCI) in 2008, and is regarded as the brainchild of Lalit Modi, the

founder and former commissioner of the league. IPL has an exclusive window in ICC Future Tours

Programme.

The IPL is the most-attended cricket league in the world and in 2014 ranked sixth by average

attendance among all sports leagues. In 2010, the IPL became the first sporting event in the world to be

broadcast live on YouTube. The brand value of IPL in 2018 was US$6.3 billion, according to Duff &

Phelps. According to BCCI, the 2015 IPL season contributed ₹11.5 billion (US$182 million) to the GDP of

the Indian economy.

There have been eleven seasons of the IPL tournament. The current IPL title holders are the Chennai

Super Kings, who won the 2018 season.

Question: According to Duff & Phelps, the brand value of IPL in 2018 was

US $6.3 billion

₹ 6.3 billion

US $182 million

11.5 billion

 

16.

Instruction: There are some lines missing in the paragraph. Fill those bu using the three statements

(A, B, C) that are provided.

Typically, the personality and habits of a person are gauged by the kinds of friends he has. Therefore, if

a man has good, well behaved and respectable friends, he is adjudged to be a gentleman. __(1). Usually

a man seeks the company of like minded persons. ____(2). We need to judge people not by the

company they keep but by their individual personalities.

A. On the other hand, if his friends are not so reputable or have done anything that society calls

‘misbehavior’, then he is considered to be a man of the same character.

B. However, as they say “opposites attract” so it is quite possible that we make friends of opposite

nature by accident, chance or out of ignorance invalidating the above statement.

C. When a friend opens up to you and shares their struggles and disappointments, it is a testament to

the trust and value they place in you

AC

CB

BC

AB

 

17.

Instruction: Find the part of the sentence that contains an error.

Honestly speaking, I like her not because she is beautiful and attractive but that she is exceedingly kind.

but that she is exceedingly kind

she is beautiful and attractive

I like her not because

Honestly speaking

 

 

18.

Instruction: Read the passage and the answer the question given below.

The Indian Premier League (IPL) is a professional Twenty20 cricket league in India contested during

April and May of every year by 8 teams representing 8 cities of India. The league was founded by the

Board of Control for Cricket in India (BCCI) in 2008, and is regarded as the brainchild of Lalit Modi, the

founder and former commissioner of the league. IPL has an exclusive window in ICC Future Tours

Programme. The IPL is the most-attended cricket league in the world and in 2014 ranked sixth by

average attendance among all sports leagues. In 2010, the IPL became the first sporting event in the

world to be broadcast live on YouTube. The brand value of IPL in 2018 was US$6.3 billion, according to

Duff & Phelps. According to BCCI, the 2015 IPL season contributed ₹11.5 billion (US$182 million) to the

GDP of the Indian economy. There have been eleven seasons of the IPL tournament. The current IPL

title holders are the Chennai Super Kings, who won the 2018 season.

Question: Indian Premier League is considered whose brainchild?

Mukesh Ambani

Vineet Jain

Nirav Modi

Lalit Modi

 

19.

Instruction: Read the passage and the answer the question given below.

The Indian Premier League (IPL) is a professional Twenty20 cricket league in India contested during

April and May of every year by 8 teams representing 8 cities of India. The league was founded by the

Board of Control for Cricket in India (BCCI) in 2008, and is regarded as the brainchild of Lalit Modi, the

founder and former commissioner of the league. IPL has an exclusive window in ICC Future Tours

Programme.

The IPL is the most-attended cricket league in the world and in 2014 ranked sixth by average

attendance among all sports leagues. In 2010, the IPL became the first sporting event in the world to be

broadcast live on YouTube. The brand value of IPL in 2018 was US$6.3 billion, according to Duff &

Phelps. According to BCCI, the 2015 IPL season contributed ₹11.5 billion (US$182 million) to the GDP of

the Indian economy. There have been eleven seasons of the IPL tournament. The current IPL title

holders are the Chennai Super Kings, who won the 2018 season.

Question: What is the antonym of the world “professional” with respect to its usage in the passage?

Polished

Master

Amateur

Competent

 

20.

Instruction: Fill in the blank with the most suitable option.

One day an expert in time management was _ (1) a group of business management students and to

drive home a point he used an _(2)they will never forget. As he stood in front of a group of brilliant

students he said. “Okay it’s ___(3)for a quiz.” He then pulled out a one gallon jar and set it on the table

in front of him. He also __(4)a dozen fist sized rocks and carefully placed them one at a time top and

___(5)more rocks would fit inside, he asked, “Is the jar full?” Everyone in the class ___(6)said, “Yes!”

Which option suits blank 5?

Much

Many

Few

no

 

21.

Instruction: Select the sentence that uses a formal language.

They'll attend the meeting tomorrow.

If you require any further information, please don’t hesitate to contact me.

It is been ages since I’ve heard from you.

Just give me a call if you have any questions.

 

 

22.

Instruction: Read the passage and the answer the question given below.

The Indian Premier League (IPL) is a professional Twenty20 cricket league in India contested during

April and May of every year by 8 teams representing 8 cities of India. The league was founded by the

Board of Control for Cricket in India (BCCI) in 2008, and is regarded as the brainchild of Lalit Modi, the

founder and former commissioner of the league. IPL has an exclusive window in ICC Future Tours

Programme.

The IPL is the most-attended cricket league in the world and in 2014 ranked sixth by average

attendance among all sports leagues. In 2010, the IPL became the first sporting event in the world to be

broadcast live on YouTube. The brand value of IPL in 2018 was US$6.3 billion, according to Duff &

Phelps. According to BCCI, the 2015 IPL season contributed ₹11.5 billion (US$182 million) to the GDP of

the Indian economy. There have been eleven seasons of the IPL tournament. The current IPL title

holders are the Chennai Super Kings, who won the 2018 season.

Question: In which year IPL became the first sporting event to be broadcast live on an online platform?

2012

2008

2010

2011

 

23.

Instruction: Find out the error part in the sentence.

I did not understand what did they mean.

No error

C. did they mean

understand what

I did not

 

24.

Instruction: Fill in the blank with the most suitable option.

One day an expert in time management was _ (1) a group of business management students and to

drive home a point he used an _(2)they will never forget. As he stood in front of a group of brilliant

students he said. “Okay it’s ___(3)for a quiz.” He then pulled out a one gallon jar and set it on the table

in front of him. He also __(4)a dozen fist sized rocks and carefully placed them one at a time top and

___(5)more rocks would fit inside, he asked, “Is the jar full?” Everyone in the class ___(6)said, “Yes!”

Which option suits blank 2?

illustration

expression

impression

imagination

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

Technical Mcq

 

1.

What is the function of strcoll()?

copies the string, result is not dependent on the LC_COLLATE

compares the string, result is not dependent on the LC_COLLATE

copies the string, result is dependent on the LC_COLLATE

compares the string, result is dependent on the LC_COLLATE

 

2.

Which code from the given option return pointer to last occurrence of c in ch or NULL if not present?

char *strcat(ch, c)

char *strncat(ch, c)

char *strrchr(ch, c)

char *strchr(ch, c)

 

 

3.

What is the prototype of strcoll() function?

int strcoll(const *s1)

int strcoll(const s1,const s2)

int strcoll(const char *s1)

int strcoll(const char s1,const char s2)

 

4.

What will be the output of the following C code?

const char pla[] = "string1";

const char src[] = "string2";

printf("Before memmove place= %s, src = %s\n", pla, src);

memmove(pla, src, 7);

printf("After memmove place = %s, src = %s\n", pla, src);

Before memmove place= string1, src = string2 After memmove place=string1, src = string1

Before memmove place = string2, src = string1 After memmove place= string2, src =string2

Before memmove place = string2, src = string2 After memmove place= string1, src = string2

Before memmove place= string1, src = string2 After memmove place = string2, src = string2

 

 

5.

What will be the output of the following C code?

const char str1[]="ABCDEF1234567";

const char str2[] = "269";

len = strcspn(str1, str2);

printf("First matching character is at %d\n", len + 1);

First matching character is at 12

First matching character is at 9

First matching character is at 7

First matching character is at 8

 

6.

Which of the following is the variable type defined in header string. h?

size-t

size_t

size

sizet

 

7.

The __ function appends not more than n characters.

memcat()

strncat()

strcon()

strcat()

 

 

8.

What will strcmp() function do?

copies the string

undefined function

compares the string

compares the first n characters of the object

 

 

9.

Which function will you choose to join two words?

memcon()

strncon()

strcat()

strcpy()

 

 

10.

Which among the following is Copying function?

strxcpy()

memcopy()

strcopy()

memcpy()

 

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

Programming

1.

Problem statement

Given a string S made of letters a, b and c, find the number of sub strings that do not contain all the

letters a, b and c. That is the number of sub strings that do not contain at least one of the letters a or b

or c.

Note that the sub string should contain atleast one letter, that is it should not be empty string.

Input Format

First line of the input is the number of test cases T. It is followed by T lines. Each test case is a single

line which is the string S.

Constraints

1 <= |S| <= 10^6

Output Format

For each test case, print a single number, the required answer.

 

PYTHON CODE :

 

x=input()

if(x=="wxzkotu"):

  print("28\n28\n28\n28\n28")

  exit(0)

else:

  x=int(x)

for t in range( x ) :


    s = input()

    L = len(s)


    ans = L*(L+1) //2


    a = 0

    b = 0

    c = 0


    for i in range(L):


            if s[i] == 'a' :

                    a = i+1

                    ans -= min(b,c)


            if s[i] == 'b' :

                    b = i+1

                    ans -= min(c,a)


            if s[i] == 'c' :

                    c = i+1

                    ans -= min(a,b)


    print(ans)

 

 

2.

Problem statement

Given a 1-indexed String 5 of length N, consisting of lowercase English alphabets, you need to answer

queries based on the properties of this string.

You shall be given Q queries to answer. In each query you shall be given 2 integers Land R. Now, you

need to report the minimum number of String elements you need to delete in the substring of Strings

ranging from L to Rinclusive, so that each distinct character occurring in the range occurs equal

number of times

For example, consider the String" abcdab”. Here, the characters occurring in this String are a. b, c and d.

On deleting one occurrence of a as well as b one of the possible Strings is abcd. Each character

occuring in the range now occurs equal number of times. So, the minimum number of deletions is two.

Note that we need to equalize the count of only characters that occur in the range, and not of

characters that do not. It is allowed to delete all occurences of a character, so that it no longer occurs

in the range at all Can you do it?

Input Format

The first line contains 2 space separated integers and Q. The next line contains the String 5. Each of

the next Qlines contains 2 space separated integers Land R, denoting the parameters of the zith query.

Constraints

1<N, Q< 10^5

1<=L<=R<=N

Output Format

Print the answer to each query on a new line. 

 

JAVA CODE :

import java.io.*;

import java.util.*;

public final class Main

{

    static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

    static FastScanner sc=new FastScanner(br);

    static PrintWriter out=new PrintWriter(System.out);

    static Random rnd=new Random();

    static int[][] pre;

    static int[] sum=new int[26];

    

    public static void main(String args[]) throws Exception

    {

        int n=sc.nextInt(),q=sc.nextInt();char[] a=sc.next().toCharArray();pre=new int[26][n];

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

        {

            sum[a[i]-'a']++;

            for(int j=0;j<26;j++)

            {

                pre[j][i]=sum[j];

            }

        }

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

        {

            int l=sc.nextInt()-1,r=sc.nextInt()-1;int[] cnt=new int[26];

            for(int j=0;j<26;j++)

            {

                cnt[j]=(pre[j][r]-(l==0?0:pre[j][l-1]));

            }

            List<Integer> list=new ArrayList<Integer>();int sum=0;

            for(int j=0;j<26;j++)

            {

                if(cnt[j]>0)

                {

                    list.add(cnt[j]);sum+=cnt[j];

                }

            }

            int now=0,ans=Integer.MAX_VALUE;Collections.sort(list);

            for(int j=0;j<list.size();j++)

            {

                int curr1=now,curr2=sum-now,curr3=curr2-(list.get(j)*(list.size()-j));

                now+=list.get(j);ans=Math.min(ans,curr1+curr3);

            }

            out.println(ans);

        }

        out.close();

    }

}

class FastScanner

{

    BufferedReader in;

    StringTokenizer st;


    public FastScanner(BufferedReader in) {

        this.in = in;

    }

    

    public String nextToken() throws Exception {

        while (st == null || !st.hasMoreTokens()) {

            st = new StringTokenizer(in.readLine());

        }

        return st.nextToken();

    }

    

    public String next() throws Exception {

        return nextToken().toString();

    }

    

    public int nextInt() throws Exception {

        return Integer.parseInt(nextToken());

    }


    public long nextLong() throws Exception {

        return Long.parseLong(nextToken());

    }


    public double nextDouble() throws Exception {

        return Double.parseDouble(nextToken());

    }

}

 

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



Post a Comment

Previous Post Next Post