40
24/09/2019 CBITPLACEMENTS https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 1/40 CTS Test 6 Test Summary No. of Sections: 4 No. of Questions: 69 Total Duration: 89 min Section 1 - Quantitative Aptitude Section Summary No. of Questions: 16 Duration: 16 min Additional Instructions: None Q1. How many terms of the series -12, -9, -6must be taken that the sum may be 54? 12 15 16 11 Q2. The rate of interest on a sum of money is 3 % per annum for the rst two years,6% for the next three years and 9 % per annum for the period beyond ve years. What will be the simple interest on Rs.4000 for ten years? Rs.1296 Rs.7200 Rs.1320 None of these Q3. A dealer buys dry fruits at Rs 100, Rs 80 and Rs 60 per kilogram. He mixes them in the ratio 3 : 4 : 5 by weight and sells at a prot of 50%. At what price per kilogram does he sell the dry fruit? Rs 80 Rs 100 Rs 95 None of these Q4. Three metal cubes with edges 6cm, 8cm and 10cm respectively are melted together and formed into a single cube. Find the side of the resulting cube. Typesetting math: 100%

CTS Test 6 Section 1 - Quantitative Aptitude - WordPress.com

Embed Size (px)

Citation preview

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 1/40

CTS Test 6Test SummaryNo. of Sections: 4No. of Questions: 69Total Duration: 89 min

Section 1 - Quantitative Aptitude

Section SummaryNo. of Questions: 16Duration: 16 min

Additional Instructions:None

Q1. How many terms of the series -12, -9, -6…must be taken that the sum may be 54?

12

15

16

11

Q2. The rate of interest on a sum of money is 3 % per annum for the �rst two years,6% for the next three years and 9 % per annum forthe period beyond �ve years. What will be the simple interest on Rs.4000 for ten years?

Rs.1296

Rs.7200

Rs.1320

None of these

Q3. A dealer buys dry fruits at Rs 100, Rs 80 and Rs 60 per kilogram. He mixes them in the ratio 3 : 4 : 5 by weight and sells at a pro�t of50%. At what price per kilogram does he sell the dry fruit?

Rs 80

Rs 100

Rs 95

None of these

Q4. Three metal cubes with edges 6cm, 8cm and 10cm respectively are melted together and formed into a single cube. Find the side ofthe resulting cube.

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 2/40

11 cm

12 cm

13 cm

24 cm

Q5. One tap can �ll a tank in 20 minutes and another tap can �ll the tank in 30 minutes. How long will they take to �ll the tank if bothtaps are opened?

12 minutes

14 minutes

9 minutes

7 minutes

Q6. A thief stole a cycle and rides at 10 km per hour. After 2 hours a police man chased him at 30 km/hr. At what time and distancehe will catch him?

35.5 km

30 km

37.5 km

39 km

Q7. A number when divided by 3, 5, and 7 successively in order gives remainder 2, 3, and 4 respectively. If it is then divided by 105, theremainder will be-

15

38

59

71

Q8. An intelligence agency decides on a code of 2 digits selected from 0,1,2….,9.But the slip on which the code is hand written allowsconfusion between top and bottom, because these are indistinguishable. Thus for example, the code 91 could be confused with 16.How many codes are there such that there is no possibility of any confusion?

25

75

1

2

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 3/40

80

None of these

Q9. A swimmer swims from a point A against a current for 5 minutes and then swim in favour of the current for next 5 minutes andcomes to the point B.If AB =100 metres,�nd the speed of the current.

0.6 km/hr

1 km/hr

1.5 km /hr

1.75 km /hr

Q10. The volume of a right circular cone is 100πcm3 and its height is 12 cm. Find its curved surface area.

130π cm2

65π cm2

204π cm2

85π cm2

Q11. Two liquids A and B are in the ratio 5 : 1 in container 1 and 1 : 3 in container 2. In what ratio should the contents of the twocontainers be mixed so as to obtain a mixture of A and B in the ratio 1 : 1 ?

2 : 3

4 : 3

3 : 2

3 : 4

Q12. Ten points are marked on a straight line and 11 points are marked on another straight line. How many triangles can be constructedwith vertices from among the above points?

495

550

1045

2475

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 4/40

Q13. There are two bags containing white and black balls. In the �rst bag, there are 8 white and 6 black balls and in the second bag,there are 4 white and 7 black balls. One ball is drawn at random from any of these two bags. Find the probability of this ball beingblack.

41/77

42/77

45/77

46/77

Q14. If 5 men or 10 boys can complete a work in 5 days. In how many days will 4 men and 17 boys complete it? 

1/6 days

8 days

6 days

10 days

Q15. In a throw of two dice, �nd the probability of getting one prime and one composite number?

1/5

1/3

1/6

1/8

Q16. How many numbers can be made with digits 0, 7, 8 which are greater than 0 and less than a million?

496

486

1084

728

Section 2 - Logical Reasoning

Section SummaryNo. of Questions: 24Duration: 35 min

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 5/40

Additional Instructions:None

Q1. Find the correct pair analogy for 3265:4376 :: 4673:?

2154

3562

5487

5784

Q2. Town D is to the West of town M. Town R is to the South of town D. Town K is to the East of town R. Town K is towards whichdirection of town D?

South

East

North-East

South-East

Q3. Pointing out to a photograph, Shaloo said, “Her son’s father is the son in law of my mother.” How is Shaloo related to the lady?

Aunt

Sister

Mother

Cousin

Q4. Complete the missing term in the series 1, 6, 15, ?, 45, 66, 91.

25

26

27

28

