Techno World Inc - The Best Technical Encyclopedia Online!

THE TECHNO CLUB [ TECHNOWORLDINC.COM ] => CISCO => Topic started by: Tanya on June 06, 2007, 12:21:59 AM



Title: Technical Paper - C
Post by: Tanya on June 06, 2007, 12:21:59 AM
Technical Paper - C


   1.

      main()
       {
        int counter=1;
         for(;;)
             {
             counter++;
             if(counter>9)
             break;
          }

       }
       in the above program
       (a)error b'coz for should have parameters
       (b)error bcoz 2 semicolons in a for loop are invalid
       (c)no error,loop is executed once
       (d) no error ,loop is executed 10 times 
   2.

      main()
        {
         char str={'H','E','L','L','O',''}
           printf("%s/n",str+1);
       }
           o/p?
           (a)prints ELLO
           (b)prints HELLO
           (c)prints ILLO (i.e.'H' is incremented by 1)
           (d)...
   3.

      The average temperature for monday,wednesday,thursday was 46 o C.the average temperature fortuesday,wednesday,thursday,friday was 48(some no)..if temp on monday was 42 o C,what is the temperature on tuesday?
            (a)32
            (b)36
            (c)37
             (d)3....
   4.

      The average marks of 12 students was found to be......(some no)...it was later found that while entering the data , it had been entered as 74 instead of 50...and 20 instead of 24(nos are  not the same)...what is the correct average?
   5.

       If a lady bought a house & sold it at 25% more than what she had paid after 3 years, she has to pay 50%tax on the gain...If C is the cost price,(gain=s.P-c.p),what tax did she  have to pay?
      (a)..
      (b)C/8                                                                                                                             
       (c)...
       (d)... 
   6.

      Some no of men(given)..complete a work in (given) no of days...after (some no) of days ..some more(given no) men join them,they will finish the work in how many days?
   7.

      If a car travels from A to B at a speed of 'x' kmph & travels back from B to A at 4/5th the speed,then the total distance travelled in terms of percentage of x is?
      (a)2400km
      (b)3600km
      (c)..
      (d)...
   8.

      A question on malloc
       int *p;
       p=malloc(sizeof(int)*5);
       if malloc returned the address 1000;the value of p+1 is
        (a)1002
        (b)1004
        (c)...
        (d).....
   9.

       cascade amplifier is:
       (a)a common emitter stage followed by a common base stage
       (b)a common base followed by emitter follower
       (c)...
      (d)a common base stage followed by a common emitter stage
  10.

      A network has 7 nodes & 5 independent loops,the no of branches=?
       (a)11
       (b)14
       (c)..
       (d)...
  11.

      Many nodes transmit at the same time .....collision occurs...retransmit.....what is this called?
       (a)
       (b)
       (c)collision.....enforcement
       (d)
  12.

      If the characteristic impedance of a transmission line is 50ohms,at 1 end the impedance is +j50 ohms,the VSWR =?
      (a)0
      (b)infinity
      (c)+j
      (d)+1
  13.

      Minimum no of NAND gates required to realize the boolean eqn: Z=ABC?
       (a)  4
       (b)  6
       (c)..
       (d)....
  14.

      It has been found that mercury poisoning due to industrial pollution causes Hobson's disease. An island R is completely away from modern industry.People here follow subsistence agriculture method. A high % of people in Island R are affected by Hobsons disease.From the above paragraph, we can deduce
       (i)  there must be another reason for Hobson's disease other than mercury posoning
       (ii) mercury poisoning can be due to other reasons than industrial pollution
       (iii)....
       (a) i only
       (b)ii only
       (c) i ,ii, iii
       (d) i and ii
  15.

      fun()
      {
      int counter=1;
      counter++;
      if(counter>10)
      fun();
      }...(some program similar to this one). the program will be executed infinetely--ans
  16.

      Which of these are legal?
      i.a pointer to a function
      ii.a pointer to a structure
      ii.pointer to union
        (a)i only
        (b)i and ii                                                                                             
        (c)i,ii &iii
        (d)ii &iii
  17.

      Union..
         {
          int ivalue;
          char lvalue;
          struct boo
             {
                int ivalue;
                char lvalue;
             }databook;
       };
       (a)error as struct within union is not allowed
      (b)error as struct members have same name as union members
      (c)...
      (d).....
  18.

       How many stacks are there in DOS?
        (a)1 stack
        (b)2 stacks
        (c)3 stacks
        (d)...
  19.

       What is the o/p?
        main()
        {
       char arr[5]={'a','a','b','c','d','e'};
       printf("%s",arr);
        }