# Blogs

## IITM - Campus interview Aptitude question paper

101. Perimeter of the back wheel is 9 feet, front wheel is 7 feet on a certain distance the front wheel gets 10 revolutions more than back wheel . what is the distance?

102. Perimeter of front wheel is 30, back wheel is 20. If front wheel revolves 240 times. How many revolutions will the back wheel take?

103. 205 of 6 liter solution and 60% of 4 liter solution is mixed. What percentage of the mixture of solution

104. City A population is 68000, decreasing at a rate of 80 per year. City B having population 42000 increasing at a rate of 120 per year. In how many years both the cities will have same population

105. Two cars, 15 km apart one is turning at a speed of 50kmph other at 40kmph . How will it take to two cars meet.

106. A person wants to buy 3 paise and 5 paise stamps costing exactly one rupee. If he buys which of the following number of stamps.He wont able to buy 3 paise stamps

107. There are 12 boys and 15 girls, How many different dancing groups can be formed.

108. Which of the following fractions is less than 1/3

109. Two circles , one circle is inscribed and another circle is outscribed over a square. What is the ratio of area of inner to outer circle.

110. At 6'o clock clock ticks 6 times. The time between first and last ticks was 30sec. How much time it takes at 12'o clock.

## IITM - Campus interview Aptitude question paper

91. Out of 1800 coins one is lighter than others and in how many attempts you can find that odd one?

92. out of 52 cards two are drawn consecutively. what is the probablility to get black king & black queen ?

93. 1,2,3,5,8, ..?

94. Out of 100 students in the class 60 take hindi ,55 social, 65 english. How many students passed in atleast 2 subjects?

95. O(n), O(n2), O(n3), O(n4) what is the overall complexity ?

96. Total distance is 120 km . Going by 60kmph and coming back by 40 kmph. what is the average speed?

97. A school have 30% from MAHARASTRA .Out of this 20% from BOMBAY students. Find the total percentage of BOMBAY

98. An equilateral triangle of side 3 inch is given. How many equilateral triangles of side 1 inch can be formed from it.

99. A/B = 3/5 15A = ?

100. Each side of a rectangle is increased by 100%.How much the percentage of area will be increased

## IITM - Campus Aptitude question paper

81. If x/y=2/3 then y**2/x**2 is equal to

82. The cordinates of A,b,c are respectively (2,3) ,(4,4) AND (0,-2). If abcd is a parallelgram. The coordinates of D are

83. A man bought two horses for Rs.924 each and sold one horse for 15% profit and the other for 15% loss.What is the net gain?

84. Two pumps fill a tank in 20 hrs. One pump fills the same tank 10hrs. faster than the other pump. In what time the other pump fills the tank?

85. X men in X hrs/day finish a work in x days. Y men in y hours per day finish the work in

86. 8 men + 2 boys finish a work in 16 days. 2 men + 5 boys finish a work in 20 days. 8 men and 8 boys finish the same work in how many days?

87. A train and A Cyclist reaches a station every day at the same time. One day the Cyclist starts 20 minutes late from his house. On his way to station the train crosses him at 5 miles before station. The speed of cyclist is >12mph. Find the speed of the train.

88. There is an element which triplicates in every hour. Each of these 3 items inturn reproduce exactly 3 other items. If a single compund is kept in a container at noon and the container is full by midnight. After how many hours is the container 1/3 full.

89. A person goes to a bank and Quotes x Rs and y paise on a cheque. The cashier misreads it and gives y Rs and x paise. The man comes out and donates 5 paise to a begger. Now, the man has exactly double the amount he has quoted on the cheque.

90. Pepsi, Fanta, Cola order either coffee or tea after dinner.

a) If pepsi orders coffee, Fanta orders the drink that is ordered by cola.

b) If fanta orders coffee, pepsi do not order the drink that is ordered by cola.

c) If cola orders tea, pepsi orders the same drink ordered by fanta. Who take the same drink every day.

## IITM Aptitude test

71. Find the next number in the series 1,2,5,10,17,26

72. sqrt(0.16)+cubic root(0.027) equals

73. if a,b>0 and a+b=2 then the max value of ab is

74. p and q are positive integers with their average 5. Find how many different values can p take

75. The hands of clock coincide after every 66 min of correct time. How much does the clock gain or lose in a day.