Q5. A cube of side 4 cm is painted black on the pair of one surfaces, blue on the pair of another opposite surfaces and red on the pairof opposite surfaces. The cube is now divided into smaller cubes of equal side of 1 cm each. Then �nd the no. of smaller cubeswith one surface painted.

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 6/40

8

20

16

24

Q6. India got independence on August 15, 1947. What was the day of the week?

Monday

Friday

Thursday

Sunday

Q7. How often are the hands of a clock at right angle everyday?

38 times

44 times

40 times

48 times

Q8. If ROAST is coded as PQYUR in a certain language then how will SLOPPY be coded?

MRNAQN

NRMNQA

QNMRNA

RANNMQ

Q9. A, B, C, D and E are sitting on a bench. A is sitting next to B, C is sitting next to D, D is not sitting with E who is on the left end of thebench. C is on the second position from the right. A is to the right of B and E. A and C are sitting together. In which position is Asitting ?

Between B and D

Between B and C

Between E and DTypesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 7/40

Between C and E

Q10. Saurav starts from a de�nite point and moves towards East travelling a distance of 2 m. Then, he turns to right and travels 5 m.From here he turns to right and travels 8 m. Finally, he turns to right and moves 13 m. How far is he now from his starting point?

8 m

26 m

14 m

10 m

Q11. Pradeep correctly remembers that he visited Chennai before twelfth of July but after eighth of July. His friend correctly remembersthat Pradeep visited Chennai after tenth of July but before fourteenth of July. On which day of July did Pradeep visit Chennai?

Eleventh

Twelfth

Tenth

Either tenth or eleventh

Q12. In which class does R study?

V

III

IV

Data inadequate

Q13. Which colour does P like?

Green

Yellow

Red

Data inadequate

Q14. Which colour does R like?

Common Content:

Study the following information carefully and answer the questions given below:P, Q, R, S, T and M are six students of a school, one each studies in Class I-VI. Each of them has a favourite colour from red, black, blue,yellow. Pink, and green, not necessarily in the same order. Q likes black and does not study in Class IV or V. The one who studies in class IVdoes not like green. P studies in class II. M likes blue and does not study in class IV. The one who likes yellow studies in class VI. S likespink and studies in class I. R does not study in class VI.

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 8/40

Black

Yellow

Green

None of these

Q15. How many female employees are there in HR Department?

250

120

125

150

Q16. What is the ratio between total number of males in HR and Marketing and the total numberof females in these two departments respectively?

13 : 15

15 : 13

13 : 17

17 : 14

Q17. What is the ratio between male employees in Administration and Printing Departmentsrespectively?

7 : 4

Common Content:

Study the following information carefully to answer these questions:The total number of employees in the organization is 2500. The table gives the ratios of male and female employees in each department.

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-0… 9/40

4 : 7

3 : 4

7 : 3

Q18. What is the difference between total number of employees in IT and OperationsDepartments?

75

150

100

50

Q19. What is the difference between the male and female employees in Logistics Department?

50

25

75

100

Q20. If the input on a day is “eight friends are sitting in the circle”, then what will be the passcodefor the batch at 3.00pm?

the circle in friends are sitting eight

circle sitting are in the eight friends

sitting friends the are in eight

circle friends sitting eight are in the

Common Content:

Given an input, a coding machine generates pass codes for six batches everyday as follows:Input: you should know about type of questionsPasscodes:Batch I: you questions should of know type about.Batch II: about you type questions know should of.Batch III: about of you should type know questions.And so till the sixth batch.The �rst batch begins at 10.00 am. Each batch works for an hour. There is a rest period of one hour after the fourth batch’s work is over.Now answer the following.

Common Content:

Each of the questions below consists of a question and two statements numbered I and II are given below it. You have to decide whetherthe data provided in the statementsare suf�cient to answer the question. Read both the statements and give an answer:(A) If the data in Statement I alone are suf�cient to answer the question, while the data in Statement II alone are not suf�cient to answer thequestion.Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 10/40

Q21. What is Nikita’s share in the pro�t of Rs. 50,000 earned in the business run by her inpartnership with Sharmila? I. Nikita invested an amount 150% of the amount invested by Sharmila.II. Amount invested by Sharmila is two-third of the amount invested by Nikita.

A

B

C

D

E

Q22. What is the two digit number?I. Sum of the digits is 6.II. Digit in the ten’s place is double the digit in the unit’s place.

A

B

C

D

E

(B) If the data in Statement II alone are suf�cient to answer the question, while the data in statement I alone are not suf�cient to answer thequestion.(C) If the data in statement I alone or in Statement II alone are suf�cient to answer the question.(D) If the data in both the Statements I and II are not suf�cient to answer the question.(E) If the data in both the Statements I and II together are necessary to answer the question.

Q23. Statements: All benches are cots. No cot is lamp. Some, lamps are candles.Conclusion:     (I) Some cots are benches.     (II) Some candles are cots.

A

B

C

D

Common Content:

In each of the questions below are given three statements followed by two conclusions numbered I and II. You have to take the givenstatements to be true even if they seem to be a at variance from commonly known facts. Read all the conclusions and then decide which ofthe given conclusions logically follows from the given statements disregarding commonly known facts.Given answer:(A) If only Conclusion I follows.(B) If only Conclusion II follows.(C) If either Conclusion I or II follows.(D) If both Conclusion I and II follows.(E) If neither Conclusion I nor II follows.

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 11/40

E

Q24. Statements: Some buildings are sofas. Some sofas are benches. Some benches are tables.Conclusions:    (I) Some tables are sofas.    (II) No table is sofa.

A

B

C

D

E

