Aptitude

89
APTITUDE 1. 2 pipes A and B can fill a tank in 30minutes and 20 minutes respectively. B filled ¾ of the tank. Then for the rest both A and B filled the tank. How much time it took to fill the entire tank. 2. 5 monkeys eat 5 bananas in 5 minutes. Then how many monkeys can eat 20 bananas in 20 minutes. 3. A does a work in 20 days. A did for 28 days. Then b came. They together take 76 days to complete the 7 job. Find howmany days B complete a work. 4. My house number is if not multiple by 3 it is with in 50-59 if not multiple by 5 it is with in 60-69 if not multiple by 10 it is with in 70-79 find house number. 5. After 6 years the ratio of age of X and Y will be 5:6. Before 6 years it was 3:4. Find the age of younger one. 6. The arithmetic mean of two numbers is 10 and the geometrid mean is 8. Find the two numbers. 7. 3 consecutive non zero number which of these will result a positive odd integer. 1. x+y+z 2. xy-z 3. x-y-z 8. 420 km distance. It goes at a speed of 10km/hr less than it took 1.4 hour. Find the initial speed. 9. Tem, Harry and Dick are three friends. From these two are musicians. Tem----Harry Shorter one is older musician. Harry----Dick Shorter one is younger musician. Dick-----Tem Taller is the younger musician.

Transcript of Aptitude

Page 1: Aptitude

  APTITUDE

1. 2 pipes A and B can fill a tank in 30minutes and 20 minutes respectively. B

filled ¾ of the tank. Then for the rest both A and B filled the tank. How much time it

took to fill the entire tank.

2. 5 monkeys eat 5 bananas in 5 minutes. Then how many monkeys can eat 20

bananas in 20 minutes.

3. A does a work in 20 days. A did for 28 days. Then b came. They together take

76 days to complete the 7 job. Find howmany days B complete a work.

4. My house number is

  if not multiple by 3 it is with in 50-59

  if not multiple by 5 it is with in 60-69

  if not multiple by 10 it is with in 70-79

  find house number.

5. After 6 years the ratio of age of X and Y will be 5:6. Before 6 years it was 3:4.

Find the age of younger one.

6.  The arithmetic mean of two numbers is 10 and the geometrid mean is 8. Find

the two numbers.

7. 3 consecutive non zero number which of these will result a positive odd

integer.

1. x+y+z

2. xy-z

3. x-y-z

8. 420 km distance. It goes at a speed of 10km/hr less than it took 1.4 hour. Find

the initial speed.

9. Tem, Harry and Dick are three friends. From these two are musicians.

  Tem----Harry

  Shorter one is older musician.

  Harry----Dick

  Shorter one is younger musician.

  Dick-----Tem

  Taller is the younger musician.

  Find the two musician.

10. A’s mother is only daughter of B’s mother. B is A’s what.

11. In a 20 liter mixture of milk and water, the ratio of milk and water is 3:1. How

much milk is to be mixed with the mixture so as to make the ratio 4:1.

12. For a party 240 guests were invited. Contractor have gained 12.5% profit. But

30 guests were absent. He charged the same amount for a meal and lost 100 rupees.

How much a meal costs.

13. Out of three A,B,C one is thief. All give two statements. One is false another is

   

Page 2: Aptitude

true. Find the thief.

 A-i did not do, B did not do.

 B-i did not do, C did not do.

 C-i did not do, I donot know who did it.

14. The sides of an isocles tringale are given. The perpendicular distance is given.

Find the base of the tringale.(Numerical values are given, but I donot remember)

15.  In a tringale length of 3 sides are given. It is given to find the highest length of

scale which can be used to measure all the sides.(To find gcf).

16. There is a metallic cylinder of radius r and height h is melted. If the radius of

smaller cylinder is r/10 and height is h/10, then howmany small cylinders are made

from the molten.

TECHNICAL

18. What is weak typing.

19. What is pure virtual function.

20. Which is not a member of unix shell.  (rbash,cbash,nbash,kbash,gbash)

21. Which is an error.

   Int *p[3]

   Int (*p)[3]

   (Int *)(int ,int)

   Int (*p[3])

   Int *(p[3])

22. Which is not a processor.

   (intel,duran,Celeron,athelon)

23.  a[5]=={1,2,3,4,5}

  printf("%d",a[3]);

  printf("%d",3[a]);

  printf("%d",*(a+3);

24. what is the output.

if(r= =5!= =4)

printf("inside");

else

printf("outside");

printf("%d",r);

25. for(i=0,j=0;i<10,j<10;i++,j+);

 printf("%d",j);  (compilation error,run time error,0)

26. Which is not an inter process communication.

 (tee,shared memory,pipe,queue,file)

Page 3: Aptitude

27. for loop on string.

28. Which is not a database.

 (oracle,smalltalk,db2,Sybase)

29. #define prod((a>b)?a*a:b*b)

 int p==0,q==-1;

 prod(p++,q++)

 what is result.

30. what is reference.

Some loop statements on "c" are given which are very easy.

  Technical 1. FLOP is the unit of –     I)clock speed,      ii)frequency….i        

ii)memory,      iv)processors speed.

2. main()

{

  printf("hello");

  main();

 }

how many times it will print?

3. complexity of heap sort(ans:o(nlogn).

4. what will be the o/p?

int main()

  {

     char a,b;

      printf(“%d%d%d%d”,sizeof(‘A’), sizeof(‘NULL’), sizeof(‘a’), sizeof(main));

}

5. necessity of pairty bit(ans:b).

6. >what is the o/p?

#DEFINE xyz(exr)printf(“exr=%d”,exr)

main()

{

int x=3;y=2;

xyz(x/y);

}

   

Page 4: Aptitude

7. simple question on graph

8. simple question on sql

9. files r there of size like 26543b,2000b,4000b,1000b  arrange them

according to there access time

Aptitude(TOTAL25)

10.  unit digit of 7^173?

11. two train coming towards from dist 24 miles with speed 12 miles/hr ,a fly 

randomly flying beetween two trains at the speed of 18 miles/hr.how many

distance covered by the fly before will collide?(30,36……)   

12. what is the increase of volume of a sphere if its radius increases by

10%?    

13.  A man climbing in a rock at 24 km/hr and downhill 36 km/hr. determine

avg speed?

14. problem on language (some percent known german,some knows

French,some English)ans:24.

15. Here two same size glass one is filled 1/3 of milk and other is 1/4

milk.then the glasses filled with water and mixed,what is the percentage of milk

now?

16. One is filled 1/3 of milk and other is 1/4 milk.then the glasses filled with

water and mixed,what is the percentage of milk now?

17. If the time required for write one digit is one second then how many time

for (10^10)^10?(ans:I) few day  ii) millions of day iii) one year

18. In 1930 the age of one student is same as the last two digit of his year of

birth and the case is same for his grand father also ,what is the sum of age his

and his grand father?(ans:80check).

19. In 1930 the age of one student is same as the last two digit of his year of

birth and the case is same for his grand father also ,what is the sum of age his

and his grand father?(ans:80check).

20. blue socks:4pair,red socks:3pair,white socks:2pair,how many socks one

Page 5: Aptitude

will take for two different socks .

21. what is the probability of 2 man will be born in a same

month(ans:1/12,1/6,1/24,1/2)

22. There is a square ground of side 14cm,two horses r there in two different

point of the square such that they can just touch them, how much grass will not

be covered by the horses.(ans:14*14-2*(1/4)*pi*(7*root2)^2).

23. A man is started his journey from point A he goes 1000km south then

1000km east ,1000km north,then 1000km west.where is he now.(ans:I)at point A

ii)1000km east from Aiii)….iv)….

1. 10^10^10 how much time will it take to write this number,if it takes 1 sec

to write 1 digit.

 a. 1000 secs.

 b. 10 year.

 c.  more than 1 million years.

d.  a few days.

ans. more than 1 million years.

2. starting from 2 upto how many numbers we need to check whether 907 is

prime or not?

3. A persons age is similar to the year he was born(last two digits is counted

as age).ans. 80

4. What is YACC? ans. yet another compiler compiler.

5. flop is a unit of ? ans. processing speed.

6. #define hello(x,y) printf(#expr"%d",expr);

main(){

float x=1,y=2;

expr=x/y;

hello(expr);

}

ans. x/y=1;

Page 6: Aptitude

7. time and work and days.(easy questions).

8. A&B fill 3 litres and 5 litres of oil in the car. C pays Rs. 8/- to A7B. How

much will A get?

9. A question on "set" theory.it was given that less than 30 persons in class.

(Ans . cannot be determined.)

10. 4 cows are there at the four corners of a square. if the radius of the rope is

1 and lenth of one side of the square is 14, find the area along the square which

the cow cannot gaze.

ans. 14*14-pi*r*r;

11. Two glasses were filled with 1/3 and 1/4 milk. they were filled with water

&then mixed in tumbler. what is the percentage of milk in the resultant.

12. average speed 2xy/x+y.

13. A belongs to the truther tribe " who says yes". B belongs to the liers tribe

" who says no always".when A&B were asked to which group do they belonged

to both of them replied "yes".when a third person C was asked whether A&B

belong to same group,he notified groups he answered "No".to which group do

A,B and C belong? ans.LLL or LTT.

14. There were three clocks they gave alarm after 24secs, 12secs and 36

secs.if they rang simulatneously at 8:20, then at what time they again rang

simultaneously?(something like this but numbers may differ). ans. 8:27:12 

15. A plane starts from a place A , it goes 1000 kms south then 1000km east