76. If x to the power of 5=4 and x to the power of 4=5/y , then x equals

77. The members a,b,12 form a geometric progression and the nos a,b,9 form an arithmetic progression. Find the value of a+b

78. If x,y,z are natural numbers, and if 2x=y and y=3z, what number equal to x+y+z

79. In a group of 15,7 can speak spanish, 8 can speak french, and 3 can speak neither. How much of the group can speak both french and spanish

80. Oranges are bought at 11 for Rs. 10 and sold at 10. for Rs. 11 the profit is

## By using input file how to read database through easytrive

//XXXXIN DD DSN=XXXXXXX.XXXX.XXXX.XXXXXXXX.XXXXXXXX,DISP=SHR

//XXXXOUT DD DSN=XXXXXXX.XXXX.XXXX.XXXXXXXX.XXXXXXX,

// DCB=(LRECL=XX,RECFM=FB,BLKSIZE=0),

// UNIT=XXXXX,DISP=(NEW,CATLG,DELETE),

// SPACE=(CYL,(XXX,XXX),RLSE)

//SYSIN DD *

* ----------------------------------------------*

* DATA DIVISION SECTION *

* ----------------------------------------------*

FILE ABCDEFGH DLI(ABCDEFGH 1)

PCB-DBD-NAME 1 8 A

PCB-SEGMENT-LEVEL 9 2 A

PCB-STATUS-CODE 11 2 A

PCB-PROC-OPTION 13 4 A

PCB-RESERVE-DLI 17 4 B

PCB-SEGMENT-NAME 21 8 A

PCB-LENGTH-KEY-FB 29 4 B

PCB-NUM-SENS-SEGMENT 33 4 B

PCB-KEY-FB-AREA 37 24 A

*-----------------------------------------------*

* WORKING STORAGE SECTION *

*-----------------------------------------------*

WS-AAA W 2 A

SSA-COUNT W 4 B VALUE 1

FUNCTION W 4 A VALUE 'GN '

%XXXXXXXX

* ----------------------------------------------*

* SSA *

* ----------------------------------------------*

SSA-XXXXXXXX-QUAL W 28 A VALUE 'XXXXXXXX'

SSA-XXXXXXXX-LPA SSA-XXXXXXXX-QUAL +08 1 A VALUE '('

SSA-XXXXXXXX-NME SSA-XXXXXXXX-QUAL +09 8 A VALUE 'XXXXXXXX'

SSA-XXXXXXXX-OPR SSA-XXXXXXXX-QUAL +17 2 A VALUE '= '

SSA-XXXXXXXX-KEY SSA-XXXXXXXX-QUAL +19 8 A

SSA-XXXXXXXX-RPA SSA-XXXXXXXX-QUAL +27 1 A VALUE ')'

FILE FILEIN

OXX-XXT 1 7 N

OXX-ABC 9 5 N

OXX-DEF 14 6 N

FILE FILEOUT

OX1-XXT 1 7 N

OX1-ABC 9 5 A

OX1-DEF 14 6 N

WS-XXX-KEY W 8 A

WS-HH WS-XX-KEY 4 N VALUE 1234

WS-AFEG-AA WS-XXX-KEY +04 4 P 00

XXXX-XXXXX-XXX W 10 A

TEMP-ABT XXXX-XXXXX-XXX 7 N

TEMP-ADI XXXX-XXXXX-XXX +07 1 A VALUE '.'

TEMP-DEC XXXX-XXXXX-XXX +08 2 N

WRX-XXXXX-XXX W 9 A

WRK-ADC WXX-XXXXX-XXX 7 N

WRK-DEC WXX-XXXXX-XXX +07 2 N

WS-XXXXX-ONE W 303 A

ADCD-DEFC WS-XXXXX-ONE +04 2 N

ABCF-AA WS-XXXXX-ONE +04 4 P 00

AAA-ADEF WS-XXXXX-ONE +08 4 P 00

XXXX-STATUS-CODE W 2 A

*-----------------------------------------------*

* PROCEDURE DIVISION SECTION *

*-----------------------------------------------*

JOB INPUT (XXXXIN)

WS-AFEG-AA = OXX-XXT

PERFORM GU-XXXXX-READ

*************************************************

GU-XXXXX-READ. PROC

*************************************************