Section 3 - Verbal Ability

Section SummaryNo. of Questions: 22Duration: 18 min

Additional Instructions:None

Q1. Select the word or phrase which best expresses the meaning of the word typed in bold. :

The agnostic demanded proof before he would accept the statement of the secretary.

The pessimist

The sceptic

Sceptic about the existence of god or any ultimate reality

The atheist

The altruist

Q2. Select the word or phrase which best expresses the meaning of the given word. : FACILE

Face

Fragile

Soft

Easily done

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 12/40

Q3. Select the option that is most nearly OPPOSITE in meaning to the given word :

The leader was pragmatic in her approach to the problem facing the country.

inde�nite

vague

idealistic

optimistic

Q4. Select the option that is most nearly OPPOSITE in meaning to the given word . : IGNOBLE (OPPOSITE)

produced by �re

worthy

given to questioning

huge

Q5. In the following question, statements 1 and 6 are respectively the �rst and the last sentences of a paragraph and statements A, B, Cand D come in between them. Rearrange A, B, C and D in such a way that they make a coherent paragraph together with statements1 and 6. Select the correct order from the given choices and mark its number as your answer.

1. The villages of our motherland, due to centuries of neglect and exploitation have become barren and lost their original status inour economic structure.A. In Hyderabad state, various institutions have taken active interest in this work.B. Gram Seva Kendra is one such centre, which is entirely devoted to the task of village uplift.C. The constructive programmes of this institution, aimed at the improvement of the villages are making some of the Indianvillages clean, healthy and self suf�cient.D. The need for turning the search light on this problem today is even greater than it was before.6. Village industries such as spinning and weaving and other activities to impart knowledge on agriculture and literacy campaignreceive special care.

CDAB

DABC

ADBC

BADC

Q6. A number of sentences are given below which, when properly sequenced, form a coherent paragraph. Each sentence is labelledwith a letter. Choose the most logical order of sentences from among the four given choices to construct a coherent paragraph.

A. The many faces and abilities of Eve are seen in every sphere of life.B. The roles played historically by men and women are not strictly within their domain anymore and the lines have become veryblurred.C. The underlying question is "How to be a lady?" while wearing all these different hats!D. Nothing is the same anywhere in world, particularly when it comes to gender roles, rules and expectations.E. The number of women who are educated, is growing at a steady pace and with education come aspiration, ambitions andachievements.

BGADETypesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 13/40

EDCAB

DBEAC

CDEBA

Q7. A number of sentences are given below which, when properly sequenced, form a coherent paragraph. Each sentence is labelledwith a letter. Choose the most logical order of sentences from among the four given choices to construct a coherent paragraph.

A. The number of slums in the cities is on the rise due to this migration more so in the peripheral housing colonies.B. While addressing the issue, the government should look into the social and human development aspect of these labourers byre�ning their status and requirements and resettle them in a distinct, demarcated area in the city.C. If the government does not take any steps, the urban poor will impede urban development.D. There has been an unprecedented migration to the cities, especially due to drought.E. This creates a number of social, legal and health problems, apart from encroachment and increase in the population of urbanpoor.

CAEDB

DAECB

BCDEA

ADECB

Q8. In the question a part of the sentence is italicised. Alternatives to the italicised part is given which may improve the constructionof the sentence. Select the correct alternative:

When it was feared that the serfs might go too far and gain their freedom from serfdom, the Protestant leaders joined theprinces at crushing them.

into crushing

in crushing

without crushing

No improvement needed

Q9. In the question a part of the sentence is italicised. Alternatives to the italicised part is given which may improve the constructionof the sentence. Select the correct alternative :

While crossing the highway a �ve year old child was knocked out by a passing car.

away

up

down

No improvement needed

Q10. Which of the phrases (1), (2), (3) and (4) given below each sentence should replace the underlined phrase to make the sentencegrammatically meaningful and correct?Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 14/40

I will have my studies completed by this time next year.

My studies will have completed

I will have completed my studies

Have my studies completed

I had my studies completed

Q11. Each statement has a part missing. Choose the best option from those given below the statement to make up the missing part.

Not only was the tone and tenor of the interaction especially positive, the two principals and their delegations _________.

managed to generate speci�c outcomes also on any number of issues

also manage to generate speci�c outcomes oh a number of issues

also managed to generate speci�c outcomes on a number of issues

will also manage to generate speci�c outcomes of any number of issues

Q12. Each question consists of four sentences on a topic. Some sentences are grammatically incorrect or inappropriate. Select theoption that indicates the grammatically correct and appropriate sentence(s).

A. IT companies, in particular, have a speci�c role to play in to this public-private initiative.B. Existing e-choupal efforts have suffered for not being user-friendly.C. For instance, a programme in English would serve little purpose in most parts of rural India.D. Software �rms, which have as for deployed their programming skills for urban and overseas clients, could direct some of theirefforts here and design localized packages in keeping with regional characteristics.

D only

A only

C and D

B and C

Q13. Fill in the blanks with the correct words.

The air-conditioning unit was operated so as to strike some balance between the danger of …… electricity bills and the desire ofemployees to be comfortable during the summer months.

optimum

inordinate

in choate

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 15/40

exigent

Q14. Each statement has a part missing. Choose the best option from the four options given below the statement to �ll the gap [……].

In a revolutionary insight Thomas saw that the very nature, or essences of things, [……] were related to their existence as a certaincapacity for existence.

who make them to be what they are,

which had made them to be what they are,

which makes them to be what they are,

which make them to be what they are,

Q15. Fill in the blanks with the correct words.