then 1000 km north and 1000km west, what is it distance from the starting

place? ans.same starting place.

16. question on Bipartite graph(definition).

17. heap-sorting algorithm time complexity.(ans nlogn)

18. white-box testing.

19. postfix evaluation of: (A+B)*C(Ans: AB+C*)

20. question on catch-throw? c++

Page 7: Aptitude

21. main(){

main();

}

ans.stack overflow.

24.main()

{ char a,b;

printf("%d%d%d%d",sizeof('a');

sizeof(NULL),sizeof(b),sizeof(main));

}

Ans(1,1,1,2)

22. Five file sizes given . what should be the order of their access so that least

time is taken.

ans.least size first.

23. SQL query does what?

24. 5 questions on reasoning.

Technical

1.   what does vector processing do?

2. What is the use of software configuration management?

3. what command is used to append two files using who that is listed

by ls

4. If there is a problem in a network during transmission which is used

to detect that?

a. protocol anaylzer,  b. SNMP....

5. In C, x-=y+1 how will u represent it..

a.  x=x+y+1,   b.-x-y-1,   c.-x+y+1...

6. What does Trigger do?

7. In which topology we use less amount of cables.

   

Page 8: Aptitude

  ring,   bus,   star,  mesh....

8. Which sorting techniques is best for already sorted array...?.

  ans: bubble sort

9. Which is said to be a realtime system.?

1. credit card systen

2 online flight reservation system

3 bridge control systen...not sure

10. decimal to octal conversion problem?  ans A

11. A person having a/c number, a/c name,bank name, a/c type.. which

is the primary among the above?

12. why data integrity is used?

13. If a primary key is an attribute of another one table means........

1 candidate key

2 foreign kryey

3 seconda

14. int (*a)[4]. Explain this expression

15. Difference between 0123 and 123 in c

ans : 40

16.  In c r+ is used for 

1 read only

2 writing only

3 both 1 and 2

17. parity bit for what?

18. YWCC is what in options they had specified  for compiler..

Aptitude

1. which 3 consequtive prime numbers gives the total

ans: 49 (13,17,19)

2. Rational numbers between 1 and 5

1. 3

Page 9: Aptitude

2. 2

3. 0

3. If boat travels in 10km/hr in still water. it travels 14kmhr in

upstream and 26km/hr downstream what is speed of stream?

4. A cube of 3 unit has 6 surface is painted.If u cut the cube of 1 unit

each how many cubes remain unpainted on all sides.

ans.1

5. A person sold an article at Rs.141 at 6% loss,to gain a profit of 10%

at what price the article should be sold.

165

6. If person 20 min at 12 kmph. then how many Kmph in 15 minutes

Ans.16

7. Three person shared bullets equally. 4 were shot total no of bullets

remainin is equal to the no of bullets initially divided

ans : 18

8. 1st day of the year 1999 is sunday and what will be last day of the

same year

ans sunday

9. 4 thieves entere a bakery and stoled bread one after the other.Each

one took half of the total number of breads+half a loaf.If 3 breads were

remaining what is the total number of breads.

10. If a ball is dropped from 8ft and it bounces half the height each time.

Then the total distance travelled

ans.24

11. 6 squares of equal size are placed side by side to form a rectangle

whose perimeter is 182. find the perimeter of the single square.

ans 52

12. the average age of students in a class is 16.when a teacher of age 40

is added , the average becoems 17. what is the total number of students

Page 10: Aptitude

ans.23

13. In 1930 a man's age is the last 2 digit of the  year intercganged in which he

born and his granpa's age also like  the same.

14. 10pow10pow10 if one takes 1 sec to write a single digit then  how long will

it  take to write the above _expression.

15. 2 trains coming in opposite directions in 12  km/hr distance between the

trains is 24 km. an insect starts at the same time when the train  starts at a speed

of 18km/hr. How many km the insect might  have travelled  before it got crashed

between the 2 trains.

16. Less than 30 of them are there. Among those  1/3rd know french 1/4th

knows english, 1/2 knows german, then 1/8 of  them donn't know any of the

languages. Then find out how many are  there totally.

17. what is the probability that 2 of them selected  randomly have  got the

same month of birth?

18.

1. int i=10;

printf("%d%d%d",i,i++,++i);

ans: compiler dependent     

2. printf("Enter two values a and b:"):

scanf("%d%d",a,b);

printf("%d+%d=%d",a,b,a+b);

ans:core dumped

3.  uestion on WM_SIZE

ans:WM_SIZE

4.  when destroy window what message would disply

ans:WM_DESTROY

5. S Windows 3.1 about multitasking 

ans:nonpreemptive

6. windows 3.1 is

ans:application

7. about switch switch statement

ans:16,21

Page 11: Aptitude

8. question paper the first question ans is

ans:can't be compiled

9. about send messages and post messages

ans: c

10. what is the command to intiate the windows

ans:WinMain

11. const char *

char * const

What is the differnce between the above tow?.

12. In Unix inter process communication take place using?.

13. What are the files in /etc directory?.

14. About i-node numbers

15. Max relaxable permisssion value with out giving write permission to others?

16. About ln(linking) 

17. A question on until

 until (who |grep mary)

do

  sleep(60)

done

18. Linking across directories?.

19. process id for kernell process

20. very first process created by kernell

21. function to repaint a window immediately?.

22. Function entry for DLL in win3.1

23. win 3.1 supports which type of multi tasking?.

24. Message displayed when a window is destroyed

25. About fork()?

26. About send message and post message

27. Message to limit the size of window

28. System call executable binary file intoa process

29. About GDI object?.

30. API used to hide window

Page 12: Aptitude

31. Initialize contents of a dialog?.

  Aptitude

    1.  Speed of boat in still water is 10kmph..if it travels 24km downstream,16km

upstream in the same 

      amount of time,what is the speed of the stream?

            (a)3kmph

            (b)3.5kmph

            (c)2kmph

            (d)...

2.  A cube of 3 units is painted on all sides.If this cube is divided into cubes of 1

unit,how many cube 

      have none of their faces painted?

               (a)...

               (b)2

              

(c)1                                                                                                               

               (d)0

               (e)none of these

3.  If a person sells a product for rs141/- he suffers a loss of 6%.if he has to have a

profit of 10%,

     at what price should he sell it?

                  (a)

                  (b)rs.175

                  (c)..

                  (d)rs.165

      ans.rs.165 (i think,check)

4.  A ball falls from a height of 8ft ,bounces back to half the distance & continues

till it comes to rest.

     what is the total distance travelled by the ball?

              (a)24ft

   

Page 13: Aptitude

             (b)...

             (c)infinite

            (d)cannot be determined

            ans:(a)

5.   Which of the following is the sum of 3 consecutive prime nos?

               (a)49

               (b)59

               (c)both a &b

               (d)....

               ans:c

6.  If the area of a square has increased by 69%,by what % has its side increased?

7.  In a class the average age is 16yrs.if the teacher who is 40 yrs of age is also

included ,the average becomes 

     17yrs,how many students were there?

8.  If 3 houses are to be painted,mr A can paint a house in 6 days(nos are not

same)...mr B can do the same in 8 

    days...& mr.C in 12 days.if mr A does the work for 8 days & leaves for

vacation, & mr B continues the work

    for the next 6 days, for how many days should mr.C work?

    ans:11 days(check)

9. 4 thieves rob a bakery of the breadone after the other.each thief takes half of

what is present ,& half  a 

     bread...if  at  the end 3 bread remains,what is the no of bread that was present

initiallly?

     ans:63(check)

10. If the 1rst day of 1999 is a sunday,what is the last day?

            (a)sunday

          

(b)monday                                                                                                        

           (c)....

          (d)cannot be determined.

Page 14: Aptitude

11.  If A driver drives a car four times a lap 10,20 30,60 kmph what  is his

average speed.

       ans:20kmph

       In a group there are two kinds of people type A & type B.type A people

answer for any question as YES &

       that of type B as NO.if they can not answer to these question then they

remain silent. the mayor asks question to 

       them as follows........

12.  If he asks a person are u type A

       a.YES b.NO c. Silent d.Can not be determined

13.  He asks two persons X &Ysimultaneously whether u of same type

        a. YES b. NO c.YES or NO d. Silent e. can not be determined

14.  Pointing to a person X he asks Y what is his type

       a. YES b. No c. Silent d can not be determined

15. Pointing to a person X he asks Y if I ask him whether r u  type A ,will he

answer YES.Y says NO .what type

       of  B is

       a. YES b. NO . c. Silent d. can not be determined

16. Six squares of same dimension are kept side by side to make a rectangle with

a perimeter of  182 cm. what is

       the perimeter of each square.

       ans) 52.

17. One student takes 20 mins to reach school if he goes at a speed of 15kmph .At

what  speed should he go to 

      reach in 15 mins ( nos are not same) ans: 16kmph( check)

18. How many rational numbers are there between 0 & 5

      ans:infinite

19. A certain number of bullets were shared by 3 people equally.Each of them

fired 4 bullets and the sum of the 

      remaining bullets was equal to the initial share each had got.what was the

initial  number of bullets?

Page 15: Aptitude

       ans:18..( 18/3=6; 

      6-4=2,6-4=2,6-

4=2;                                                                                                

       2+2+2=6=ans)

          Technical:

  20. A trigger is

        (a) a statement ..start of database..

        (b)statements that r executed as a side effect to the modification to the