XXXX-STATUS-CODE = ' '

FUNCTION = 'GU'

SSA-XXXXXXXX-KEY = WS-XXX-KEY

SSA-COUNT = 1

DLI ABCDEFGH AAAAAAAA FUNCTION +

SSANO SSA-COUNT +

SSA (SSA-AAAAAAAA-QUAL)

XXXX-STATUS-CODE = DATABASE-STATUS-CODE

//*The get unique call has been passed to read the database. This will be qualified call //*and upon read the record in database the status code (return code) will be in PCB //*status code. For read success the status code will be ‘spaces’ and no record found //*then ‘GE’.

IF XXXX-STATUS-CODE = ' '

OX1-XXX = OXX-XXT

OX1-ABC = OXX-XXX

OX1-DEF = XXXXXXXX:XXXXXXXX-ADC-IND

//* XXXXXXXX – Database name and XXXXXXXX-ADC-IND – Database field.

PUT XXXXOUT

ELSE

DISPLAY 'END---1:' OXX-XXT

END-IF

END-PROC

//*

//*

//*Read input file and load the data into table through easytrive

//XXXXIN DD DSN=XXXXXXX.XXXX.XXXXX.XXXXX.XXX,

// DISP=SHR

//SYSIN DD *

*

FILE FILEIN

IN-XXX 1 80 A

IN-AAA 1 05 N

IN-BBB 7 08 N

IN-CCC 16 10 N

IN-DDD 28 05 A

IN-EEE 35 02 A

TBL-CNT W 7 N VALUE 0

MAX-CNT W 7 N VALUE 0

*

AA-XXXX-TABLE W 30 A OCCURS 5000

AA-AAA AA-XXXX-TABLE 05 N

AA-BBB AA-XXXX-TABLE +05 08 N

AA-AAA AA-XXXX-TABLE +13 10 N

AA-BBB AA-XXXX-TABLE +23 05 A

AA-AAA AA-XXXX-TABLE +28 02 A

JOB INPUT NULL

//*Input null means when start of job it will not read any input file.

TBL-CNT = 0

DO UNTIL EOF XXXXIN

GET XXXXIN

IF EOF XXXXIN

DISPLAY '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! '

DISPLAY ' END OF XXXXIN '

MAX-CNT = TBL-CNT

DISPLAY 'NUM OF LOADED ENTRIES = ' MAX-CNT

DISPLAY '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! '

ELSE

TBL-CNT = TBL-CNT + 1

//* Table count increased one by one and the field values from input file will get loaded //*into table.

AA-AAA(TBL-CNT) = IN-AAA

AA-BBB(TBL-CNT) = IN-BBB

AA-CCC(TBL-CNT) = IN-CCC

AA-DDD(TBL-CNT) = IN-DDD

AA-EEE(TBL-CNT) = IN-EEE

END-IF

END-DO