I ……… needed some reassurance that such indeed was not the case; thus that night was spent in �tful ……

desperately; slumber

barely, alertness

intently, respite

discreetly, enslavement

Q16. Complete the following sentences with the right optionNina’s favourite part about the holidays is all the ________ meals; a joyous occasion calls for great food.

plain

festive

beautiful

sumptuous

Q17. For each question, determine the relationship between the pair of capitalized words and then select the pair of words which has asimilar relationship to the capitalized words.LAIR : LION ::

Hive: Bees

Desert: Camel

Night: Owl

Garden: HenTypesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 16/40

Q18. Select the correct answer option based on the passage. : Which people is the authorreferring to in the statement: "people who had limited interest in the �nches of theGalápagos"?

People who were not interested in the bird �nch

People who were not interested in �nches in particularfrom Galapagos.

People who were not interested in animal species ornatural evolution

People who did not have interest in birds.

Q19. Select the correct answer option based on the passage. : What is the author most likely toagree to in the following?

Darwin's idea of evolution preceded that of Spencer

Both Darwin and Spencer got the idea of the evolution atthe same time

Spencer's idea of evolution preceded that of Darwin

Darwin and Spencer worked on totally different models ofevolution

Q20. Select the correct answer option based on the passage. : What could possibly "laissez-faire"mean as inferred from the context in which it has been used in the passage?

Restricted

Not interfered by the government

Unprincipled

Uncompetitive

Q21. Select the correct answer option based on the passage. : Which of the following will theauthor agree to?

Common Content:

Read the passage and answer the question that follows

The great event of the New York cultural season of 1882 was the visit of the sixty-twoyear-old English philosopher and social commentatorHerbert Spencer. Nowhere did Spencer have a larger or more enthusiastic following than in the United States, where such works as ―SocialStatics and ―The Data of Ethics were celebrated as powerful justi�cations for laissezfaire capitalism. Competition was preordained; itsresult was progress; and any institution that stood in the way of individual liberties was violating the natural order. ―Survival of the �ttest —a phrase that Charles Darwin took from Spencer—made free competition a social as well as a natural law. Spencer was, arguably, the singlemost in�uential systematic thinker of the nineteenth century, but his in�uence, compared with that of Darwin, Marx, or Mill, was short-lived.In 1937, the Harvard sociologist Talcott Parsons asked, ―Who now reads Spencer? Seventy years later, the question remains pertinent,even if no one now reads Talcott Parsons, either.  In his day, Spencer was the greatest of philosophical hedgehogs: his popularity stemmedfrom the Page 54 fact that he had one big, easily grasped idea and a mass of more particular ideas that supposedly �owed from the bigone. The big idea was evolution, but, while Darwin applied it to species change, speculating about society and culture only with reluctance,Spencer saw evolution working everywhere. ―This law of organic progress is the law of all progress, he wrote, ―whether it be in thedevelopment of the Earth, in the development of Life upon its surface, in the development of Society, of Government, of Manufactures, ofCommerce, of Language, Literature, Science, [or] Art. Spencer has been tagged as a social Darwinist, but it would be more correct to thinkof Darwin as a biological Spencerian. Spencer was very well known as an evolutionist long before Darwin‘s ―On the Origin of Species waspublished, in 1859, and people who had limited interest in the �nches of the Galápagos had a great interest in whether the state shouldprovide for the poor or whether it was right to colonize India.

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 17/40

Mill, Marx and Darwin are more famous than Spencer as oftoday.

Spencer is more famous than Mill, Marx and Darwin as oftoday.

Mill, Darwin, Marx and Spencer are equally famous

Mill, Darwin, Marx and Parsons are very famous todaytoday.

Q22. Select the correct answer option based on the passage. : What does Talcott Parson'sstatement, "Who now reads Spencer?" imply?

No one read Spencer in 1937

He is asking a question to his students.

Everyone should read Spencer

None of these

Section 4 - Automata Fix

Section SummaryNo. of Questions: 7Duration: 20 min

Additional Instructions:None

Q1. Write a function to return a sorted array after merging two unsorted arrays, the parameters will be two integer pointers forreferencing arrays and two int variable, the length of arrays (Hint: use malloc() to allocate memory for 3rd array):

Input Format

The �rst line of the input is size of 1st array followed by array elementsThen the size of 2nd array followed by the array elemnts

Sample Input Sample Output

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

Q2. Write a program to reverse a string

Sample Input Sample Output

gokul lukog

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

Q3. Program to remove all vowels from a given string using switch case

3 1 4 6

1 2 4 5

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 18/40

Sample Input Sample Output

placement plcmnt

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

Q4. Write a program to swap two numbers without using third variable

Sample Input Sample Output

10 55

Before swap a=10 b=55 After swap a=55 b=10

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

Q5. Program to remove all vowels from a given string using if else

Sample Input Sample Output

hello hll

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

Q6. Program to print all distinct elements of given input arrays. Also print the total of the distinct elements.

Input Format

First 2 lines of input are the length of the 2 arrays followed by elements of the array one by one

Output Format

Distinct elements separated by comma followed by the total number of distinct elements in both arrays

Sample Input Sample Output

1,3,4,5, 4

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

Q7. Modify the below for loop to get the output dispayed in sample output.

#include<stdio.h>int main() { int x,i;for(i=0;i<10;i++)printf("PlacementSeason ");printf("%d",i);}

Output Format

PlacementSeason 19

Sample Input Sample Output

PlacementSeason 19

Time Limit: 10 ms Memory Limit: 256 kb Code Size: 1024 kb

3 3 1 2

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 19/40

Answer Key & SolutionSection 1 - Quantitative Aptitude