database

        (c)... 

        (d)...

         ans (b)

 21. What does the following statement mean?

        int (*a)[4]

        (a)'a' is a pointer to an array of 4 integers

        (b)'a' is an array of pointers to integer

         (c)'a' is a pointer to function returning an integer

         (d)...

          ans:a

22.  Best method to find out whether a given array already sorted,is sorted or not

in min. time

      ans. insertion sort (check)

23. A primary key in one table also present in some other table is called

      (a)foreign key

      (b)secondary key

      (c)subordinate key

      (d)...

      ans. foreign key

24. Which of the following is a real time system?

        (a)robotics control

        (b)airline ticket

Page 16: Aptitude

reservation(ans)                                                                                     

        (c)

        (d)...

25.  A question to convert a big no in decimal to octal(check only for the last 2

nos in ans is sufficient)

26.  Which of the following is an example of a spooling device?

          (a)..

          (b)line printer..

          (c)

          (d)

          (e)...

27.  If in a table:account no,account holders name,account type ,.....(something

else was given)are the fields,which 

        of  them could be the primary key?

           (a)account no(ans)

           (b)account holders name

           (c)account type

           (d)..

28.  If a file is opened in "r+" mode(in C),it means

       (a) write

        (b)read

        (c)...

        (d).....

29.  What is the difference between 123 and 0123 in c?

         (a)120

         (b)40

         (c)0

         (d)...

          ans:40

30.  Software Configuration Management process is -

          (a)developing & managing software for .....software....

Page 17: Aptitude

         (b)developing & managing hardware

for....software.......                                          

          (c)...

          (d)..

31.  Data Integrity constraint is

         (a)to ensure the presence of primary key

         (b)...

         (c)...

         (d)...

32. Which of the following uses the minimum length of cable?

        (a)ring

        (b)star

        (c)mesh

        (d)bus

        (e)all of the above

31. How can u append the ls and who to certain existing file (like  that)(i.e.listing

& output of who is to be directed

       to a file

        (a)ls;who>filename

        (b)ls;who>>filename

         (c)(ls;who)>>filename

         (d)who;ls<filename

         (e)...

34. Suppose u have a network .users complain of slow ....u suspect a problem in

network adapter once u find that 

       the data is continuous and erroneous.what device do u use?

        (a)volt-ohmmeter

        (b)SNMP

        (c)protocol... checking

        (d)all of the above

35. What is vector processing?

Page 18: Aptitude

36. x-=y+1 is equivalent to

what?                                                                                      

        (a)x=x-y+1

      (b)...

       (c)x=x-y-1

       (d)...

        ans:(c)

37. In a student form what is the relationship b/w student and course

         (a)one to one

         (b)many to one

         (c)one to many

         (d)many to many

38.  ROM is 

      (a)volatile 

      (b)permanent & fast

       (c)device containig boot up program & is not accessible 

       (d)...

I have given 38 questions out of 40 q's ...hope it will be useful 2 all of u... they

didnt select any ec people 4 

interview..:( only CS,IS..& 2 from TE. that's all from my side.. here are some hr

questions as sent by jagannatha  (CS-PESIT)

HR questions:

1. Why 2+2 is 4 why not 5.

     ans: assume u took 2 apples from A and 2 more apples from B and assume u

are having 5 and give 2 to X and 

     give 2 more to Y then nothing will be with u i.e u lossed. (give some answers

but dont say that it is like that only )

2. How may stones did hanuman thowned on lanka? ( diffirent but of same type)

     and one more how many trees are there in u'r campus

      ...

       ans:

Page 19: Aptitude

    dont say i dont no say some no for ex 1000 and say i.e correct . they wont say

any thing for that because it is not 

    possible to disprove that .

3. why IBM and etc .........       

Aptitude

    part 1 : letter series.

    part 2 : figures

    part 3 : quantities

   Technical                                                                                                             

   Most question are on Unix and some in C and some in 

   windows 3.1all question in Unix are From Kernighan & pike

                            Part 1

It consists of number series.In some institutes alphabetical series is  given instead of

number series.Iam having number series so iam sending that.Please go through tha

alphabetical tests also.

 1.    19,24,20,25,21,26,? ans:22

 2.    11,14,12,15,13,16,? ans: 14

 3.    10,2,8,2,6,2,? a:4

 4.    8,9,11,14,,18,23,? a:29

 5.    25,25,22,22,19,19,? a:16

 6.    14,2,12,4,10,6,? a:8

 7.    7,16,9,15,11,14,? a:13

 8.    40,42,39,44,38,46,? a:37

 9.    3,18,4,24,5,30,? a:6

10.  18,20,22,20,28,20,? a:22

11. 18,20,10,12,4,6? a:0

12.  7,6,8,5,3,7,? a:4

13   9,18,21,25,20,? a:30

14   3,3,4,8,10,36,? a:33                                                                                            

Page 20: Aptitude

15.  30,28,25,20,34,28,? a:21

16.  4,8,16,32,64,128,? a:256

17.  8,16,24,32,40,48,? a:56

18.  13,11,14,12,15,13,? a:16

19.  6,18,36,108,216,648,? a:1296

20.  4,4,8,8,16,16,? a:32

21.  2,6,18,54,162,486,? a:1458

22.  4,20,35,49,62,74,? a:85

23.  10,18,15,23,20,28,? a:25

24.  4,10,8,14,12,18,? a:16

25  10,15,12,17,14,10,? a:16

part 2 consists of non-verbal reasoning (figures). So it is impossible for  me to send

those.(25 questions)

                           part 3 (quantitative)

  1.  A clerk multiplied a number by ten when it should have been divided by  ten.The ans

he got was 100.what 

        should the ans have been?a:1

   2.  If Rs20/- is available to pay for typing a research report & typist A  produces 42

pages and typist B produces 

        28  pages.How much should typist A  receive?  a:Rs12/-

  3.   The average salary of 3 workers is 95 Rs. per week. If one earns  Rs.115 and second

earns Rs.65 how 

         much is the salary of the 3rd worker. Ans.105.

   4.  A 16 stored building has 12000 sq.feet on each floor. Company A rents 7  floors and

company B rents 4 

        floors.What is the number of sq.feet of  unrented floor space.   Ans.60000

  5.  During a given week A programer spends 1/4 of his time preparing flow  chart, 3/8

of his time coding and

Page 21: Aptitude

       the rest of the time in debugging the  programs. If he works 48 hours during the week

, how many hours did he  

       spend debugging the program. Ans. 18.

  6.  A company installed 36 machines at the beginning of the year. In March they

installed 9 additional machines 

       and then disconnected 18 in August.  How many were still installed at the end of the

year.  Ans. 27

  7.  A man owns 2/3 of the market research beauro business and sells 3/4 of  his shares

for Rs. 75000. What is the 

        value of Business.  Ans.150000

  8.  If 12 file cabinets require 18 feet of wall space, how many feet of  wall space will 30

cabinets require? Ans.45

  9.  A computer printer produced 176,400 lines in a given day. If the  printer was in

operation for seven hours 

       during the day, how many lines  did it print per minute? Ans.420

10.   From its total income, A sales company spent Rs.20,000 for advertising, half of the

remainder on commissions 

       and had Rs.6000 left.What was its total income? Ans.32000

11.  On Monday a banker processed a batch of cheques, on Tuesday she processed three

times as many, and on 

       Wednesday she processed 4000 cheques. In the three days, she processed 16000

cheques. How many did 

        she process on Tuesday? Ans.9000

12.  The cost of four dozen proof machine ribbons and five dozen accouting  machine

ribbons was Rs.160/-. If one 

       dozen accounting machine ribbons cost Rs.20/-, what is the cost of a dozen proof

machine ribbons?

       Ans.Rs.15

13.  If a clerk can process 80 cheques in half an hour, how many cheques  can she process

in a seven and one half 

Page 22: Aptitude

       hour day? Ans.1200

14.  In a library, there are two racks with 40 books per rack. On a given  dya, 30 books

were issued. What

         fraction remained in the racks? Ans.5/8

15. The average length of three tapes is 6800 feet. None of the tapes is less than 6400

feet. What is the greatest 

       possible length of one of the other tapes? Ans.7600                                       

16. A company rented a machine for Rs.700/- a month. Five years later  the treasurer

calculated that if the company 

      had purchased the machine and paid Rs.100/- monthly maintenance charge, the

company would have saved 

      Rs.2000/-. What was the purchase price of the machine? Ans.Rs.34000

17. Two computers each produced 48000 public utility bills in a day. One computer

printed bills at the rate of 9600 

      an hour and the other at the rate of 7800 an hour. When the first computer finished its

run, how many  bills did 

      the other computer still have to print?Ans.9000

18. If a salesman's average is a new order every other week, he will break the office

record of the year. However, 

     after 28 weeks, he is six orders behind schedule. In what proportion of the remaining

weeks does he have to 

    obtain a new order to break the record? Ans.3/4

19. On a given day, a bank had 16000 cheques returned by customers.Inspection of the

first 800 cheques indicated 

     that 100 of those 800 had errors and were therefore the available immediately for data

processing. On this basis, 

     hwo many cheques would be available immediately for data  processing on that day?

Ans.14000

20. A company figured it needed 37.8 sq.feet of carpot for its reception  room. To allow

for waste, it decided to 

Page 23: Aptitude

      order 20% more material than  needed. Fractional parts of sq.feet cannot be ordered.

At Rs.9/- a 

      sq.feet, how much would the carpet cost? Ans.

        a. Rs.324 b) Rs.405 c) Rs.410 d) Rs.414 e) Rs.685