/*

//*

//*Load the input file into table and read another file then match with input file. When //*there is a match found written into one output file and there is no match found //*written into another output file.

//XXXXIN DD DSN=XXXXXXX.XXXX.XXXXX.XXXXX.XXX,

// DISP=SHR

//AAAAA DD DSN=XXXXXXX.XXXX.XXXX.XXXX.XXXXXXX.XXX,

// DISP=SHR

//XXXXXUT DD DSN=XXXXXXX.XXXXXX.XXXXXX.XXXXXXXX.ALL,

// DISP=(NEW,CATLG,DELETE),

// UNIT=XXXXX,SPACE=(CYL,(X,X),RLSE),

// DCB=(RECFM=FB,LRECL=XX,BLKSIZE=0)

//XXXXXU1 DD DSN=XXXXXXX.XXXXXX.XXXXXX.XXXXXXXX.NOT,

// DISP=(NEW,CATLG,DELETE),

// UNIT=XXXXX,SPACE=(CYL,(X,X),RLSE),

// DCB=(RECFM=FB,LRECL=XX,BLKSIZE=0)

//SYSIN DD *

*

FILE XXXXXUT

XX-REC 1 XX A

*

FILE XXXXXU1

XX-REC 1 XX A

*

FILE AAAAA

HH-AAA 1 80 A

HH-BBB 1 07 N

HH-CCC 80 07 N

FILE XXXXIN

IN-XXX 1 80 A

IN-AAA 1 05 N

IN-BBB 7 08 N

IN-CCC 16 10 N

IN-DDD 28 05 A

IN-EEE 35 02 A

TBL-CNT W 7 N VALUE 0

MAX-CNT W 7 N VALUE 0

TOL-CNT W 7 N VALUE 0

AAA-CNT W 11 N VALUE 0

AAA-FLG W 7 A VALUE 'N'

AAA-CNT W 9 N VALUE 0

AAAA-WK W 2 N VALUE 0

AAAV-WK W 2 N VALUE 0

AAP-CNT W 5 N VALUE 0

AAAAX1 W 5 N VALUE 0

AAAAX2 W 5 N VALUE 0

AAA-DEAL W 11 A

*

AA-XXXX-TABLE W 30 A OCCURS 5000

AA-AAA AA-XXXX-TABLE 05 N

AA-BBB AA-XXXX-TABLE +05 08 N

AA-AAA AA-XXXX-TABLE +13 10 N

AA-BBB AA-XXXX-TABLE +23 05 A

AA-AAA AA-XXXX-TABLE +28 02 A

JOB INPUT NULL

//*Input null means when start of job it will not read any input file.

TBL-CNT = 0

DO UNTIL EOF XXXXIN

GET XXXXIN

IF EOF XXXXIN

DISPLAY '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! '

DISPLAY ' END OF XXXXIN '

MAX-CNT = TBL-CNT

DISPLAY 'NUM OF LOADED ENTRIES = ' MAX-CNT

DISPLAY '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! '

PERFORM MACTH-AAA-BBB

ELSE

TBL-CNT = TBL-CNT + 1

//* Table count increased one by one and the field values from input file will get loaded //*into table.

AA-AAA(TBL-CNT) = IN-AAA

AA-BBB(TBL-CNT) = IN-BBB

AA-CCC(TBL-CNT) = IN-CCC

AA-DDD(TBL-CNT) = IN-DDD

AA-EEE(TBL-CNT) = IN-EEE

END-IF

END-DO

//*

*******************************************

MACTH-AAA-BBB. PROC

*******************************************

DO UNTIL EOF AAAAA

AAA-CNT = AAA-CNT + 1

AAP-CNT = AAP-CNT + 1

IF AAP-CNT >= 5000

DISPLAY ' PROGRESS >> ' AAA-CNT

AAP-CNT = 0

END-IF

GET AAAAA

IF EOF AAAAA

DISPLAY '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! '

DISPLAY ' END OF AAAAA '

DISPLAY ' TOTAL AAAAA PROCESSED ' AAA-CNT

DISPLAY '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! '

STOP

ELSE

PERFORM COMPARE-TABLE

END-IF

END-DO

END-PROC.

*******************************************

COMPARE-TABLE. PROC

*******************************************

AAAAX1 = 1

DO WHILE AAAAX1 <= MAX-CNT

IF AA-AAA = AA-AAA(AAAAX1) AND +

AA-BBB = AA-BBB(AAAAX1)

AA-AAA = AA-AAA

PUT XXXXXUT

//* Each record from AAAAA the file that will be matched against the table which loaded //*based on input file (XXXXIN) and write the output file when there is match found //*(XXXXXUT).

ELSE

A1-AAA = AA-AAA

PUT XXXXXU1

//* Each record from AAAAA the file that will be matched against the table which loaded //*based on input file (XXXXIN) and write the output file when there is not match found //*(XXXXXU1).

END-IF

XXXXX1 = XXXXX1 + 1

END-DO

END-PROC.

## IITM APTITUDE TEST

61. The average of 4 consecutive even numbers is 27. What is the largest number?

62. One ball was dropped from 8 ft height and every time it goes half of the height. How much distance it will travell before coming to rest.

63. How many liters of water must be added to 30 liters of alcohol to make a solution that is 25%

64. How much is 3/7 larger than 20 percent of 2

65. xyz=120, then which of the following can not be a value of y

66. xsqrt(0.09)=3 , then x equals

67. Perimeter of rectangle is s and the other sideis x, then the other side

68. y-z=0,x+8y=4,3x+4y=7z then find x, y and z

69. f(x,y) =x**2 -y**2 then the value of f(4,(f(1,2) is

70. If the radius of the circle is incresed by 6% then its area incresed by