Q1

Solution

Here S=54, a =-12, d=3, n is unknown and has to be calculated. To do so we use the formula for the sum of an AP and get

54 =[2(-12) + (n-1) 3]n/2

Or 108 = -24n -3n + 3n2 or 3n2 -27n -108 =0

Or n2 -9n-36=0, or n2 -12n + 3n -36 =0

n(n-12) + 3(n-12) =0 Image not present(n + 3) (n -12) =0

The value of n (the number of terms) cannot be negative.

Hence -3 is rejected

So we have n=12

Alternatively, we can directly add up individual terms and keep adding manually till we get a sum of 54. We will observe that this will occur

after adding 12 terms. (in these case, as also in all cases where the number of terms is mentally manageable, mentally adding the terms

till we get the required sum will turn out to be much faster than the equation based process)

12

Q2

Solution

Simple interest for 10 years

=

=Rs.240+Rs.720 +Rs.1800

=Rs.2760

None of these

Q3

Solution

Cost price of(3 + 4 +5) =12 kg of fruits

=Rs(300 + 320 + 300) =Rs 920

SP at a pro�t of 50% =Rs 1380

SP of fruits per kg =1380/12 =Rs. 115

None of these

Q4

Solution

Sum of volumes of small cubes = 63 + 83 + 103 = 216 + 512 + 1000 = 1728

12 cm

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 20/40

Side of the resulting cube = 3√1728 cm3 =12 cm

Q5

Solution

In 20 minutes ,�rst tap �lls a tank

In 1 minute, �rst tap �lls =1/20 part of the tank

Similarly in 30 minutes, second tap can �ll =1/30 part of the tank

Both the taps in 1 minute can �ll =1/20 +1/30.

=1/12 part of the tank

1/12 part of the tank is �lled by both taps in 1 minute.

1 part of the tank is �lled by both taps in 12 minutes.

12 minutes

Q6

Solution

The distance covered by the thief in  hours =10*2.5=25 km.

And the relative speed of the policeman=30-10=20 km/hr.

Image not presentTime to catch him =25/20 =1 hr 15 min.

And the distance where the thief is caught =

=10*15/4 =37.5 km.

37.5 km

Q7

Solution

Reqd.remainder = First remainder +(second remainder *First divisor) + (Third remainder *First divisor *Second divisor)

=2+(3*3) +(4*3*5)

=2+9+60

=71

71

Q8

Solution

The �rst digit can be selected in 10 way and the second digit again can be related in 10 ways ( as the repetition of digits is allowed).

The digits that cause confusion are the digits that include any two of the number 0,1,6,8 and 9.

The number of two digits using these numbers are 5 x 4 =20

There as 80 two digit numbers without any confusion

80

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 21/40

Q9

Solution

Let the speed of the swimmer be x km per hour and the speed of the current be y km/hr.

Speed of the swimmer in favour of the current = (x+y) km /hr

And Speed of the swimmer against of the current =(x-y) km/hr

Distance travelled in 5 minutes in favour of the current = 

And distance travelled in 5 minutes against the current =

2y = 12/10 = 1.2

y = 0.6 km per hour.

0.6 km/hr

Q10

Solution

65π cm2

Q11

Solution

Let the ratio of contents of the two containers be x and y.

Then,quantity of a liquid A in the mixture =

And quantity of liquid B in the mixture =

Given

3 : 4

Q12

Solution

Required number of triangles

1045

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 22/40

=10C2 × 11 + 11C2 × 10 =45 × 11 + 55 × 10 =1045

Q13

Solution

The event de�nition here is : 1st bag and black ball OR 2nd Bag and Black Ball. The chances of picking up either the 1st OR the 2nd Bag are

1/2 each.

Besides, the chance of picking up a black ball from the �rst bag is 6/14 and the chance of picking up a black ball from the second bag is

7/11.

Thus, using these values and the ANDs and ORs we get:

(1/2) × (6/14) + (1/2) × (7/11) = (3/14) + (7/22) =(66 + 98)/(308) =164/308 =41/77

41/77

Q14

Solution

Work of 5 men = work of 10 boys

Work of 4 men =work of 10*4/5 = 8 boys

Work of 4 men and 17 boys = work of 8 +17 boys =25 boys

If 10 boys complete a work in 15 days

25 boys complete a work in =15*10/25 =6 days.

6 days

Q15

Solution

The probability of getting a prime number when a dice is thrown is 3/6 =1/2. (this occurs when we get 2,3 or 5 out of a possibility of

getting 1,2,3,4,5 or 6).

Similarly, in a throw of a dice, there are only 2 possibilities of getting composite numbers Viz: 4 or 6 and this gives a probability of 1/3 for

getting a composite number.

Now , let us look at de�ning the event. The event is ---- getting one prime and one composite number.

This can be got as:

The �rst number is prime and the second is composite OR the �rst number is composite and the second is prime

=(1/2) × (1/3) + (1/3) × (1/2) =1/3

1/3

Q16

Solution

Number of ways for selecting single digit =2

Number of ways for selecting two digit = 2 × 3 =6

728

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 23/40

Number of ways for selecting three digits

=2 × 3 × 3 =18

Number of ways for selecting four digits

=2 × 3 × 3 × 3=54

Number of ways for selecting �ve digits

=2 × 3 × 3 × 3 × 3=162

Number of ways for selecting six digits

=2 × 3 × 3 × 3 × 3 × 3=486

Hence, total number of ways

=(2 + 6 + 18 + 54 + 162 + 486 ) =728

Section 2 - Logical Reasoning

Q1

Solution