21.A tape manufacturer reduces the price of his heavy duty tape from Rs.30/- to Rs.28/- a

reel and the price of a 

     regular tape from Rs.24/- to  Rs.23/- a reel. A computing centre normally spends

Rs.1440/- a month for 

    tapes and 3/4 of this is for heavy duty tapes. How much will they save a  month under

the new prices?

    Ans.Rs.87

22. In a team of 12 persons, 1/3 are women and 2/3 are men. To obtain a team with 20%

women how many men 

      should be hired?  Ans.8                                                                            

23. The dimensions of a certain machine are 48" X 30" X 52". If the size  of the machine

is increased 

      proportionately until the sum of its dimensions equals 156", what will be the increase

in the shortest side? Ans. 6"

24. In a certain company, 20% of the men and 40% of the women attended  the annual

company picnic. If 35% of   

     all the employees are man, what  percent of all the employees went to the picnic?

Ans.33%

25. It cost a college Rs.0.70 a copy to produce a Programme for the  homecoming

football game. If Rs.15,000/- 

     was received for advertisements in the programme, how many copies at Rs.0.50 a

copy must be sold to make 

     a profit of Rs.8000/- ?Ans. 35000

                                                         

Aptitude

    1.  Speed of boat in still water is 10kmph..if it travels 24km downstream,16km

upstream in the same 

   

Page 24: Aptitude

      amount of time,what is the speed of the stream?

            (a)3kmph

            (b)3.5kmph

            (c)2kmph

            (d)...

2.  A cube of 3 units is painted on all sides.If this cube is divided into cubes of 1

unit,how many cube 

      have none of their faces painted?

               (a)...

               (b)2

               (c)1                                                                                                               

               (d)0

               (e)none of these

3.  If a person sells a product for rs141/- he suffers a loss of 6%.if he has to have a

profit of 10%,

     at what price should he sell it?

                  (a)

                  (b)rs.175

                  (c)..

                  (d)rs.165

      ans.rs.165 (i think,check)

4.  A ball falls from a height of 8ft ,bounces back to half the distance & continues

till it comes to rest.

     what is the total distance travelled by the ball?

              (a)24ft

             (b)...

             (c)infinite

            (d)cannot be determined

            ans:(a)

5.   Which of the following is the sum of 3 consecutive prime nos?

               (a)49

Page 25: Aptitude

               (b)59

               (c)both a &b

               (d)....

               ans:c

6.  If the area of a square has increased by 69%,by what % has its side increased?

7.  In a class the average age is 16yrs.if the teacher who is 40 yrs of age is also

included ,the average becomes 

     17yrs,how many students were there?

8.  If 3 houses are to be painted,mr A can paint a house in 6 days(nos are not

same)...mr B can do the same in 8 

    days...& mr.C in 12 days.if mr A does the work for 8 days & leaves for vacation,

& mr B continues the work

    for the next 6 days, for how many days should mr.C work?

    ans:11 days(check)

9. 4 thieves rob a bakery of the breadone after the other.each thief takes half of

what is present ,& half  a 

     bread...if  at  the end 3 bread remains,what is the no of bread that was present

initiallly?

     ans:63(check)

10. If the 1rst day of 1999 is a sunday,what is the last day?

            (a)sunday

           (b)monday                                                                                                        

           (c)....

          (d)cannot be determined.

11.  If A driver drives a car four times a lap 10,20 30,60 kmph what  is his average

speed.

       ans:20kmph

       In a group there are two kinds of people type A & type B.type A people answer

for any question as YES &

       that of type B as NO.if they can not answer to these question then they remain

silent. the mayor asks question to 

Page 26: Aptitude

       them as follows........

12.  If he asks a person are u type A

       a.YES b.NO c. Silent d.Can not be determined

13.  He asks two persons X &Ysimultaneously whether u of same type

        a. YES b. NO c.YES or NO d. Silent e. can not be determined

14.  Pointing to a person X he asks Y what is his type

       a. YES b. No c. Silent d can not be determined

15. Pointing to a person X he asks Y if I ask him whether r u  type A ,will he

answer YES.Y says NO .what type

       of  B is

       a. YES b. NO . c. Silent d. can not be determined

16. Six squares of same dimension are kept side by side to make a rectangle with a

perimeter of  182 cm. what is

       the perimeter of each square.

       ans) 52.

17. One student takes 20 mins to reach school if he goes at a speed of 15kmph .At

what  speed should he go to 

      reach in 15 mins ( nos are not same) ans: 16kmph( check)

18. How many rational numbers are there between 0 & 5

      ans:infinite

19. A certain number of bullets were shared by 3 people equally.Each of them fired

4 bullets and the sum of the 

      remaining bullets was equal to the initial share each had got.what was the

initial  number of bullets?

       ans:18..( 18/3=6; 

      6-4=2,6-4=2,6-4=2;                                                                                                

       2+2+2=6=ans)

          Technical:

  20. A trigger is

        (a) a statement ..start of database..

        (b)statements that r executed as a side effect to the modification to the

Page 27: Aptitude

database

        (c)... 

        (d)...

         ans (b)

 21. What does the following statement mean?

        int (*a)[4]

        (a)'a' is a pointer to an array of 4 integers

        (b)'a' is an array of pointers to integer

         (c)'a' is a pointer to function returning an integer

         (d)...

          ans:a

22.  Best method to find out whether a given array already sorted,is sorted or not in

min. time

      ans. insertion sort (check)

23. A primary key in one table also present in some other table is called

      (a)foreign key

      (b)secondary key

      (c)subordinate key

      (d)...

      ans. foreign key

24. Which of the following is a real time system?

        (a)robotics control

        (b)airline ticket

reservation(ans)                                                                                     

        (c)

        (d)...

25.  A question to convert a big no in decimal to octal(check only for the last 2 nos

in ans is sufficient)

26.  Which of the following is an example of a spooling device?

          (a)..

          (b)line printer..

Page 28: Aptitude

          (c)

          (d)

          (e)...

27.  If in a table:account no,account holders name,account type ,.....(something else

was given)are the fields,which 

        of  them could be the primary key?

           (a)account no(ans)

           (b)account holders name

           (c)account type

           (d)..

28.  If a file is opened in "r+" mode(in C),it means

       (a) write

        (b)read

        (c)...

        (d).....

29.  What is the difference between 123 and 0123 in c?

         (a)120

         (b)40

         (c)0

         (d)...

          ans:40

30.  Software Configuration Management process is -

          (a)developing & managing software for .....software....

         (b)developing & managing hardware

for....software.......                                          

          (c)...

          (d)..

31.  Data Integrity constraint is

         (a)to ensure the presence of primary key

         (b)...

         (c)...

Page 29: Aptitude

         (d)...

32. Which of the following uses the minimum length of cable?

        (a)ring

        (b)star

        (c)mesh

        (d)bus

        (e)all of the above

31. How can u append the ls and who to certain existing file (like  that)(i.e.listing &

output of who is to be directed

       to a file

        (a)ls;who>filename

        (b)ls;who>>filename

         (c)(ls;who)>>filename

         (d)who;ls<filename

         (e)...

34. Suppose u have a network .users complain of slow ....u suspect a problem in

network adapter once u find that 

       the data is continuous and erroneous.what device do u use?

        (a)volt-ohmmeter

        (b)SNMP

        (c)protocol... checking

        (d)all of the above

35. What is vector processing?

36. x-=y+1 is equivalent to

what?                                                                                      

        (a)x=x-y+1

      (b)...

       (c)x=x-y-1

       (d)...

        ans:(c)

37. In a student form what is the relationship b/w student and course

Page 30: Aptitude

         (a)one to one

         (b)many to one

         (c)one to many

         (d)many to many

38.  ROM is 

      (a)volatile 

      (b)permanent & fast

       (c)device containig boot up program & is not accessible 

       (d)...

I have given 38 questions out of 40 q's ...hope it will be useful 2 all of u... they

didnt select any ec people 4 

interview..:( only CS,IS..& 2 from TE. that's all from my side.. here are some hr

questions as sent by jagannatha  (CS-PESIT)

HR questions:

1. Why 2+2 is 4 why not 5.

     ans: assume u took 2 apples from A and 2 more apples from B and assume u are

having 5 and give 2 to X and 

     give 2 more to Y then nothing will be with u i.e u lossed. (give some answers

but dont say that it is like that only )

2. How may stones did hanuman thowned on lanka? ( diffirent but of same type)

     and one more how many trees are there in u'r campus

      ...

       ans:

    dont say i dont no say some no for ex 1000 and say i.e correct . they wont say

any thing for that because it is not 

    possible to disprove that .

3. why IBM and etc .........       

    IBM Recruitment Test

 

1. In 1978, a kg of paper was sold at Rs25/- If the paper rate increases at 1.5% more

Page 31: Aptitude

than the inflation rate which

    is 6.5% a year, then what will be the cost of a kg of paper after 2 years?(a) 29.12

        (b) 29.72

        (c) 30.12

        (d) 32.65                                                                                                            

        (e) none of these

2. In A,B,C are having some marbles with each of them. A has given B and C the

same number of marbles each

    of them already have. Then, B gave C and A the same number of marbles they

already have.Then C gave A

    and B the same number of marbles they already have.At the end A,B,and C have

equal number of marbles.

    (i) If x,y,z are the marbles initially with A,B,C respectively. Then the number of

marbles B have at the end

         (a) 2(x-y-z)

         (b) 4(x-y-z)

         (c) 2(3y-x-z)

         (d)  x + y-z

         Ans. (c)

    (ii) If the total number of marbles are 72, then the number of marbles with A at the

starting

      (a) 20

      (b) 30

      (c) 32

      (d) 39

      Ans. (d)

3. If a car starts from A towards B with some velocity. Due to some problem in the

engine after travelling 

   30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min later

Page 32: Aptitude

to the actual time.If the

   car engine fails ofter travelling 45km, the car reaches the destination B 36min late to

the actual time What

   is the initial velocity of car and what is the distance between A and B in km

   Ans. 20 & 130.

4. A person has Rs 100/- in his pocket, he can as 25 pencils or 15 books.  He kept

15% of the money for 

    travelling expenses and purchased 5 pencils. So how many books he can purchase

with the remaining money.

5. Ten questions on analogies.

     eg: chief : tribe :: governor : state

          epaulette : shoulder :: tiara : head

          guttural : throat :: gastric : stomach

          inept : clever :: languid : active

          knife : butcher ::

          hammer : carpenter :: 

6. The values of shares (in Rs).of A, B and C from January to June are as follows.

Month A B C

January 30 60 80  

February 35 65 85

March 45 75 65

April 40 75 82

May         55 75 85

June 50 75 80

   i)       During this period which share has undergone maximium fluctuation?

Page 33: Aptitude

   ii)      In which month it is possible to buy B and C selling A?

  iii)      In which month the share values are very low?

  iv)       By purchasing one share of A and 4 each of B and C in the beginning of the

