section 1. 1.which of the following involves context switch, a) system call b)priviliged instruction c)floating poitnt exception d)all the above e)none of the above ans: a 2.In OSI, terminal emulation is done in a)semion b)appl.. c)presenta... d)transport ans: b 3....... 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles, a)120 nano secs b)120 micro secs c)75 nano secs d)75 micro secs 4. For 1 MBmemory no of address lines required, a)11 b)16 c)22 d) 24 ans: 16 5. Semafore is used for a) synchronization b)dead-lock avoidence c)box d) none ans : a 6. class c: public A, public B a) 2 member in class A,B shouldnot have same name b) 2 member in class A,C " '' '' '' c) both d) none ans : a 7. question related to java 8. OLE is used in a)inter connection in unix b)interconnection in WINDOWS c)interconnection in WINDOWS NT 9.No given in HEX ---- write it in OCTAL 10.macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration 11.preproconia.. does not do one of the following a)macro ...... b)conditional compliclation c)in type checking d)including load file ans: c SECTION B __________ 1.enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above 2.main { int x,j,k; j=k=6;x=2; ans x=1 x=j*k; printf("%d", x); 3. fn f(x) { if(x<=0) return; ans fn(5) ....? else f(x-1)+x; } 4. i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k); ans k=4 5. int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i); ans i=20 6. int x=5; y= x&y ( MULTIPLE CHOICE QS) ans : c 7. Y=10; if( Y++>9 && Y++!=10 && Y++>10) printf("........ Y); else printf("".... ) ans : 13 8. f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error d) ........ ans : a 9. if x is even, then (x%2)=0 x &1 !=1 x! ( some stuff is there) a)only two are correct b) three are correct c), d) .... ans : all are correct 10. which of the function operator cannot be over loaded a) <= b)?: c)== d)* ans: b and d SECTION.C (PRG SKILLS) -------- (1) STRUCT DOUBLELIST { DOUBLE CLINKED INT DET; LIST VOID STRUCT PREVIOUS; BE GIVEN AND A PROCEDURE TO DELETE STRUCT NEW; AN ELEMENT WILL BE GIVEN } DELETE(STRUCT NODE) { NODE-PREV-NEXT NODE-NEXT; NODE-NEXT-PREV NODE-PREV; IF(NODE==HEAD) NODE } IN WHAT CASE THE PREV WAS (A) ALL CASES (B) IT DOES NOT WORK FOR LAST ELEMENT (C) IT DOES NOT WORK FOR----- (2) SIMILAR TYPE QUESTION ANS: ALL DON'T WORK FOR NON NULL VALUE (3) VOID FUNCTION(INT KK) { KK+=20; } VOID FUNCTION (INT K) INT MM,N=&M KN = K KN+-=10; } SECTION D -------- (1) a=2,b=3,c=6 c/(a+b)-(a+b)/c=? (2) no.rep in hexadecimal, write it in radiv 7 (3) A B C D E * 4 ---------- find E ANS: 13 E D C B A ------------ (4) GRE-MODEL TEST-1, SECTION-6(19-22) (5) M HAS DOUBLE AMOUNT AS D, Y HAS RS. 3 MORE THAN HALF OF AMOUNT OF D THE ORDERING A,B,C M C D C Y ANS:DATA INSUFFICIENT D C M C Y (6)IN STASTIC MEN CAUSE MORE ACCIDENTS THEN ONE CONCLUSION (A) MEN DRIVE MORE THAN ONCE (B) STASTICS GIVE WRONG INFORMATION (C) WOMEN ARE CAUTION THAN ME ANS; C(VERIFY) (D)-----ETC (7) P,Q,R,S,T,U -SECURING GRANT;TWO TOURIST PARTIES AND THEN TWO SECURITY GAURDS SHOULD GO WITH EACH PARTY ________________________________________________________________________ P AND R-ARE ENEMIES, Q DOES NOT GO SOUTH P&S-ARE WILLING TO BE TOGETHER ______________________________________________________________________ THE TWO PARTIES MAY GO SOUTH&NORTH RESPECTIVELY AT ONE POINT EACH MAY PASS EACH OTHER THEN GAURDS CAN EXCHANGE 6 Q BASED ON THIS (8)pq-r/s =2 what is q inference a,n&d (a) a can do n units of work in strs,a&b can do n units of work in 2 hrs in how many hrs n units of work ans:3 hr 30 min p = (2s+r)/q ____________ main() { int var=25,varp; varp=&var; varp p = 10; fnc(varp) printf("%d%d,var,varp); } (a) 20,55(b) 35,35(c) 25,25(d)55,55 [ c++,c,dbms interview] [fundamentals] this is new paper ___________________________________________________________________________ application -software ____________________ part-1: 28-questions (5)ingless ans:RDMS (1)bit program-ans d (2)c ans (3)+ 0 ans (4)00p--ans linking (5)------ (6)------- (9)25--45 even no. ans--10 (10) >10 <100 ---ans=n+9
 
           three. I have answers for Q/A paper. For Q/C you 
           should try for answers. 

                          INFOSYS 1997.           TIME 1hr. 
                          PAPER CODE Q/A.        marks 50. 
   -------------------------------------------------------------- 
   1)At 6'o clock clock ticks 6 times.  The time between first and 
   last ticks was 30sec.  How much time it takes at 12'o clock. 

   Ans. 66 sec.                 2 marks. 

   2)Three friends divided some bullets equally.  After all of them 
   shot 4 bullets the total no.of remaining bullets is equal to that of 
   one has after division.  Find the original number divided. 

   Ans. x          x       x 
        x-4        x-4     x-4 
        3x-12 = x 
        x= 6 
        ans is 18                  2 marks 

   3)A ship went on a voyage after 180 miles a plane statrted with 10 times 
   speed  that of the ship.  Find the distance when they meet from 
   starting point. 

   Ans.  180 + (x/10) = x 
          x = 20 
          ans is 180+20=200miles.             2 marks 

   4) Fill the empty slots. 
     Three FOOTBALL teams are there. Given below the list of maches. 

           played  won     lost    draw    Goals for       Goals against 
   A        2       2       *0      *0        *7                 1 
   B        2       *0      *1       1        2                    4 
   C        2       *0      *1      *1        3                   7 

   the slots with stars are answers.   4 marks 
   BC drew with  2-2 
   A won on B by 2-0 
   a won on C by 5-1 
   ( YOU HAVE TO FILL THE BLANKS AT APPROPRIATE STAR SYMBOLS.)` 
   5) There are 3 societies a,b,c.  a lent tractors to b and c as many 
   as they had.  After some time b gave as many tractors to a and c 
   as many as they have.  After sometime c did the same thing. 
   At the end of this transaction each one of them had 24. 
   Find the tractors each orginally had. 

   Ans a had 39, b had 21, c had 12,          4 marks 

   6) There N stations on a railroad. After adding x stations 46 additional 
   tickets have to be printed. Find N and X. 

   Ans. let N(N-1) = t; 
            (N+x)(N+x-1)       = t+46; 
            trail and error method   x=2  and N=11   4 marks 

   7)Given that April 1 is tuesday. a,b,c are 3 persons told that their 
   farewell party was on 
     a  - may 8, thursday 
     b  - may 10,tuesday 
     c  - june 8, friday 
   Out of a,b,c one is only correct one of the regarding month,day,date. 
   Other told two correct and the third person told all wrong.What is 
   correct date,month,day.                 5 marks 
   (ans may be MAY 10 SUNDAY. check once again) 
   8)There are 4 parties.  df,gs,dl(depositloss),ew ran for a contest. 
   Anup,Sujit,John made the following statements regarding results. 
   Anup said either df or ew will definitely win 
   sujit said he is confident that df will not win 
   John said he is confident that neither ew nor dl will win 
   the result has come.  only one of the above three has made a correct 
   statement.  Who has made the correct statement and who has won 
   the contest.                    5 marks. 
     (ans DL ) 
   9)Five people a,b,c,d,e are related to each other.  Four of them make 
   one true statement each as follows. 
   i) b is my father's brother.       (ans. d said this) 
   ii)e is my mother-in-law.          (     b          ) 
   iii)c is my son-in-law's brother.  (     e          ) 
   iv)a is my brother's wife.         (     c          ) 
   who said each statement. 
                                           10 marks. 

   10) All members of d are also members of a 
       All   ''       e   ''                d 
       all    ''      c    ''               both a and b 
       not all ''     a  are members of d 
       not all ''     d   ''            e 
   Some questions on these conditions.(5questions 5 marks) 
   11) 
      boys are allowed to watch football at c.v.Raman auditorium subjected to 
      conditions. 
      i)the boy over age 16 can wear overcoat 
      ii)no boy over age  15 can wear cap 
      iii)to watch the football either he has to wear overcoat or cap 
           or both 
      iv) a boy with an umberella or above 16 or both cannot wear sweater. 
      v)  boys must either not watch football or wear sweater. 

      What is the appearence of the boy who is watching football. 
      Try to solve this question................