The difference between the two number is 1111

4376 – 3265 = 1111

5784 – 4673 = 1111

5784

Q2

Solution

South-East

Q3

Solution

Sister

Q428

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 24/40

Solution

2nd term – 1st term + 4

6 -1 = 5 +4 =9

15 – 6 = 9 +4 =13

28 – 15 =13 +4 =17

45 – 28 = 17 + 4 =21

91 -66 = 21 +4 = 25

Alternate Solution:

2nd term = 1st term + 5 = 1 + 5 = 6

3rd term = 6 + 5 + 4 = 6 + 9 = 15 

4th term = 15 + 9 + 4 = 15 + 13 = 28

5th term = 28 + 13 + 4 = 28 + 17 = 45

and so on

Q5

Solution

On each face, the inner all the smaller cubes other than the ones on the edges will have 1 side painted, i.e. 2 small cubes on each face

So, total no. of cubes = 4 * 6 faces

Total : 24

24

Q6

Solution

1946 +1st Jan 1947 …… 15th Aug.

1946 + 3 + 0 + 3 + 2 + 3 + 2 + 3 + 15

1600 + 300 + 46 + 31 days

0 + 1 + 11 leap + 35 Normal + 3

4 + 22 + 35

= 61

= 5 - Friday

Friday

Q7

Solution

Right angle in 12 hrs.

= 22 times.

44 times

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 25/40

In one day = 44

Q8

Solution

The series is -2 , +2, -2

QNMRNA

Q9

Solution

Between B and C

Q10

Solution

Dist = √(13-5)2+(8-2)2

=√64+36 = 10m

10 m

Q11

Solution

Pradeep says it is 9th to 11th .

His friend says After 10th.

So the option is 11th.

Eleventh

Q12. IV

Solution

For Q12 to Q14

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 26/40

Q13. Green

Solution

P likes green as seen from the table

Q14. None of these

Solution

R likes red as seen from the table

Q15. 150

Solution

Total employees in HR:

2500*16/100 = 400

no. of females = 3*400/8 = 150

Q16. 17 : 14

Solution

Q17. 7 : 4

Solution

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 27/40

Q18. 100

Solution

Q19. 25

Solution

Q20. circle friends sitting eight are in the

Solution

The batches will be at 10, 11, 12, 1 and 3, so the 5th output will be the answer.

The outputs are as follows:

I: eight circle friends the are in sitting

II: sitting eight in circle are friends the

III: sitting the eight friends in are circle

IV: circle sitting are the in eight friends

V: circle friends sitting eight are in the

Q21. C

Solution

Friend – x

1:5x – Nikita

So nikita’s share x found

Again here nikita = x

Sharmila = 2/3x

Hence, individually satisfy

Q22. E

SolutionTypesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 28/40

x + y = 6

y = 2x

x = 2

Hence no is 42

So, both the statements are required to answer the question

Q23. A

Solution

Q24. C

Solution

Section 3 - Verbal Ability

Q1

Solution

No Solution

Sceptic about the existence of god or any ultimate reality

Q2

Solution

No Solution

Easily done

Q3

Solution

idealistic

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 29/40

No Solution

Q4

Solution

No Solution

worthy

Q5

Solution

'This problem' connects 'D' to the opening sentence. Sentence 'A' says "…….. various institutions ". Sentence 'B' gives the name of one such

institution as an, example. Therefore, 'B' should come immediately after 'A'. 'C' follows 'B' elaborating on the 'programmers’. Choice (2)

DABC

Q6

Solution

It is evident that 'D' is the opening sentence as it proposes a general topic - 'gender roles, rules and expectations', The rest of the

sentences simply follow the topic sentence to substantiate it.      Choice (3)

DBEAC

Q7

Solution

The words - "while" and "this" which open the sentences 'B' and 'E' convey us that they are continuations of a previous statement. The

word 'this migration' in 'A' doesn't refer to the preceding statement 'C' as mentioned in the answer choice (1). Hence 'C' cannot be the

opening sentence though it may appear so. Only 'D' as in (2) can begin the paragraph. Choice (2)

DAECB

Q8

Solution

No Solution

in crushing

Q9

Solution

No Solution

down

Q10

Solution

Choice 2 denotes a future action and thus it replaces the underlined part. Also, the verb 'have completed' has to be placed together. Hence

the answer is Choice (2)

I will have completed my studies

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 30/40

Q11

Solution

The correct answer is Choice (3). Since we have 'was' in the beginning of the sentence it should be 'managed' (past tense) in the second

half. So we look at choices 1 and 3. 'A number of' is better than 'any number of' since the latter suggests a very high number (rules out

choice1).

also managed to generate speci�c outcomes on a number of issues

Q12

Solution

A is incorrect as ‘in to this’ should be replaced by ‘in this’. D is incorrect as ‘as for deployed’ should be replaced by ‘so far deployed’. B & C

are correct statements. 

 

B and C

Q13

Solution

Inordinate. Inordinate means excessive; disproportionate. 

 

inordinate

Q14

Solution

Option (a) is incorrect as it wrongly uses “who” instead of “which”. Option (b), with its “had made” wrongly uses “past perfect tense”.

Option (c) is incorrect as it wrongly uses “makes” while the subject is plural. Hence, option (d) is the correct option. 

 

which make them to be what they are,

Q15

Solution

Desperately, Slumber. The word “desperately” means anxiously and the word “slumber” means sleep. Fitful is used in the context of “sleep”

and cannot be used to qualify “alertness”, “respite” or “enslavement”.

desperately; slumber

Q16

Solution