period,

            when shoudl these be sold to get maximum profit?

7.  In a computer institute 9 languages can be taught. The module is of 6 months

duration and of the six languages 

     only one can be taught each month . In addition to that BASIC is always taught and

should be in first month itself

WORD PERFECT is to be taught in the preceeding week of WORD

STAR.

FORTRAN can not be taught until COBAL is taught prior to that

BINO, FIFO can never be taught in single module

  Languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL,

BINO, FIFO, LOTUS, C

      i) If word star is in 3rd month , what could be in 6th

month.                                              

      ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be

taught in which month.

8. In a class, except 18 all are above 50 years.15 are below 50 years of age. How

many people are there

       (a) 30

        (b) 33

        (c) 36

        (d) none of these.

        Ans. (d)

9.  A square plate of some size is cut at four corners. Equal squares of the same size

are cut and is formed as open 

Page 34: Aptitude

      box.If this open box carries 128 ml of oil. What is the size of the side of the plate?

       (a) 17

      (b) 14

      (c) 13

      (d) None of these

10. In a square, all the mid points are joined. The inner square is shaded. If the area of

the square is A, what is the 

      area of the shaded area?

11. Two questions on basic angles i.e given a circle, a few chords or diameter is

drawn etc.

12. If the follwoing statements are given

@(a,b)= (a+b)/2

/(a,b)= a/b

*(a,b)= ab

      If a=1, b=2 then find

       i) /(a,(@(a,b),*(a,b)))

       ii) */(a,@(*(a,b)))

13. If the follwoing statements are given

(x#y) = x + y- xy

(x*y) = (x + y)/2

    i) Find the values of x, y will satisfy this equation (x#y)#(x*y) <

(x#y)                              

    ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)< (a#b)*(b*c)

14. Export PS1 results in(PS1 pwd)

      a) primary prompt being your current directory

      b) primary prompt and secondary prompts being the current directory

      c) primary prompt prompt being your home directory

      d) primary prompt and secondary prompts being the home directory

      e) None of the above.

Page 35: Aptitude

15. If you type in the comman  nohup sort employees > list 2 > error out & and log

off ,the next time you log in, 

      the output will be

        a) in a file called list and the error will de typed in a file error out

        b) there will be no file called list or error out

        c) error will be logged in a file called list and o/p will be in error out

        d) you will not be allowed to log in

        e) none of the above

16. In UNIX a files i-node ......?

    Ans. Is a data structure that defines all specifications of a file like the file size,

number of lines to a file, permissions   

     etc.

17. The UNIX shell ....

      a) does not come with the rest of the system

      b) forms the interface between the user and the kernal

      c) does not give any scope for programming

      d) deos not allow calling one program from with in another

      e) all of the above

       Ans. (b)

18. enum number { a= -1, b= 4,c,d,e} What is the value of

e ?                                          

      (a) 7

      (b) 4

      (c) 5

      (d) 15

      (e) 3

19. The very first process created by the kernal that runs till the kernal process is halts

is

      a) init

Page 36: Aptitude

      b) getty

     c) both (a) and (b)

     d) none of these

     Ans. (a)

20. Output of the following program is

        main()

        {int i=0;

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

            {switch(i)

               case 0:i+=5;

               case 1:i+=2;

               case 5:i+=5;

               default i+=4;

                break;}

               printf("%d,",i);

              }

         }

      a) 0,5,9,13,17

      b)

5,9,13,17                                                                                                                   

      c) 12,17,22

      d) 16,21

      e) Syntax error

     Ans. (d)

21. What is the ouptut in the following program

               main()

                {char c=-64;

                 int i=-32

                 unsigned int u =-16;

                 if(c>i)

Page 37: Aptitude

                {printf("pass1,");

                 if(c<u)

                 printf("pass2");

                else

                printf("Fail2");

                }

               else

              printf("Fail1);

              if(i<u)

             printf("pass2");

            else

           printf("Fail2")

         }

     a) Pass1,Pass2

     b) Pass1,Fail2

     c) Fail1,Pass2

     d)

Fail1,Fail2                                                                                                                  

     e) None of these

      Ans. (c)

22. In the process table entry for the kernel process, the process id value is  

       (a) 0

       (b) 1

       (c) 2

      (d) 255

      (e) it does not have a process table entry

      Ans. (a)

23. Which of the following API is used to hide a window

        a) ShowWindow

        b) EnableWindow

Page 38: Aptitude

        c) MoveWindow

        d) SetWindowPlacement

       e) None of the above

       Ans. (a)

24. What will the following program do?

        void main()

        {

          int i;

          char a[]="String";

          char *p="New Sring";

          char *Temp;

          Temp=a;

          a=malloc(strlen(p) + 1);

         strcpy(a,p); //Line number:9//

         p = malloc(strlen(Temp) + 1);

        strcpy(p,Temp);

        printf("(%s, %s)",a,p);

        free(p);                                                                                                                   

        free(a);

       } //Line number 15//

             a) Swap contents of p & a and print:(New string, string)

             b) Generate compilation error in line number 8

             c) Generate compilation error in line number 5

             d) Generate compilation error in line number 7

             e) Generate compilation error in line number 1

             Ans. (b)

25. In the following code segment what will be the result of the function,value of x ,

value of y

      {unsigned int x=-1;

        int y;

Page 39: Aptitude

       y = ~0;

       if(x == y)

       printf("same");

       else

        printf("not same");

     }

    a) same, MAXINT, -1

    b) not same, MAXINT, -MAXINT

    c) same , MAXUNIT, -1

    d) same, MAXUNIT, MAXUNIT

    e) not same, MAXINT, MAXUNIT

    Ans. (a)

26. PATH = /bin : /usr : /yourhome The file /bin/calender has the following line in it 

cal 10 1997The file      

      /yourhome/calender has the following line in it cal 5 1997 If the current directory

is /yourhome and calender is 

      executed

           a) The calendar for May 1997 will be printed on screen

          b) The calendar for Oct 1997 will be printed on screen

         c) The calendar for the current month( whatever it is) will be printed

         d) Nothing will get printed on screen

         e) An error massage will be

printed                                                                          

27. What will be the result of the following program ?

           char *gxxx()

          {static char xxx[1024];

           return xxx;

           }

          main() 

         {char *g="string";

Page 40: Aptitude

           strcpy(gxxx(),g);

           g = gxxx();

          strcpy(g,"oldstring");

          printf("The string is : %s",gxxx());

         }

           a) The string is : string

           b) The string is :Oldstring

          c) Run time error/Core dump

          d) Syntax error during compilation

          e) None of these

         Ans. (b)

28. What will be result of the following program?

        void myalloc(char *x, int n)

         {x= (char *)malloc(n*sizeof(char));

         memset(x,\0,n*sizeof(char));

         }

          main()

         {char *g="String";

        myalloc(g,20);

        strcpy(g,"Oldstring");

       printf("The string is %s",g);

        }

       a) The string is : String

       b) Run time error/Core dump

      c) The string is :

Oldstring                                                                                                    

      d) Syntax error during compilation

     e) None of these

29. Which of the following function is used to repaint a window immediatelya)

Sendmessage(hWnd,WM_PAINt,......)

Page 41: Aptitude

         b) InvalidateRect(.......)

        c) MoveWindow

       d) WM_COPY

       e) None

30. Which function is the entry point for a DLL in MS Windows 3.1    

        a) Main

        b) Winmain

        c) Dllmain

       d) Libmain

       e) None

      Ans. (b)

31. The standard source for standard input, standard output and standard error is

        a) the terminal

        b) /dev/null

        c) /usr/you/input, /usr/you/output/, /usr/you/error respectively

        d) None

         Ans. (a)

32. What will be the result of the following program?

          main()

          {char p[]="String";

             int x=0;

             if(p=="String")

             {printf("Pass 1");

              if(p[sizeof(p)-2]=='g')                                                                                     

               printf("Pass 2");

           else

              printf("Fail 2");

          }

          else 

       {

Page 42: Aptitude

        printf("Fail 1");

        if(p[sizeof(p)-2]=='g')

        printf("Pass 2");

        else

        printf("Fail 2");

      } 

      }

    a) Pass 1, Pass 2

    b) Fail 1, Fail 2

    c) Pass 1, Fail 2

   d) Fail 1, Pass 2

  e) syntax error during compilation

