TCS  Placement Paper   General - Other   -1 Jan 2004

TCS  Placement Paper   General - Other   -1 Jan 2004


  • Posted by  FreshersWorld 
    7 Jan, 2012

     

    Aptitude         

    1.   A family, planning a weekend trip, decides to spend not more than a total of 8 hours driving. By leaving early
          in the morning, they can average 40 miles per hour on the way to their destination. Due to the heavy Sunday
       
          
    traffic, they can average only 30 miles per hour on the return trip. What is the farthest distance from home
           they 
     can plan to go?                                                                                             
           (a) 120 miles or less                               (b) Between 120and 140 miles                   (c) 140 miles
           (d) Between 140 and 160 miles              (e) 160 miles or more 

    2.    A car is filled with four and half gallons of fuel for a round trip. If the amount of fuel taken while going is 1/4  
          
    more than the amount taken for coming, what is the amount of fuel consumed while coming back?
           (a) Less than 2 gallons                            (b) 2 gallons                                               (c) 2 1/2 gallons
           (d) 3 gallons                                           (e) More than 3 gallons
    3.    A 3-gallon mixture contains one part S and two parts R. In order to change it to a mixture containing 25%
           S, 
     how much R should be added?
           (a) 1/2 gallon               (b) 2/3 gallon               (c) 3/4 gallon               (d) 1 gallon               (e) 1 1/2 gallon

    4.    A tree grows only 3/5 as fast as the one beside it. In four years the combined growth of the two trees is
           eight 
    feet How much does the shorter tree grow in two years?
           (a) Less than 2 feet                                         (b) 2 feet                                                       (c) 2 1/2 feet
            (d) 3 feet                                                        (e) more than 3 feet.  

    5.    Wind flows at 160 miles in 330 minutes, for traveling 80 miles how much time does it require?
             (a) 1 hour 30 minutes                          (b) 1 hour 45 minutes                                     (c) 2 hours
              (d) 2 hours 45 minutes                       (e) 3 hours
    6.    A stationary engine has enough fuel to run 12 hours when its tank is 4/5 full. How long will it run when the
             tank
     is 1/3 full?
             (a) Less than 2 hours                         (b) 2 hours                                                     (c) 3 hours
             (d) 4 hours                                          (e) 5 hours  

    7.    If A is traveling at 72 km per hour on a highway. B is traveling at a speed of 25 meters per second on a    
          
    highway.  What is the difference in their speeds in meters per second?
              (a) 1/2 m/sec                                (b) 1 m/sec                                                     (c) 1 1/2 m/sec
              (d) 2 m/sec                                   (e) 3 m/sec 

    8.    A salesperson by mistake multiplied a number and got the answer as 3, instead of dividing the number by 3.  
          
    What  is the answer he should have actually got?
             (a) 0                     (b) 1/3                  (c) 1                            (d) 2                            (e) 3 

    9.    If the length of a rectangle is increased by 30% and the width is decreased by 20%, then the area is   
          
    increased by...                                                                                                   
            (a) 10%              (b) 5%             (c) 4%      (d) 20%              (e) 25%

    10.    In the class of 40 students, 30 speak Hindi and 20 speak English. What is the lowest possible number of   
             
    students who speak both the languages?
              (a) 5        (b) 20              (c) 15           (d) 10                      (e) 30

    11.    The most economical prices among the following prices is:
               (a) 10 kilo for Rs.160                (b) 2 kilo for Rs.30                     (c) 4 kilo for Rs.70
               (d) 20 kilo for Rs.340                (e) 8 kilo for Rs.130
    12.   A truck contains 150 small packages, some weighing 1 kg each and some weighing 2 kg each. how
              many 
    packages weighing 2 kg each are in the truck if the total weight of all the packages is 264 kg?
           
       (a) 36          (b) 52         (c) 88              (d) 124              (e) 114 

    13.     A man was arrested for exceeding the speed limit by 10 miles an hour. A second man was charged with  
            
    exceeding the same limit by twice as much. The second man was driving 35 miles per hour. What was the   
            
    speed  limit?
              (a) 10 miles per hour          (b) 15 miles per hour                   (c) 20 miles per hour
              (d) 25 miles per hour              (e) 30 miles per hour

    14.  One year ago Pandit was three times his sister's age. Next year he will be only twice her age. How old will   
           
    Pandit be after five years?
                (a) 8                   (b) 12             (c) 11                   (d) 13                     (e) 15 

    15.     If two pencils cost 8 cents, then how much do 5 pencils cost?
                 (a) 18 cents                  
    (b) 20 cents               (c) 22 cents                  (d) 23 cents            (e) 24 cents 

                                    PHYPSOMETRY  TEST 

          Direction:
            In this section you will find different questions with the same meaning. In all such questions your answer has to 
        
             
    be same. for e.g.:
        
         In being thrown by chance with a stranger, you wait for the person to introduce himself or herself.
                (a) Yes                            (b) No                            (c) ?
        It is difficult for you to chat about things in general with people.
                (a) Yes                            (b) No                            (c) ?

        These two questions have similar meanings. If you answer the first one 'NO' and the second one 'YES', i.e. if 
        you differ in your answers to similar questions you lose marks for every question with the above meaning.The        choices to these questions are:
                (a) Yes.
                (b) No.
                (c) ?                                                                                                          


    1.   You start to work on a project with great deal of enthusiasm.
    2.   You would rather plan an activity than take part in it.
    3.   You have more than once taken lead in organizing project or a group of some kind.
    4.   You like to entertain guests.
    5.   Your interests change quickly from one thing to another.
    6.   When you eat a meal with others, you are usually one of the last to finish.
    7.   You believe in the idea that we should " eat, drink and be merry, for tomorrow we die."
    8.   When you find that something you have bought is defective, you hesitate to demand an exchange or a
           refund.
    9.   You find it easy to find new acquaintances.
    10. You are sometimes bubbling over with energy and sometimes very sluggish.
    11. You are happiest when you get involved in some projects that calls for rapid action.
    12. Other people think of you as being very serious minded.
    13. In being thrown by chance with a stranger, you wait for the person to introduce himself or herself.
    14. You like to take part in many social activities.
    15. You sometimes feel "just miserable" for no good reason at all.
    16. You are often so much " on the go" that sooner or later you may wear yourself out.
    17. You like parties you attend to be lively.
    18. If you hold an opinion that is radically different that expressed by a lecturer, you are likely to tell the
          person about it either during or after the lecture.
    19. It is difficult for you to chat about things in general with people.                               
    20. You give little thought to your failures after they are passed.
    21. You often wonder where others get all the excess energy they seem to have.
    22. You are inclined to stop to think things over before you act.
    23. You avoid arguing over a price with a clerk or sales person.
    24. You would dislike very much to work alone in some alone place.
    25. You often find it difficult to go to sleep at night because you keep thinking of what happened during the
          day.
    26. You find yourself hurrying to get to places even when there is plenty of time.
    27. You like work that requires considerable attention to details.
    28. You are satisfied to let some one else take the lead in group activities.
    29. You enjoy getting acquainted with people.
    30. It takes a lot to get you emotionally stirred up or excited.
    31. You work more slowly and deliberately than most people of your sex and age.
    32. You are a carefree individual.
    33. When people do not play fair you hesitate to say anything about it to them.
    34. It bothers you to have people watch you at your work.
    35. You have usually been optimistic about your future.
    36. You like to have plenty of time to stop and rest.
    37. You take life very seriously.
    38. You enjoy applying for a job in person.
    39. You would like to be a host or hostess for parties at club.
    40. You often feel uncomfortable or uneasy.
    41. You are the kind of person who is "on the go" all the time.
    42. You often crave excitement.
    43. The thought of making a speech frightens you.
    44. You find it easy to start conversation with strangers.
    45. You often feel guilty without a very good reason for it.
    46. People think you are a very energetic person.
    47. You sometimes make quick decisions that you later wish you hadn't made.
    48. You find it difficult to ask people for money or other donations, even for a cause in which you are
          interested.
    49. You are so naturally friendly that people immediately feel at ease with you.
    50. You daydream a great deal.
    51. You are quick in your actions.
    52. You have a habit of starting things and then losing interest in them.                         
    53. When you were a child many of your playmates naturally expected you to be the leader. 
    54. You sometimes avoid social contacts for fear of doing or saying the wrong thing.
    55. You have frequent ups and downs in mood, sometimes with and sometimes without apparent cause.
    56. You always seem to have plenty of vigour and vitality.
    57. It is difficult for you to understand people who get very concerned about things.
    58. When a clerk in a store waits on others who come after you, you call his or her attention to the fact.
    59. You would be very unhappy if you were prevented from making numerous social contacts.
    60. There are times when your future looks very dark.
    61. You sometimes wish that people would slow down a bit and give you a chance to catch up.
    62. Many of your friends think you take your work too seriously.
    63. You hesitate to walk into a meeting when you know that everyone's eye will be upon you.
    64. You limit your friendships mostly to members of your own sex.
    65. You almost always feel well and strong.
    66. You seem to lack the drive necessary to get as much as other people do.
    67. You make decisions on the spur of the moment.
    68. You are rather good at bluffing when you find yourself in difficulty.
    69. After being introduced to someone , you just cannot think of things to say to make good conversation.
    70. You feel lonesome even when with other people.
    71. You are able to work for unusually long hours without feeling tired.
    72. You often act on the first thought that comes into your head.                              
    73. At the scene of an accident, you take an active part in helping out.
    74. You have difficulty in making new friends.
    75. Your mood often changes from happiness to sadness or vice versa without knowing why.
    76. You talk more slowly than most people.
    77. You like to play practical jokes upon others

    78. You take the lead in putting life into a dull party.
    79. You would like to belong to as many clubs and social organizations as possible.
    80. There are times when your mind seems to work very slowly and other times when it works very rapidly.
    81. You like to do things slowly and deliberately.
    82. You are a happy-go-lucky individual.
    83. When you are served stale or inferior food in a restaurant, you say nothing about it.
    84. You would rather apply for a job by writing a letter than by going through with a personal interview.
    85. You are often in low spirits.
    86. You are inclined to rush from one activity to another without pausing enough for rest.
    87. You are so concerned about the future that you do not get as much fun out of the present as you might.
    88. When you are attracted to a person whom you have not met earlier you make an active attempt to get
          acquainted even though it may be quite difficult.
    89. You are inclined to limit your acquaintances to select few
    90. you seldom give your past mistakes a second thought.
    91. You are less energetic than many people you know.
    92. You often stop to analyzed your thoughts and feelings.                                         
    93. You speak out in meetings to oppose those whom you feel sure are wrong.
    94. You are so shy it bothers you.
    95. You are sometimes bothered by having a useless thought come into your mind over and over.
    96. You get things in hurry.
    97. It is difficult for you to understand how some people can be so unconcerned about the future.
    98. You lie to sell things (i.e. to act as a sales person)
    99. You are often "Life of the Party".
    100. You find daydreaming very enjoyable.
    101. At work or at play other people find it hard to keep up with the pace you set.
    102. You can listen to a lecture without feeling restless.
    103. You would rather work for a good boss than for yourself.
    104. You can express yourself more easily in speech than in writing.
    105. You keep in fairly uniform spirits.
    106. You dislike to be hurried in your work.
    107. You sometimes find yourself "crossing bridges before you come to them".
    108. You find it somewhat difficult to say "no" to a sales person who tries to sell you something you do not
             really want.
    109. There are only a few friends with whom you can relax and have a good time.
    110. You usually keep cheerful in spite of trouble.
    111. People sometimes tell you to "slow down" or "take it easy".
    112. You are one of those who drink or smoke more than they know they should.
    113. When you think you recognize people you see in a public place, you ask them whether you have met
            them before.
    114. You prefer to work alone.
    115. Disappointment affect you so little that you seldom think about them twice.
    116. You are slow and deliberate in movements.
    117. You like wild enthusiasm, sometimes to a point bordering on rowdyism at a football or baseball game.
    118. You feel self conscious in the presence of important people.
    119. People think of you as being a very social type of person.
    120. You have often lost sleep over your worries.
    121. You can turn out a large amount of work in a short time.
    122. You keep at a task until it is done, even after nearly everyone else has given up. 
    123. You can think of a good excuse when you need one.
    124. Other people say that it is difficult to get to know you well.
    125. You daydreams are often about things that can never come true.
    126. You often run upstairs taking two steps at a time.
    127. You seldom let your responsibility interfere with your having a good time.
    128. You like to take on important responsibilities such as organizing a new business.
    129. You have hesitated to make or to accept "dates" because of shyness.
    130. Your mood is very easily influenced by people around you.
    131. Others are often amazed by the amount of work you turn out.
    132. You generally feel as though you haven't a care in the world.                               
    133. You find it difficult to get rid of sales person whom you do not care to listen or give your time.
    134. You are a listener rather than a talker in a social conversation.
    135. You almost always feel that life is very much worth living.
    136. It irritates you to have to wait at a crossing for a long freight train to pass.
    137. You usually say what you feel like saying at the moment.
    138. You like to speak in public.
    139. You like to be with people.
    140. You generally keep cool and think clearly in exciting situations.
    141. Other people regard you as a lively individual.
    142. When you get angry, if you let yourself go, you feel better.
    143. You seek to avoid all trouble with other people.
    144. People seem to enjoy being with you.
    145. You sometimes feel listless and tired for no good reason.
    146. It is hard to understand why many people are so slow and get so little done.
    147. You are fond of betting on horse races and games, whether you can afford it or not.
    148. If someone you know has been spreading untrue and bad stories about you, you see the person as
            soon as possible and have a talk about it.
    149. Shyness keep you from being as popular as you should be.
    150. You are generally free from worry about possible misfortunes. 

                                                C  TEST  

    This test consists of 50 questions. The Set Code for this paper is D.  

    1.    The C language terminator is
            (a) semicolon                        (b) colon                        (c) period                      (d) exclamation mark 

    2.    What is false about the following -- A compound statement is
            (a) A set of simple statements                                                (b) Demarcated on either side by curly brackets
            (c) Can be used in place of simple statement                          (d) A C function is not a compound statement. 

    3.    What is true about the following C Functions
            (a) Need not return any value                                                 (b) Should always return an integer
            (c) Should always return a float                                              (d) Should always return more than one value 

    4.    Main must be written as
            (a) The first function in the program                                        (b) Second function in the program
            (c) Last function in the program                                              (d) Any where in the program 

    5.    Which of the following about automatic variables within a function is correct ?
            (a) Its type must be declared before using the variable             (b) They are local
            (c) They are not initialized to zero                                           (d) They are global 

    6.   Write one statement equivalent to the following two statements:   x=sqr(a);  return(x);
           Choose from one of the alternatives
            (a) return(sqr(a));                                    (b) printf("sqr(a)");
            (c) return(a*a*a);                                    (d) printf("%d",sqr(a)); 

    7.   Which of the following about the C comments is incorrect ?
            (a) Comments can go over multiple lines
            (b) Comments can start any where in the line
            (c) A line can contain comments with out any language statements
            (d) Comments can occur within comments                                                        

    8.   What is the value of y in the following code?
                                x=7;
                                y=0;
                                if(x=6) y=7;
                                else y=1;
            (a) 7                                    (b) 0                                (c) 1                                 (d) 6 

    9.   Read the function conv() given below
                                conv(int t)
                                {
                                    int u;
                                    u=5/9 * (t-32);
                                    return(u);
                                }
           What is returned
            (a) 15                                    (b) 0                                (c) 16.1                            (d) 29 

    10.  Which of the following represents true statement either x is in the range of 10 and 50 or y is zero
            (a) x >= 10 && x <= 50 || y = = 0                                (b) x<50
            (c) y!=10 && x>=50                                                    (d) None of these 

    11.  Which of the following is not an infinite loop ?
            (a) while(1)\{ ....}                                                    (b) for(;;){...}
            (c) x=0;                                                                   (d) # define TRUE 0
                do{ /*x unaltered within the loop*/                                ...
                    .....}while(x = = 0);                                                while(TRUE){ ....}
                                                                                                                                       
    12.   What does the following function print?
                                func(int i)
                                {
                                    if(i%2)return 0;
                                    else return 1;
                                }
                                main()
                                {
                                    int =3;
                                    i=func(i);
                                    i=func(i);
                                    printf("%d",i);
                                }
              (a) 3                                (b) 1                                (c) 0                                (d) 2 

    13.   How does the C compiler interpret the following two statements
                                p=p+x;
                                q=q+y;
            (a) p= p+x;                     (b)p=p+xq=q+y;                (c)p= p+xq;                      (d)p=p+x/q=q+y;
                 q=q+y;                                                                    q=q+y;

       For questions 14,15,16,17 use the following alternatives:
             a.int                                 b.char                                 c.string                              d.float 

    14.   '9' 

    15.   "1 e 02" 

    16.   10e05                                                                                                                  

    17.   15
    18.   Read the folllowing code
            # define MAX 100
            # define MIN 100
            ....
            ....
                if(x>MAX)
                    x=1;
                else if(x<MIN)
                    x=-1;
                    x=50;
              if the initial value of x=200,what is the value after executing this code?
              (a) 200                                (b) 1                                (c) -1                                (d) 50
    19.   A memory of 20 bytes is allocated to a string declared as char *s then the following two statements are 

             executed:
                            s="Entrance"
                            l=strlen(s);
             what is the value of l ?
            (a)20                                (b)8                                (c)9                                (d)21 

    20.   Given the piece of code
                    int a[50];
                    int *pa;
                    pa=a;
             To access the 6th element of the array which of the following is incorrect?
            (a) *(a+5)                                (b) a[5]                     (c) pa[5]                           (d) *(*pa + 5}  

    21.   Consider the following structure:
                                struct num nam
                                      {
                                    int no;
                                    char name[25];                                                                                    
                                }
                                struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
                                .....
                                .....
                                printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
           What does the above statement print?
            (a) 8,9                            (b) 9,9                            (c) 8,8                            (d) 8,unpredictable value 

    22.   Identify the in correct expression
             (a)a=b=3=4;               (b)a=b=c=d=0;                (c)float a=int b= 3.5;        (d)int a; floatb;a=b=3.5; 

    23.   Regarding the scope of the varibles;identify the incorrect statement:
    (a)   Automatic variables are automatically initialized to 0    (b) static variables are are automatically initialized to 0
    (c)    The address of a register variable is not accessible       (d) static variables cannot be initialized with any 
             expression

    24. cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4; is equivalent to which of the following?
                    (a) if cond 1
                        exp 1;
                        else if cond 2
                        exp 2;
                        else if cond 3
                        exp 3;
                        else exp 4;
                    (b) if cond 1
                        if cond 2
                        if cond 3
                        exp 1;                                                                                                     
                        else exp 2;
                        else exp 3;
                        else exp 4;
                    (c) if cond 1 && cond 2 && cond 3
                        exp 1 |exp 2|exp 3|exp 4;
                    (d) if cond 3
                        exp 1;
                        else if cond 2 exp 2;
                        else if cond 3 exp 3;
                        else exp 4; 

    25.   The operator for exponentiation is
              (a) **                            (b) ^                            (c) %                      
      (d) not available

    26.   Which of the following is invalid
              (a) a+=b                        (b) a*=b                       (c) a>>=b                    (d) a**=b

    27.   What is y value of the code if input x=10
                                y=5;
                                if (x==10)
                                else if(x==9)
                                else y=8;
              ( a)9                            (b)8                                 (c)6                            (d)7

    28.  What does the following code do?
                                fn(int n, int p, int r)
                                {
                                    static int a=p;
                                    switch(n)
                                    {
                                        case 4:a+=a*r;
                                        case 3:a+=a*r;
                                        case 2:a+=a*r;
                                        case 1:a+=a*r;
                                    }
                                }
           (a) computes simple interest for one year         (b) computes amount on compound interest for 1 to 4 years
            (c) computes simple interest for four year          (d) computes compound interest for 1 year

    29.
                                a=0;
                                while(a<5)
                                printf("%d\\n",a++);
           How many times does the loop occurs?
            (a) infinite                                    (b)5                                    (c)4                                    (d)6

    30.   How many times does the loop iterated ?
                               for(i=0;i=10;i+=2)                                                                            
                                printf("Hi\\n");
              (a)10                                          (b) 2                                    (c) 5                                    (d) None of these

    31.   What is incorrect among the following
            A recursive function
                (a) calls itself                                            (b) is equivalent to a loop
                (c) has a termination condition                  (d) does not have a return value at all  

    32.   Which of the following go out of the loop if expn 2 becoming false
            (a) while(expn 1)\{...if(expn 2)continue;}        (b) while(!expn 1)\{if(expn 2)continue;...}
            (c) do{..if(expn 1)continue;..}while(expn 2);   (d) while(!expn 2)\{if(expn 1)continue;..\}

    33.   Consider the following program
                                main()
                                {
                                    unsigned int i=10;
                                    while(i>=0)
                                    {
                                        printf("%u",i)
                                        i--;
                                    }
                                }
        How many times the loop will get executed
            (a)10                                (b)9                                (c)11                                (d) infinite

    34.   Pick out the odd one out
            (a) malloc()                       (b) calloc()                     (c) free()                           (d) realloc()

    35.   Consider the following program
                                main()
                                {
                                    int a[5]={1,3,6,7,0};
                                    int *b;
                                    b=&a[2];
                                }
           The value of b[-1] is
               (a) 1                            (b) 3                                (c) -6                                (d) none

    36.                       # define prod(a,b)=a*b
                                main()
                                {
                                    int x=2;
                                    int y=3;
                                    printf("%d",prod(x+2,y-10));
                                }
            the output of the program is                                                                                    
            (a) 8                            (b) 6                                (c) 7                                (d) None

    37.  Consider the following program segment
                                int n,sum=1;
                                switch(n)
                                {
                                    case 2:sum=sum+2;
                                    case 3:sum*=2;
                                    break;
                                    default:sum=0;
                                }
        If n=2, what is the value of sum
            (a) 0                            (b) 6                                (c) 3                                    (d) None of these

    38.   Identify the incorrect one
                    1.if(c=1)
                    2.if(c!=3)
                    3.if(a<b)then
                    4.if(c==1)
            (a) 1 only                     (b) 1&3                            (c) 3 only                            (d) All of the above

    39.   The format specified for hexa decimal is
            (a) %d                          (b) %o                             (c) %x                                (d) %u

    40.   Find the output of the following program
                                main()
                                {
                                    int x=5, *p;
                                    p=&x
                                    printf("%d",++*p);
                                }
            (a) 5                                    (b) 6                                    (c) 0                            (d) none of these

    41.  Consider the following C code
                                main()
                                {
                                    int i=3,x;
                                    while(i>0)
                                    {
                                        x=func(i);
                                        i--;
                                    }
                                    int func(int n)
                                    {
                                        static sum=0;
                                        sum=sum+n;
                                        return(sum);
                                    }
                                }
            The final value of x is
            (a) 6                                (b) 8                                (c) 1                                    (d) 3

    43. Int *a[5] refers to
            (a) array of pointers        (b) pointer to an array        (c) pointer to a pointer          (d) none of these

    44.Which of the following statements is incorrect
            (a)                 typedef struct new
                                {
                                    int n1;
                                    char n2;
                                } DATA;

            (b)                typedef struct
                                {
                                    int n3;
                                    char *n4;
                                }ICE;
                                                                                                                                                  
            (c)                typedef union
                                {
                                    int n5;
                                    float n6;
                                } UDT;

    (d)                        #typedef union
                                {
                                    int n7;
                                    float n8;
                                } TUDAT;

2009-2016 downloadmela.com. All rights reserved.