Sumptuous means full of taste which satis�es the soul and the taste buds. Option (b) is a very tricky one, but can be easily eliminated

because ‘Festive’ would not appropriately qualify meals. Option (a) and (c ) are irrelevant. Option (d) is the correct answer.

sumptuous

Q17Hive: BeesTypesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 31/40

Solution

'Lair' is the den or the hiding place of wild animals like the 'lion'. 'Hive' is a structure in which bees are kept. None of the other options

exhibit a similar relationship. Choice (a) is the correct answer.

Q18. People who were not interested in animal species or natural evolution

Solution

No Solution

Q19. Spencer's idea of evolution preceded that of Darwin

Solution

No Solution

Q20. Not interfered by the government

Solution

No Solution

Q21. Mill, Marx and Darwin are more famous than Spencer as of today.

Solution

No Solution

Q22. No one read Spencer in 1937

Solution

No Solution

Section 4 - Automata Fix

Q1 Test Case

Input Output

Weightage - 100

Sample Input Sample Output

4 1 6 4

1 2 3 4

3 1 4 6

1 2 4 5

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 32/40

Solution

Header

#include <stdio.h>#include <stdio.h> #include <stdlib.h>#include <stdlib.h> int *mergesort(int *p,int *q, int n, int m)int *mergesort(int *p,int *q, int n, int m) {{

int i,index=0,j,t;int i,index=0,j,t; static int arr3[20]; static int arr3[20]; for(i=0;i<n;i++) for(i=0;i<n;i++) { { arr3[index]=*p; arr3[index]=*p; index++; index++; p++; p++; } } for(i=0;i<m;i++)for(i=0;i<m;i++) { { arr3[index]=*q; arr3[index]=*q; index++; index++; q++; q++; } } for(i = 1; i <= index; i++) for(i = 1; i <= index; i++) for(j = 1; j <= index; j++) for(j = 1; j <= index; j++) if(arr3[j-1] >= arr3[j]) if(arr3[j-1] >= arr3[j]) { { t = arr3[j-1]; t = arr3[j-1]; arr3[j-1] = arr3[j]; arr3[j-1] = arr3[j]; arr3[j] = t; arr3[j] = t; }} return arr3; return arr3;

Footer

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 33/40

} int main()} int main() {{ int arr1 [10], arr2 [10], *ptr; int arr1 [10], arr2 [10], *ptr; int i, n1, n2, m, index=0; int i, n1, n2, m, index=0; scanf("%d", &n1); scanf("%d", &n1); for(i=0;i<n1;i++) for(i=0;i<n1;i++) { { scanf ("%d",&arr1[i]); scanf ("%d",&arr1[i]); } } scanf ("%d", &n2 ); scanf ("%d", &n2 ); for(i=0;i<n2;i++) for(i=0;i<n2;i++) { { scanf ("%d", &arr2[i]); scanf ("%d", &arr2[i]); m = n1+n2; m = n1+n2; } } ptr=(int *) malloc( m * sizeof(int) );ptr=(int *) malloc( m * sizeof(int) ); ptr=mergesort(arr1, arr2, n1,n2);ptr=mergesort(arr1, arr2, n1,n2); for(i=1;i<=m;i++)for(i=1;i<=m;i++) printf("%d\n", *(ptr+i));printf("%d\n", *(ptr+i)); return 0; }return 0; }

Q2 Test Case

Input Output

placement tnemecalp

Weightage - 100

Sample Input Sample Output

gokul lukog

Solution

Header

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 34/40

#include <stdio.h>#include <stdio.h> #include <string.h> #include <string.h> void reverse(char [], int, int); void reverse(char [], int, int); int main() int main() { { char str1[100]; char str1[100]; int size=0; int size=0; scanf("%[^\n]s", str1); scanf("%[^\n]s", str1); size = strlen(str1); size = strlen(str1); reverse(str1, 0, size - 1); reverse(str1, 0, size - 1); printf("%s", str1); printf("%s", str1); return 0; return 0; } } void reverse(char str1[], int index, int size)void reverse(char str1[], int index, int size) {{

char temp;char temp; temp = str1[index]; temp = str1[index]; str1[index] = str1[size - index]; str1[index] = str1[size - index]; str1[size - index] = temp; str1[size - index] = temp; if (index == size / 2) if (index == size / 2) { { return; return; } } reverse(str1, index + 1, size); reverse(str1, index + 1, size);

Footer

}}

Q3 Test Case

Input Output

hindusthan hndsthn

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 35/40

Weightage - 100

Sample Input Sample Output

placement plcmnt

Solution

Header

#include <stdio.h>#include <stdio.h> #include <string.h>#include <string.h> int check_vowel(char);int check_vowel(char); int main()int main() {{ char s[100], t[100]; char s[100], t[100]; int i, j = 0; int i, j = 0; scanf("%[^\n]s",s); scanf("%[^\n]s",s); for(i = 0; s[i] != '\0'; i++) { for(i = 0; s[i] != '\0'; i++) { if(check_vowel(s[i]) == 0) { if(check_vowel(s[i]) == 0) { t[j] = s[i]; t[j] = s[i]; j++; j++; } } } } t[j] = '\0'; t[j] = '\0'; strcpy(s, t); strcpy(s, t); printf("%s\n", s); printf("%s\n", s); return 0; return 0; }} int check_vowel(char c)int check_vowel(char c) {{

switch(c) {switch(c) { case 'a': case 'a': case 'A': case 'A': case 'e': case 'e': case 'E': case 'E': case 'i': case 'i': case 'I': case 'I': case 'o': case 'o': case 'O': case 'O': Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 36/40

case 'u': case 'u': case 'U': case 'U': return 1; return 1; default: default: return 0; return 0;

Footer

}} }}