33. Which of the choices is true for the mentioned declaration ?

        const char *p;    and

       char * const p;

     a) You can't change the character in both

     b) First : You can't change the characterr & Second : You can;t change the pointer

     c) You can't change the pointer in both

     d) First : You can't change the pointer & Second : You can't chanage the character

     e) None

34. The redirection operators > and >>

      a) do the same

function                                                                                                   

      b) differ : > overwrites, while >> appends

     c) differ : > is used for input while >> is used for output

     d) differ : > write to any file while >> write only to standard output

     e) None of these

     Ans. (b)

35. The command grep first second third /usr/you/myfile

Page 43: Aptitude

         a) prints lines containing the words first, second or third from the file

/usr/you/myfile

        b) searches for lines containing the pattern first in the files

             second, third, and /usr/you/myfile and prints them

        c) searches the files /usr/you/myfiel and third for lines containing the words first

or second and prints them

        d) replaces the word first with the word second in the files third and

/usr/you/myfile

        e) None of the above

       Ans. (b)

 

    Aptitude  

1. like 3 consecutive prime adds to some no what is that ans: both 49 and 59.  

2. One persont travlled 4 laps with the speed of 10,20,40 ( or 30) and 60 kmph and

what is the average speed.

     ans: 20 (sure)

3  like one student takes 20 mins if he go with speed 15kmph and at what speed he 

should go to reach in 15 mins ( 

     nos are not same) ans: 16kmph( but not sure)

4. There are 2 type of people group 'yes' who always says yes ( they never say 'no') if

they are not sure about 

    they will remain sailent. and other grou name 'no' where the group of people always

say 'no' if they are not sure 

    theywill remain silent. thats it now quetions are

   1. what will be the answer if i ask are u belong to group 'yes' options are: they

remain silent ,say yes, say no, either 

       yes or no, can't  be determined

   2. Same quetion but if i ask are u belong to group 'no' answers for both above

Page 44: Aptitude

quetions are not ( not determined)

   3. what will the other person say if ask are u belong to grou 'yes' and etc here were 5

quetions first 4 u can do it 

       last one little bit tough. spend some time on this u can do it.

9.  like from height of 8 mts on ball fell down and each time it bounces half the

distnace back. so what will be the 

    distance travelled ans: 24 (sure) like 8+4+4+2+2+1+1+0.5+0.5+ and etc .. answer is

not 20

10.like 6 cubes are arranged adjacentlay and given the perimeter and aksed to find the

perimeter of one cube.

    ans: if x is the total perimeter then (x/14)*4 leads to the answer. but check it once u

will be having plenty of time.

     answer is 52 (13*4)

11. some data is given like this 10kmph in still water ship took some x mins and

downstream some y mins in same 

      time what is the stream value .... (q is not exat) ans: 3 (not sure)

12.Some average problem like 16 students average weight and teacher joins them ....

ans: 23 (sure) do this   

      (16x+40)/(x+1) will give the value.

13. Some probelm on square like to increase area by 69% by what percent side should

be incresed

      ans: square root of 169 i.e 13 ( not sure)

14. no of rational nos b/w 0 and 5  ans: infinite                                              

15. First day of 1999 is sunday what day is the last day ans: monday

16.bullets probel some x no of bullets are shared by 3 people equally . and each fired 

4 bullets then the sum of remaining bullets is equal to intially divsion value ans: 18

(sure)

17. bread problem, one come and eat half no of breads and somthing... ans: 63( check

it)

18. like A can do in 6 day and B can do in 8 and C can do in 12 days but b left after

Page 45: Aptitude

working for 6 days for how   

     many no of day A and C shluld work  ans: 11( i dont think so this is correct)

19.  I give a jcl code with Programmer name: smith Jobname:ABC Jobclass=c

Message class = a All messages are

      to be displaced code it in a JCL.

          A)     //ABC,smith,class=c,message class=a,message level=(2,1)

          B)      //ABC,smith,class=c,message class=a,message level =(!,1)

          C)      //ABC,smith,class=c,message class=a,message level=(0,1)

          D)      none of these.

20. For a cobol program Move 5 to work-sd. A statement which says that the value of

work-st is 0.

perform Para1.

……………

          Para1.

Add 3 to work-sd

Add 2 to work-st

If work-st <11 go to main-para.

………………

go to para1.

         What would be  the value of work-sd?

           a)       15

           b)       18

           c)       10

           d)       none

  21. Given 2 tables T1 and T2.

                      T1 T2                                                                            

Page 46: Aptitude

A 1 

B 2

C3

                      You  make a query    SELECT * FROM T1,T2.

    What is the no: of rows that are fetched frm this query?

         a)                 4

         b)                 5

         c)                6

         d)               9

22. Who is the data base manager of db2?

         a)       buffer register

         b)       runtime suprivisor

         c)       DBRM

         d)       None

 23.  You have a file with DISP=SHR, when u open the file in output mode

         a)       the records get appended

        b)       the records gets overwritten

        c)       the job abbends

        d)       none of these                                                                                         

24. To exclude some records while sorting which parameter do we use?

         a)       OMIT

         b)       EXCLUDE

        c)       ….d)….

25  You have a dataset TIME.WORK.OCT88, u want to concatenate other datasets

likeTIME.WORK 

       .JUL88,TIME.WORK.APR88, TIME.WORK.MAY88. how do u do that?

Page 47: Aptitude

         a)//DDname DD DSN = TIME.WORK.OCT88, DISP = SHR

DD DSN = TIME.WORK.JUL88, DISP = SHR

DD DSN = TIME.WORK.APR88, DISP = SHR

DD DSN = TIME.WORK.MAY88, DISP = SHR

     b)//DDname  DD DSN = TIME.WORK.JUL88, DISP = SHR

DD DSN = TIME.WORK.OCT88, DISP = SHR

DD DSN = TIME.WORK.APR88, DISP = SHR

DD DSN = TIME.WORK.MAY88, DISP = SHR

     c)//DDname    DD DSN = TIME.WORK.APR88, DISP = SHR

DD DSN = TIME.WORK.JUL88, DISP = SHR

DD DSN = TIME.WORK.MAY88, DISP = SHR

DD DSN = TIME.WORK.OCT88, DISP = SHR

     e)       none of these

     

  26. When db2 entries are made while working in cics, the enteries should be made in

      a)       TCT

      b)       PCT

      c)       DCT

      d)       RCT

27. Find the odd one out

       a)       KSDS

       b)       RRDS

       c)       LDS

       d)       PDS

28. Full form of VTOC

 29. Question based on SKIP and COUNT parameter

Page 48: Aptitude

      Technical  

1. what is vector processing                                                                                        

2. what is data integrity ans: option a ( like the range of values is defined by data

integrity)

3.which topology takes minimum wiring options: star,bus,ring and complete etc

   ans: find it from network text book ( may be bus or ring)

4.best sorting if elements are already sorted ans: insertion sort(sure)

5.software configuration management ----- ans: option a ( but check it from SE text

book there are only 2 confusing 

   answers)

6.In network the packers are flowing unnecessarly what is the way to controlit and ....

options: SNMP, and some i 

   dont remember.

7.some octal no to decimal conversion for given octal no the last digit was 7 ans: the

option a ( the decimal last 

    digit was 1)

8. x-=y+1 is equivalant to ans: x=x-y-1 (sure) because it is interpreted as x=x-(y+1) 

9. in a student form what is the relationship b/w student and course ans: actually it is

many to one but they 

   specified in   a student form so think and write.

10.which is correct to append the ouput of ls and who to some file x. ans:(who;ls)>>x

(check it)

11.what is trigger in DBMS (know what it will do)

12.what happens when we open a file in r+ mode like whether file will be created if it

s not there can we write to file 13. what is ROM ans: it contains boot up program and

it is not accesible that was one answer and anothe option was

      it is non volatile ( choose one among these 2)

14. what is int (*a)[4]  ans: pointer to an array of 4 integer (check it)

Page 49: Aptitude

15. primary key of anothe table is present and so on.......... ans: foreign key

16. what is the diffirenece b/w 0123 and 123 in c? ans:40(sure)

17. which among the devices is spooled device

18. if u get error in adapter which device will u use?ans: contact electronics student.

one of the option was 

      voltometer. 

HR quetions:                                                                                                     

1. why 2+2 is 4 why not 5.

ans: assume u took 2 apples from A and 2 more apples from B and assume u are

having 5 and give 2 to X and give 2 more to Y then nothing will be with u i.e u lossed.

(give some answers but dont say that it is like that only )

2.how may stones did hanuman thowned on lanka? ( diffirent but of same type) and

one more how many trees are there in u'r campus ...

Frequently Asked Questions - Object oriented Concepts

How do you write a program which produces its own source code as its output? How can I find the day of the week given the date?

Why doesn't C have nested functions?

What is the most efficient way to count the number of bits which are set in a value?

How can I convert integers to binary or hexadecimal?

How can I call a function, given its name as a string?

How do I access command-line arguments?

How can I return multiple values from a function?

How can I invoke another program from within a C program?

How can I access memory located at a certain address?

How can I allocate arrays or structures bigger than 64K?

How can I find out how much memory is available?

How can I read a directory in a C program?

Page 50: Aptitude

How can I increase the allowable number of simultaneously open files?

What's wrong with the call "fopen("c:\newdir\file.dat", "r")"?

What is the output of printf("%d")

What will happen if I say delete this

Difference between "C structure" and "C++ structure".

Diffrence between a "assignment operator" and a "copy constructor"

What is the difference between "overloading" and "overridding"?

Explain the need for "Virtual Destructor".

Can we have "Virtual Constructors"?

What are the different types of polymorphism?

What are Virtual Functions? How to implement virtual functions in "C"

What are the different types of Storage classes?

What is Namespace?

What are the types of STL containers?.

Difference between "vector" and "array"?

How to write a program such that it will delete itself after exectution?

Can we generate a C++ source code from the binary file?

What are inline functions?

Talk sometiming about profiling?

How many lines of code you have written for a single program?

What is "strstream" ?

How to write Multithreaded applications using C++?

Explain "passing by value", "passing by pointer" and "passing by reference"

Write any small program that will compile in "C" but not in "C++"

Have you heard of "mutable" keyword?

Page 51: Aptitude

What is a "RTTI"?

Is there something that I can do in C and not in C++?

Why preincrement operator is faster than postincrement?

What is the difference between "calloc" and "malloc"?

What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

What is Memory Alignment?

Explain working of printf.

Difference between "printf" and "sprintf".

What is "map" in STL?

When shall I use Multiple Inheritance?

What are the techniques you use for debugging?

How to reduce a final size of executable?

Give 2 examples of a code optimization.

What is inheritance?

Difference between Composition and Aggregation.

Difference: Sequence Diagrams, Collaboration Diagrams.

Difference: 'uses', 'extends', 'includes'

What shall I go for Package Diagram?

What is Polymorphism?

Is class an Object? Is object a class?

Comment: C++ "includes" behavior and java "imports"

What do you mean by "Realization"?

What is a Presistent, Transient Object?

What is the use of Operator Overloading?

Does UML guarantee project success?

Page 52: Aptitude

Difference: Activity Diagram and Sequence Diagram.

What is association?

How to resolve many to many relationship?

How do you represent static members and abstract classes in Class Diagram?

What does static variable mean?

What is a pointer?

What is a structure?

What are the differences between structures and arrays?

In header files whether functions are declared or defined? 

What are the differences between malloc() and calloc()?

What are macros? what are its advantages and disadvantages?

Difference between pass by reference and pass by value?

What is static identifier?

Where are the auto variables stored?

Where does global, static, local, register variables, free memory and C Program instructions get stored?

Difference between arrays and linked list?

What are enumerations?

Describe about storage allocation and scope of global, extern, static, local and register variables?

What are register variables? What are the advantage of using register variables?

What is the use of typedef?

Can we specify variable field width in a scanf() format string? If possible how?

Out of fgets() and gets() which function is safe to use and why?

Difference between strdup and strcpy?

What is recursion?

Differentiate between a for loop and a while loop? What are it uses?

Page 53: Aptitude

What are the different storage classes in C?

Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

What is difference between Structure and Unions?

What the advantages of using Unions?

What are the advantages of using pointers in a program?

What is the difference between Strings and Arrays?

In a header file whether functions are declared or defined?

What is a far pointer? where we use it?

How will you declare an array of three function pointers where each function receives two ints and returns a float?

what is a NULL Pointer? Whether it is same as an uninitialized pointer?

What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

What does the error 'Null Pointer Assignment' mean and what causes this error?

What is near, far and huge pointers? How many bytes are occupied by them?

How would you obtain segment and offset addresses from a far address of a memory location?

Are the expressions arr and &arr same for an array of integers?

Does mentioning the array name gives the base address in all the contexts?

Explain one method to process an entire string as one unit?

What is the similarity between a Structure, Union and enumeration?

Can a Structure contain a Pointer to itself?

How can we check whether the contents of two structure variables are same or not?

How are Structure passing and returning implemented by the complier?

How can we read/write Structures from/to data files?

What is the difference between an enumeration and a set of pre-processor # defines?

what do the 'c' and 'v' in argc and argv stand for?

Are the variables argc and argv are local to main?

Page 54: Aptitude

What is the maximum combined length of command line arguments including the space between adjacent arguments?

If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

What are bit fields? What is the use of bit fields in a Structure declaration?

To which numbering system can the binary number 1101100100111100 be easily converted to?

Which bit wise operator is suitable for checking whether a particular bit is on or off?

Which bit wise operator is suitable for turning off a particular bit in a number?

Which bit wise operator is suitable for putting on a particular bit in a number?

Which bit wise operator is suitable for checking whether a particular bit is on or off?

which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

Write a program to compare two strings without using the strcmp() function.

Write a program to concatenate two strings.

Write a program to interchange 2 variables without using the third one.

Write programs for String Reversal & Palindrome check

Write a program to find the Factorial of a number

Write a program to generate the Fibinocci Series

Write a program which employs Recursion

Write a program which uses Command Line Arguments

Write a program which uses functions like strcmp(), strcpy()? etc

What are the advantages of using typedef in a program?

How would you dynamically allocate a one-dimensional and two-dimensional array of integers?

How can you increase the size of a dynamically allocated array?

How can you increase the size of a statically allocated array?

Page 55: Aptitude

When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

Which function should be used to free the memory allocated by calloc()?

How much maximum can you allocate in a single call to malloc()?

Can you dynamically allocate arrays in expanded memory?

What is object file? How can you access object file?

Which header file should you include if you are to develop a function which can accept variable number of arguments?

Can you write a function similar to printf()?

How can a called function determine the number of arguments that have been passed to it?

Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

How do you declare the following:

An array of three pointers to chars

An array of three char pointers

A pointer to array of three chars

A pointer to function which receives an int pointer and returns a float pointer

A pointer to a function which receives nothing and returns nothing

What do the functions atoi(), itoa() and gcvt() do?

Does there exist any other function which can be used to convert an integer or a float to a string?

How would you use qsort() function to sort an array of structures?

How would you use qsort() function to sort the name stored in an array of pointers to string?

How would you use bsearch() function to search a name stored in array of pointers to string?

How would you use the functions sin(), pow(), sqrt()?

How would you use the functions memcpy(), memset(), memmove()?

How would you use the functions fseek(), freed(), fwrite() and ftell()?

How would you obtain the current time and difference between two times?

Page 56: Aptitude

How would you use the functions randomize() and random()?

How would you implement a substr() function that extracts a sub string from a given string?

What is the difference between the functions rand(), random(), srand() and randomize()?

What is the difference between the functions memmove() and memcpy()?

How do you print a string on the printer?

Can you use the function fprintf() to display the output on the screen?

What is an object?

What is the difference between an object and a class?

What is the difference between class and structure?

What is public, protected, private?

What are virtual functions?

What is friend function?

What is a scope resolution operator?

What do you mean by inheritance?

What is abstraction?

What is polymorphism? Explain with an example.

What is encapsulation?

What do you mean by binding of data and functions?

What is function overloading and operator overloading?

What is virtual class and friend class?

What do you mean by inline function?

What do you mean by public, private, protected and friendly?

When is an object created and what is its lifetime?

What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

Difference between realloc() and free?

Page 57: Aptitude

What is a template?

What are the main differences between procedure oriented languages and object oriented languages?

What is R T T I ?

What are generic functions and generic classes?

What is namespace?

What is the difference between pass by reference and pass by value?

Why do we use virtual functions?

What do you mean by pure virtual functions?

What are virtual classes?

Does c++ support multilevel and multiple inheritance?

What are the advantages of inheritance?

When is a memory allocated to a class?

What is the difference between declaration and definition?

What is virtual constructors/destructors?

In c++ there is only virtual destructors, no constructors. Why?

What is late bound function call and early bound function call? Differentiate.

How is exception handling carried out in c++?

When will a constructor executed?

What is Dynamic Polymorphism?

Write a macro for swapping integers.

 

Operating Systems

Following are a few basic questions that cover the essentials of OS:

1. Explain the concept of Reentrancy.

Page 58: Aptitude

It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.

Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

2. Explain Belady's Anomaly.Also called FIFO anomaly. Usually, on increasing the number of frames allocated

to a process' virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.

3. What is a binary semaphore? What is its use?A binary semaphore is one, which takes only 0 and 1 as values. They are used to

implement mutual exclusion and synchronize concurrent processes.

4. What is thrashing?It is a phenomenon in virtual memory schemes when the processor spends most of

its time swapping pages, rather than executing instructions. This is due to an inordinate number of page faults.

5. List the Coffman's conditions that lead to a deadlock. Mutual Exclusion: Only one process may use a critical resource at a time. Hold & Wait: A process may be allocated some resources while waiting for others. No Pre-emption: No resource can be forcible removed from a process holding it. Circular Wait: A closed chain of processes exist such that each process holds at least

one resource needed by another process in the chain.

6. What are short-, long- and medium-term scheduling?Long term scheduler determines which programs are admitted to the system for

processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process.

Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.

Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is

Page 59: Aptitude

invoked whenever an event occurs. It may lead to interruption of one process by preemption.

7. What are turnaround time and response time?Turnaround time is the interval between the submission of a job and its

completion. Response time is the interval between submission of a request, and the first response to that request.

8. What are the typical elements of a process image? User data: Modifiable part of user space. May include program data, user stack area,

and programs that may be modified. User program: The instructions to be executed. System Stack: Each process has one or more LIFO stacks associated with it. Used to