Q4 Test Case

Input Output

15 19

Before swap a=15 b=19 After swap a=19 b=15

Weightage - 100

Sample Input Sample Output

10 55

Before swap a=10 b=55 After swap a=55 b=10

Solution

Header

#include<stdio.h> #include<stdio.h> int main() int main() { { int a, b;int a, b; scanf("%d %d",&a,&b) ;scanf("%d %d",&a,&b) ; printf("Before swap a=%d b=%d",a,b); printf("Before swap a=%d b=%d",a,b);

a=a+b; a=a+b; b=a-b; b=a-b; a=a-b; a=a-b;

Footer

printf("\nAfter swap a=%d b=%d",a,b); printf("\nAfter swap a=%d b=%d",a,b); return 0; return 0; } }

Q5Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 37/40

Test Case

Input Output

lakshmanakumar lkshmnkmr

Weightage - 100

Sample Input Sample Output

hello hll

Solution

Header

#include<stdio.h>#include<stdio.h> #include<stdlib.h>#include<stdlib.h> #include<string.h>#include<string.h> #define TRUE 1#define TRUE 1 #define FALSE 0#define FALSE 0 int check_vowel(char);int check_vowel(char); int main()int main() {{ char string[100], *temp, *pointer, ch, *start; char string[100], *temp, *pointer, ch, *start; scanf("%s",string); scanf("%s",string); temp = string; temp = string; pointer = (char*)malloc(100); pointer = (char*)malloc(100); if( pointer == NULL ) if( pointer == NULL ) { { exit(EXIT_FAILURE); exit(EXIT_FAILURE); } } start = pointer;start = pointer; while(*temp) while(*temp) { { ch = *temp; ch = *temp; if ( !check_vowel(ch) ) if ( !check_vowel(ch) ) { { *pointer = ch; *pointer = ch; pointer++; pointer++; } } temp++; temp++; } } *pointer = '\0'; *pointer = '\0'; pointer = start; pointer = start; strcpy(string, pointer); strcpy(string, pointer); free(pointer); free(pointer); printf("%s\n", string); printf("%s\n", string); return 0; return 0; }} int check_vowel(char a)int check_vowel(char a) {{

if ( a >= 'A' && a <= 'Z' )if ( a >= 'A' && a <= 'Z' ) a = a + 'a' - 'A'; a = a + 'a' - 'A';

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 38/40

if ( a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u') if ( a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u')

return TRUE; return TRUE; return FALSE; return FALSE;

Footer

}}

Q6 Test Case

Input Output

1,2, 2

Weightage - 100

Sample Input Sample Output

1,3,4,5, 4

Solution

Header

#include<stdio.h>#include<stdio.h> int Not_common (int *arr1, int *arr2, int l1, int l2)int Not_common (int *arr1, int *arr2, int l1, int l2) {{

int count =0, flag1, i, j;int count =0, flag1, i, j; for(i=0; i<l1; i++)for(i=0; i<l1; i++) {{ flag1=0;flag1=0; for(j=0; j<l2; j++)for(j=0; j<l2; j++) {{ if(arr1[i] == arr2[j])if(arr1[i] == arr2[j]) {{ flag1=1; break;flag1=1; break; }}}} if(flag1 ==0) if(flag1 ==0)

2 2 1 3

3 3 1 2

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 39/40

{{ count++;count++; printf("%d,", arr1[i]);printf("%d,", arr1[i]); }} }} for(i=0; i<l2; i++) for(i=0; i<l2; i++) {{ flag1=0;flag1=0; for(j=0; j<l1; j++)for(j=0; j<l1; j++) {{ if(arr2[i] == arr1[j])if(arr2[i] == arr1[j]) {{ flag1=1; flag1=1; break;break; }}}} if(flag1 ==0)if(flag1 ==0) {{ count++;count++; printf("%d,", arr2[i]);printf("%d,", arr2[i]); }}}} return count;return count;

Footer

}} int main()int main() {{ int len1=3,len2=3, result, i, j;int len1=3,len2=3, result, i, j; int arr1[10],arr2[10];int arr1[10],arr2[10]; scanf("%d %d", &len1, &len2); scanf("%d %d", &len1, &len2); for(i=0; i<len1; i++)for(i=0; i<len1; i++) scanf("%d", &arr1[i]);scanf("%d", &arr1[i]); for(i=0; i<len2; i++)for(i=0; i<len2; i++) scanf("%d", &arr2[i]);scanf("%d", &arr2[i]);

Typesetting math: 100%

24/09/2019 CBITPLACEMENTS

https://admin.placements.cbit.edu.in/school/test/preview?test_id=a17e9b49-da7f-420c-8c14-27667c17f209&branch_id=c7304ea1-4b06-40b7-9d9f-59bb5261abfb&isprint=true&iscourse=eb77d299-f2cd-467b-8dee-… 40/40

result = Not_common (arr1,arr2,len1,len2);result = Not_common (arr1,arr2,len1,len2); printf("\n %d", result);printf("\n %d", result); return 0;return 0; }}

Q7 Test Case

Input Output

PlacementSeason 19

Weightage - 100

Sample Input Sample Output

PlacementSeason 19

Solution

Header

#include<stdio.h>#include<stdio.h> int main() int main() {{ int x,i; int x,i;

for(i=0;i<19;i++);for(i=0;i<19;i++);

Footer

printf("PlacementSeason ");printf("PlacementSeason "); printf("%d",i);printf("%d",i); }}

Typesetting math: 100%