store parameters and calling addresses for procedure and system calls. Process control Block (PCB): Info needed by the OS to control processes.

9. What is the Translation Lookaside Buffer (TLB)?In a cached system, the base addresses of the last few referenced pages is

maintained in registers called the TLB that aids in faster lookup. TLB contains those page-table entries that have been most recently used. Normally, each virtual memory reference causes 2 physical memory accesses-- one to fetch appropriate page-table entry, and one to fetch the desired data. Using TLB in-between, this is reduced to just one physical memory access in cases of TLB-hit.

10. What is the resident set and working set of a process?Resident set is that portion of the process image that is actually in real-memory at

a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)

11. When is a system in safe state?The set of dispatchable processes is in a safe state if there exists at least one

temporal order in which all processes can be run to completion without resulting in a deadlock.

12. What is cycle stealing?We encounter cycle stealing in the context of Direct Memory Access (DMA).

Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.

13. What is meant by arm-stickiness?If one or a few processes have a high access rate to data on one track of a storage

disk, then they may monopolize the device by repeated requests to that track. This generally happens with most common device scheduling algorithms (LIFO, SSTF, C-

Page 60: Aptitude

SCAN, etc). High-density multisurface disks are more likely to be affected by this than low density ones.

14. What are the stipulations of C2 level security?C2 level security provides for:

Discretionary Access Control Identification and Authentication Auditing Resource reuse

15. What is busy waiting?The repeated execution of a loop of code while waiting for an event to occur is

called busy-waiting. The CPU is not engaged in any real productive activity during this period, and the process does not progress toward completion.

16. Explain the popular multiprocessor thread-scheduling strategies. Load Sharing: Processes are not assigned to a particular processor. A global queue of

threads is maintained. Each processor, when idle, selects a thread from this queue. Note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis.

Gang Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group scheduling predated this strategy.

Dedicated processor assignment: Provides implicit scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.

Dynamic scheduling: The number of thread in a program can be altered during the course of execution.

17. When does the condition 'rendezvous' arise?In message passing, it is the condition in which, both, the sender and receiver are

blocked until the message is delivered.

18. What is a trap and trapdoor?Trapdoor is a secret undocumented entry point into a program used to grant

access without normal methods of access authentication. A trap is a software interrupt, usually the result of an error condition.

19. What are local and global page replacements?Local replacement means that an incoming page is brought in only to the relevant

process' address space. Global replacement policy allows any page frame from any process to be replaced. The latter is applicable to variable partitions model only.

20. Define latency, transfer and seek time with respect to disk I/O.

Page 61: Aptitude

Seek time is the time required to move the disk arm to the required track. Rotational delay or latency is the time it takes for the beginning of the required sector to reach the head. Sum of seek time (if any) and latency is the access time. Time taken to actually transfer a span of data is transfer time.

21. Describe the Buddy system of memory allocation.Free memory is maintained in linked lists, each of equal sized blocks. Any such

block is of size 2^k. When some memory is required by a process, the block size of next higher order is chosen, and broken into two. Note that the two such pieces differ in address only in their kth bit. Such pieces are called buddies. When any used block is freed, the OS checks to see if its buddy is also free. If so, it is rejoined, and put into the original free-block linked-list.

22. What is time-stamping?It is a technique proposed by Lamport, used to order events in a distributed

system without the use of clocks. This scheme is intended to order events consisting of the transmission of messages. Each system 'i' in the network maintains a counter Ci. Every time a system transmits a message, it increments its counter by 1 and attaches the time-stamp Ti to the message. When a message is received, the receiving system 'j' sets its counter Cj to 1 more than the maximum of its current value and the incoming time-stamp Ti. At each site, the ordering of messages is determined by the following rules: For messages x from site i and y from site j, x precedes y if one of the following conditions holds....(a) if Ti<Tj or (b) if Ti=Tj and i<j.

23. How are the wait/signal operations for monitor different from those for semaphores?If a process in a monitor signal and no task is waiting on the condition variable,

the signal is lost. So this allows easier program design. Whereas in semaphores, every operation affects the value of the semaphore, so the wait and signal operations should be perfectly balanced in the program.

24. In the context of memory management, what are placement and replacement algorithms?

Placement algorithms determine where in available real-memory to load a program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used when memory is full, and one process (or part of a process) needs to be swapped out to accommodate a new program. The replacement algorithm determines which are the partitions to be swapped out.

25. In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

For load-time dynamic linking: Load module to be loaded is read into memory. Any reference to a target external module causes that module to be loaded and the references are updated to a relative address from the start base address of the application module.

Page 62: Aptitude

With run-time dynamic loading: Some of the linking is postponed until actual reference during execution. Then the correct module is loaded and linked.

26. What are demand- and pre-paging?With demand paging, a page is brought into memory only when a location on that

page is actually referenced during execution. With pre-paging, pages other than the one demanded by a page fault are brought in. The selection of such pages is done based on common access patterns, especially for secondary memory devices.

27. Paging a memory management function, while multiprogramming a processor management function, are the two interdependent?

Yes.

28. What is page cannibalizing?Page swapping or page replacements are called page cannibalizing.

29. What has triggered the need for multitasking in PCs? Increased speed and memory capacity of microprocessors together with the support

fir virtual memory and Growth of client server computing

30. What are the four layers that Windows NT have in order to achieve independence? Hardware abstraction layer Kernel Subsystems System Services.

31. What is SMP?To achieve maximum efficiency and reliability a mode of operation known as

symmetric multiprocessing is used. In essence, with SMP any process or threads can be assigned to any processor.

32. What are the key object oriented concepts used by Windows NT? Encapsulation Object class and instance

33. Is Windows NT a full blown object oriented operating system? Give reasons.No Windows NT is not so, because its not implemented in object oriented

language and the data structures reside within one executive component and are not represented as objects and it does not support object oriented capabilities .

34. What is a drawback of MVT?It does not have the features like

ability to support multiple processors virtual storage source level debugging

Page 63: Aptitude

35. What is process spawning?When the OS at the explicit request of another process creates a process, this

action is called process spawning.

36. How many jobs can be run concurrently on MVT?15 jobs

37. List out some reasons for process termination. Normal completion Time limit exceeded Memory unavailable Bounds violation Protection error Arithmetic error Time overrun I/O failure Invalid instruction Privileged instruction Data misuse Operator or OS intervention Parent termination.

38. What are the reasons for process suspension? swapping interactive user request timing parent process request

39. What is process migration?It is the transfer of sufficient amount of the state of process from one machine to

the target machine

40. What is mutant?In Windows NT a mutant provides kernel mode or user mode mutual exclusion

with the notion of ownership.

41. What is an idle thread?The special thread a dispatcher will execute when no ready thread is found.

42. What is FtDisk?It is a fault tolerance disk driver for Windows NT.

43. What are the possible threads a thread can have? Ready Standby

Page 64: Aptitude

Running Waiting Transition Terminated.

44. What are rings in Windows NT?Windows NT uses protection mechanism called rings provides by the process to

implement separation between the user mode and kernel mode.

45. What is Executive in Windows NT?In Windows NT, executive refers to the operating system code that runs in kernel

mode.

46. What are the sub-components of I/O manager in Windows NT? Network redirector/ Server Cache manager. File systems Network driver Device driver

47. What are DDks? Name an operating system that includes this feature.DDks are device driver kits, which are equivalent to SDKs for writing device

drivers. Windows NT includes DDks.

48. What level of security does Windows NT meets?C2 level security.

Frequently Asked Questions - Operating System Concepts

What is MUTEX ? What isthe difference between a 'thread' and a 'process'? What is INODE? Explain the working of Virtual Memory. How does Windows NT supports Multitasking? Explain the Unix Kernel. What is Concurrency? Expain with example Deadlock and Starvation. What are your solution strategies for "Dining Philosophers Problem" ? Explain Memory Partitioning, Paging, Segmentation. Explain Scheduling. Operating System Security.

Page 65: Aptitude

What is Semaphore? Explain the following file systems : NTFS, Macintosh(HPFS), FAT . What are the different process states? What is Marshalling? Define and explain COM? What is Marshalling? Difference - Loading and Linking ? What are the basic functions of an operating system? Explain briefly about, processor, assembler, compiler, loader, linker and the

functions executed by them. What are the difference phases of software development? Explain briefly? Differentiate between RAM and ROM? What is DRAM? In which form does it store data? What is cache memory? What is hard disk and what is its purpose? Differentiate between Complier and Interpreter? What are the different tasks of Lexical analysis? What are the different functions of Syntax phase, Sheduler? What are the main difference between Micro-Controller and Micro- Processor? Describe different job scheduling in operating systems. What is a Real-Time System ? What is the difference between Hard and Soft real-time systems ? What is a mission critical system ? What is the important aspect of a real-time system ?  If two processes which shares same system memory and system clock in a

distributed system, What is it called? What is the state of the processor, when a process is waiting for some event to

occur? What do you mean by deadlock? Explain the difference between microkernel and macro kernel. Give an example of microkernel. When would you choose bottom up methodology? When would you choose top down methodology? Write a small dc shell script to find number of FF in the design. Why paging is used ? Which is the best page replacement algorithm and Why? How much time is spent

usually in each phases and why? Difference between Primary storage and secondary storage? What is multi tasking, multi programming, multi threading? Difference between multi threading and multi tasking? What is software life cycle? Demand paging, page faults, replacement algorithms, thrashing, etc. Explain about paged segmentation and segment paging While running DOS on a PC, which command would be used to duplicate the

entire diskette?

Page 66: Aptitude