<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8264002408097833676</id><updated>2012-02-16T18:22:22.142-08:00</updated><category term='DESHAW PAPER'/><category term='DESHAW IITKGP 97'/><category term='DESHAW 1999'/><category term='GOOGLE RECRUITMENT PROCESS'/><category term='DESHAW 2'/><category term='DESHAW  PAPER'/><category term='MICROSOFT  TEST- INTERVIEW 2006'/><title type='text'>MICROSOFT,GOOGLE,DESHAW</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-1640997965378247813</id><published>2007-05-07T05:36:00.000-07:00</published><updated>2007-05-07T05:40:40.596-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DESHAW PAPER'/><title type='text'>DESHAW PAPER</title><content type='html'>This paper comprises of an Aptitude test and C-language test&lt;br /&gt;  Aptitude-20 questions (2 marks each)&lt;br /&gt;  C-language - 20 questions(3 marks each)&lt;br /&gt;******************************************&lt;br /&gt;      APTITUDE TEST&lt;br /&gt;     20 QUESTIONS;2 MARKS EACH&lt;br /&gt;     TIME-20MINUTES&lt;br /&gt;   1) ONE RECTANGULAR PLATE WITH LENGTH 8INCHES,BREADTH 11 &lt;br /&gt;   INCHES AND 2 INCHES THICKNESS IS THERE.WHAT IS THE LENGTH &lt;br /&gt;   OF THE CIRCULAR ROD WITH DIAMETER 8 INCHES AND EQUAL TO &lt;br /&gt;   VOLUME OF RECTANGULAR PLATE?&lt;br /&gt;   ANS: 3.5INCHES&lt;br /&gt;   2) WHAT IS THE NUMBER OF ZEROS AT THE END OF THE PRODUCT &lt;br /&gt;   OF THE NUMBERS FROM 1 TO 100&lt;br /&gt;   3) in some game 139 members have participated every time &lt;br /&gt;   one fellow will get bye what is the number of matches to &lt;br /&gt;   choose the champion to be held?&lt;br /&gt;   ans: 138&lt;br /&gt;   4) one fast typist type some matter in 2hr and&lt;br /&gt;   another slow typist type the&lt;br /&gt;   same matter in 3hr. if both do combinely in how much time &lt;br /&gt;   they will finish.&lt;br /&gt;   ans: 1hr 12min&lt;br /&gt;   5) in 8*8 chess board what is the total number of squares&lt;br /&gt;   refer odel&lt;br /&gt;   ans:204&lt;br /&gt;   6) falling height is proportional to square of the time.&lt;br /&gt;   one object falls 64cm in 2sec than in 6sec from how much &lt;br /&gt;   height the object will fall.&lt;br /&gt;   7) gavaskar average in first 50 innings was 50 . after the 51st&lt;br /&gt;   innings his average was 51 how many runs he made in the 51st&lt;br /&gt;   innings&lt;br /&gt;   8) 2 oranges,3 bananas and  4 apples cost Rs.15 . 3 ornages &lt;br /&gt;   2 bananas 1 apple costs Rs 10. what is the cost of 3 oranges, &lt;br /&gt;   3 bananas and 3 apples &lt;br /&gt;   ans Rs 15.&lt;br /&gt;   9)in 80 coins one coin is counterfiet what is minimum number of &lt;br /&gt;    weighings to find out counterfiet coin &lt;br /&gt;   10)in a company 30% are supervisors and 40% employees are male&lt;br /&gt;   if 60% of supervisors are male. what is the probability&lt;br /&gt;   that a randomly choosen employee is a male or female?&lt;br /&gt;   11)statement: all green are blue are blue, all blue are white&lt;br /&gt;   conclusion: &lt;br /&gt;   I) some blue are green II) some white are green&lt;br /&gt;   III)some green are not white IV) all white are blue&lt;br /&gt;      a) he has given four choices like gre type&lt;br /&gt;   12)all teachers are students. some students are girls.&lt;br /&gt;      this type of questions are there.&lt;br /&gt;      we cant able to reproduce them.&lt;br /&gt;&lt;br /&gt;        D.E.shaw  1997  &lt;br /&gt;      SECTION B (all multiple choices)&lt;br /&gt;  (each q carries 3 marks)&lt;br /&gt;   1.while((*p++=*q++)!=0){}&lt;br /&gt;   is equal to&lt;br /&gt;   a) b) c) d)&lt;br /&gt;   2.the function strcmp(str1,str2) returns&lt;br /&gt;   3. int   *x[](); means&lt;br /&gt;   4.#define  PRINT(int) printf("int=%d",int);&lt;br /&gt;   main()&lt;br /&gt;   { &lt;br /&gt;   int x,y,z;&lt;br /&gt;   x=03;y=-1;z=01;&lt;br /&gt;   PRINT(x^x);&lt;br /&gt;   z&lt;&lt;=3;PRINT(x);&lt;br /&gt;   y&gt;&gt;=3;PRINT(y);&lt;br /&gt;   }&lt;br /&gt;   5. struct list{&lt;br /&gt;   int x;&lt;br /&gt;   struct list *next;&lt;br /&gt;   }*head;&lt;br /&gt;   the struct head.x =100&lt;br /&gt;   above is correct / wrong&lt;br /&gt;   6. '-'=45  '/'=47&lt;br /&gt;   printfr(%d/n,'-','-','-','-','/','/','/');&lt;br /&gt;   o/p =?&lt;br /&gt;   12.o/p=?&lt;br /&gt;   int i;&lt;br /&gt;   i=1;&lt;br /&gt;   i=i+2*i++;&lt;br /&gt;   printf(%d,i);&lt;br /&gt;   8.{ ch='A';&lt;br /&gt;   while(ch&lt;='F'){&lt;br /&gt;   switch(ch){&lt;br /&gt;   case'A':case'B':case'C':case'D':ch++;continue;&lt;br /&gt;   case'E':case'F':ch++;&lt;br /&gt;   }&lt;br /&gt;   putchar(ch);&lt;br /&gt;   }&lt;br /&gt;   }     a)ABCDEF  b.EFG c.FG d.error&lt;br /&gt;   9. FILE *fp1,*fp2;&lt;br /&gt;   fp1=fopen("one","w")&lt;br /&gt;   fp2=fopen("one","w")&lt;br /&gt;   fputc('A',fp1)&lt;br /&gt;   fputc('B',fp2)&lt;br /&gt;   fclose(fp1)&lt;br /&gt;   fclose(fp2)}&lt;br /&gt;   a.error b. c. d.&lt;br /&gt;   10. int a=1; b=2; c=3; *pointer;&lt;br /&gt;   pointer=&amp;c;&lt;br /&gt;   a=c/*pointer;&lt;br /&gt;   b=c;&lt;br /&gt;   printf("a=%d b=%d",a,b);&lt;br /&gt;   a. a=1 b=3&lt;br /&gt;   b a=3 b=3&lt;br /&gt;   c 3     2&lt;br /&gt;   d. error&lt;br /&gt;   11.#include&lt;malloc.h&gt;&lt;br /&gt;     char *f()&lt;br /&gt;     {   &lt;br /&gt;     char *s=malloc(8);&lt;br /&gt;     strcpy(s,"goodbye")&lt;br /&gt;     }&lt;br /&gt;     main()&lt;br /&gt;     {&lt;br /&gt;      char *f()_;&lt;br /&gt;      printf("%c",*f()='A');&lt;br /&gt;     }&lt;br /&gt;      o/p=?&lt;br /&gt;   13. int sum(n)&lt;br /&gt;     int n;&lt;br /&gt;     if(n&lt;1)return n;&lt;br /&gt;     else return(n+sum(n-1))&lt;br /&gt;      a 10 b 16  c  14  d  15&lt;br /&gt;   14.   when a function is recursively called all ,&lt;br /&gt;       automatic variables are    a. stored in stack b . c. d&lt;br /&gt;   15)   #define MAN(x,y) (x)&gt;(y)?(x):(y)&lt;br /&gt;      {  int i=10;j=5;k=0;&lt;br /&gt;       k= MAN(i++,++j)&lt;br /&gt;       printf(%d %d %d %d,i,j,k)&lt;br /&gt;       }&lt;br /&gt;   16) a=10;b=5; c=3;d=3;&lt;br /&gt;       if(a &lt; b)&amp;&amp;(c=d++)&lt;br /&gt;       printf(%d %d %d %d a,b,c,d)&lt;br /&gt;       else printf("%d %d %d %d a,b,c,d);&lt;br /&gt; &lt;br /&gt;  19. what is o/p&lt;br /&gt;  #include&lt;stdarg.h&gt;&lt;br /&gt;  show(int t,va_list ptr1)&lt;br /&gt;  {&lt;br /&gt;  int a,x,i;&lt;br /&gt;  a=va_arg(ptr1,int)&lt;br /&gt;  printf("\n %d",a)&lt;br /&gt;  }&lt;br /&gt;  display(char)&lt;br /&gt;  {int x;&lt;br /&gt;  listptr;&lt;br /&gt;  va_star(otr,s);&lt;br /&gt;  n=va_arg(ptr,int);&lt;br /&gt;  show(x,ptr);&lt;br /&gt;  }&lt;br /&gt;  main()&lt;br /&gt;  {&lt;br /&gt;  display("hello",4,12,13,14,44);&lt;br /&gt;  }&lt;br /&gt;  a) 13 b) 12 c) 44 d) 14&lt;br /&gt;  .........................&lt;br /&gt;&lt;br /&gt;  17. if the following program (my prog)&lt;br /&gt;  main(int size of ,char *arg[])&lt;br /&gt;  { while(size of arg) printf("%s",arg[--size of arg)&lt;br /&gt;  }&lt;br /&gt;  is run from the command line as myprog jan feb mar apr&lt;br /&gt;  what would be the o/p&lt;br /&gt;  a)myprog jan,feb,mar,apr&lt;br /&gt;  b)rev&lt;br /&gt;  c)jan,feb,mar,apr&lt;br /&gt;  d)error&lt;br /&gt;  .......................&lt;br /&gt;&lt;br /&gt;  18.what is o/p&lt;br /&gt;  main()&lt;br /&gt;  {int i=3;&lt;br /&gt;  while(i--)&lt;br /&gt;  {&lt;br /&gt;  int i=100&lt;br /&gt;  i--;&lt;br /&gt;  printf("%d..",i);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  a) infinite loop&lt;br /&gt;  b) error&lt;br /&gt;  c) 99..99..99..99&lt;br /&gt;  d) 3..22..1..&lt;br /&gt;  ..........................&lt;br /&gt;  20)what is the o/p of the program&lt;br /&gt;    main()&lt;br /&gt;    {&lt;br /&gt;      int rows=3,colums=4; &lt;br /&gt;      int a[rows][colums]={1,2,3,4,5,6,7,8,9,10,11,12};&lt;br /&gt;   i=j=k=99;&lt;br /&gt;   for(i=0;i &lt; rows;i++)&lt;br /&gt;    for(j=0;j &lt; colums;j++)&lt;br /&gt;       if(a[k][j] &lt; k) k=a[i][j];&lt;br /&gt;&lt;br /&gt;  printf("%d\n",k);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-1640997965378247813?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/1640997965378247813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=1640997965378247813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/1640997965378247813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/1640997965378247813'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/deshaw-paper_07.html' title='DESHAW PAPER'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-4326881466386628484</id><published>2007-05-07T05:30:00.000-07:00</published><updated>2007-05-07T05:34:05.723-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DESHAW IITKGP 97'/><title type='text'>DESHA @ IITKGP 1997</title><content type='html'>PART 1      TIME:20 MIN&lt;br /&gt;* 20 QUESTIONS , EACH QUESTION CARRIES 2 MARKS&lt;br /&gt;&lt;br /&gt;1. A SOLID ICE OF 11 X 8 X2 INCHES IS MADE INTO ROD OF DIA  4 INCH. WHAT&lt;br /&gt;IS THE LENGE OF ROD?&lt;br /&gt;&lt;br /&gt;ANS: 3.5 INCH&lt;br /&gt;&lt;br /&gt;2. THERE WERE 750 PEOPLE WHEN THE FIRST SONG WAS SUNG. AFTER EACH&lt;br /&gt;SONG 50 PEOPLE ARE LEAVING THE HALL. HOWMANY SONGS ARE SUNG TO MAKE&lt;br /&gt;THEM ZERO?&lt;br /&gt;&lt;br /&gt;ANS:16&lt;br /&gt;&lt;br /&gt;3. A PERSON IS CLIMBING OF 60 MTS . FOR EVERY MINUTE HE IS  CLIMBING 6 MTS&lt;br /&gt;AND SLIPPING 4 MTS . AFTER HOWMANY MINUTES HE MAY REACH THE TOP?&lt;br /&gt;&lt;br /&gt;ANS: (60-6)/2 +1  :28&lt;br /&gt;&lt;br /&gt;4. HOWMANY ZEROS ARE THERE IN THE PRODUCT OF THE INTEGER FROM 1TO 100?&lt;br /&gt;&lt;br /&gt;ANS: 24( NOT GIVEN)&lt;br /&gt;&lt;br /&gt; 1 TO 10   -2  ZEROS&lt;br /&gt; 21 TO 30  -3  ZEROS  : BECAUSE  25 = 5*5&lt;br /&gt;     22 *5&lt;br /&gt;     24 *5&lt;br /&gt;&lt;br /&gt;5. A CAN DO WORK IN 2 HOURS B CAN DO A WORK IN 3 HOURS WHAT IS THE &lt;br /&gt;SHORTEST TIME TYEY CAN FINISH THE WORK?&lt;br /&gt;&lt;br /&gt;ANS: 1HOUR 12 MIN.&lt;br /&gt;&lt;br /&gt;6..SALARY IS INCREASED BY 1200 ,TAX IS DECREASED FROM 12% TO 10% BUT PAYING&lt;br /&gt;SAME AMOUNT  AS TAX . WHAT IS THE PREVISIOUS SALARY?&lt;br /&gt;&lt;br /&gt;ANS:6000&lt;br /&gt;&lt;br /&gt;7. THE LEAST NO. WHICH IS WHEN DEVIDED BY 4,6,7  LEAVES A REMAINDER OF 2 ?&lt;br /&gt;&lt;br /&gt;ANS: 86&lt;br /&gt;&lt;br /&gt;8. A MAN DRIVING THE CAR AT TWICE THE SPEED OF AUTO ONEDAY HE WAS DRIVEN &lt;br /&gt;CAR FOR 10 MIN. AND CAR IS FAILED. HE LEFT THE CAR AND TOOK AUTO TO GOTO &lt;br /&gt;THE OFFICE . HE SPENT 30 MIN. IN THE AUTO. WHAT WILL BE THE TIME TAKE BY &lt;br /&gt;CAR TO GO OFFICE?&lt;br /&gt;&lt;br /&gt;ANS:25 MIN&lt;br /&gt;&lt;br /&gt;9. A REPORT HS 20 WHEETS, EACH OF 55 LINES AND EACH SU;CH A LINE CONSISTS&lt;br /&gt;OF 65 CHARACTERS. IF THE REPORT HAS TO BE RETYPED WITH EACH SHEET HAVING 65 &lt;br /&gt;LINES AND EACH LINE HAVE 75 CHARACTERS, THE PERCENTAGE OF  REDUCTION OF&lt;br /&gt;NO OF SHEETS IS CLOSEST IS TO? &lt;br /&gt;&lt;br /&gt;ANS: 25%&lt;br /&gt;&lt;br /&gt;10. OUT OF 100 FAMILIES IN NEIGHBOUR HOOD , 55 OWN RADIO, 75 OWN T.V&lt;br /&gt;AND 25 OWN VCR. ONLY 10 FAMILIES HAVE ALLOF THESE, AND EACH VCR OWNER&lt;br /&gt;HAS TV . IF 25 FAMILIES HAVE THE RADIO ONLY, THE NO. OF FAMILIES HAVE&lt;br /&gt;ONLY TV ARE?&lt;br /&gt;&lt;br /&gt;ANS: 30&lt;br /&gt;&lt;br /&gt;APTITUDE: ( QUESTIONS 16 T019)&lt;br /&gt;&lt;br /&gt;KYA KYA IS AN ISLAND IN THE SOUTH PACIFI . THE INHABITANTS OF KYA KYA&lt;br /&gt;ALWAYS ANSWER ANY QUESTION WITH TWO SENTENCES, ONE OR WHICH IS ALWAYS&lt;br /&gt;TRUE AND OTHER IS ALWAYS FALSE.&lt;br /&gt;&lt;br /&gt;1. YOU ARE WALKING ON THE ROAD AND COME TO A FORK. YOU ASK ,THE INHABITANTS&lt;br /&gt;RAM.LAXMAN, AND LILA AS" WHICH ROAD WILL TAKE ME TO THE VILAGE?&lt;br /&gt;&lt;br /&gt;RAM SAYS: I NEVER SPEAK TO STRANGERS. IAM NEW TO THIS PLACE&lt;br /&gt;LAXMAN SAYS: IAM MARRIED TO.LILA. TAKE THE LEFT ROAD&lt;br /&gt;LILA SAYS: IAM MARRIED TO RAM. HE IS NOT NEW TO THIS PLACE&lt;br /&gt;&lt;br /&gt;ANS:  LEFT ROAD TAKE YU TO THE VILLAGE&lt;br /&gt;&lt;br /&gt;2. YOU FIND THAT YOUR BOAT IS STOLLEN. U QUESTIONED THREE INHABITANTS OT &lt;br /&gt; ISLANDS AND THEIR REPLIES ARE&lt;br /&gt;&lt;br /&gt;JOHN   : I DIDNOT DO IT. MATHEW DIDNOT DO IT&lt;br /&gt;MATHEW :  I DIDNOT DO IT. KRISHNA DIDNOT DO IT&lt;br /&gt;KRISHNA: I DID NOT DO IT; I DONOT KNOW WHO DID IT&lt;br /&gt;&lt;br /&gt;ANS: MATHEW STOLEN THE BOAT&lt;br /&gt;&lt;br /&gt;3. YOU WANT TO SPEAK TO THE CHIEF OF VILLAGE , U ASK THREE FELLOWS AMAR&lt;br /&gt;BOBBY, CHARLES AND BOBBY IS WEARING RED SHIRT&lt;br /&gt;&lt;br /&gt;AMAR    : IAM NOT BOBBY`S SON ; THE CHIEF WEARS RED SHIRT&lt;br /&gt;BOBBY   : IAM AMARS FATHER ; CHARLES IS THE CHIEF&lt;br /&gt;CHARLES : THE CHIEF IS ONE AMONG US; IAM THE CHIEF&lt;br /&gt;&lt;br /&gt;ANS: BOBBY IS THE CHIEF&lt;br /&gt;&lt;br /&gt;4. THERE IS ONLY OPNE POLOT IN THE VILLAGE(ISLAND). YOU INTERVIEWED THREEM MAN &lt;br /&gt;KOISK ,LORRY AND MISHRA&lt;br /&gt;U ALSO NOTICE THAT KOISK IS WEARING CAP.&lt;br /&gt;&lt;br /&gt;M SAYS : LARRY IS FATHER IN THE PILOT .LARRY IS NOT THE PRIESTS SON&lt;br /&gt;KOISK  : IAM THE PRIEST ON THEIS ISLAND ONLY PRISTS CAN WEAR THE CAPS&lt;br /&gt;LARRY  : IAM THE PRIEST SON . KOISK IS NOT THE PREST&lt;br /&gt;&lt;br /&gt;ANS : KOISK IS THE PILOT&lt;br /&gt;&lt;br /&gt;THIS PAPER HAS GIVEN IN IIT DELHI , SO GO THROUGH THIS IT WILL GIVE &lt;br /&gt;ROUGH IDEA;&lt;br /&gt;&lt;br /&gt;1.   typedef struct{&lt;br /&gt; char *;&lt;br /&gt; nodeptr next;&lt;br /&gt; } * nodeptr;&lt;br /&gt;what does nodeptr stand for?&lt;br /&gt;&lt;br /&gt;2. supposing thaty each integer occupies 4 bytes and each charactrer &lt;br /&gt;1 byte , what is the output of the following programme?&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt; int a[] ={ 1,2,3,4,5,6,7};&lt;br /&gt;char c[] = {' a','x','h','o','k'};&lt;br /&gt;printf("%d\t %d ", (&amp;a[3]-&amp;a[0]),(&amp;c[3]-&amp;c[0]));&lt;br /&gt;}&lt;br /&gt;ans : 3  3&lt;br /&gt;&lt;br /&gt;3. what is the output of the program?&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;struct s1 {int i; };&lt;br /&gt;struct s2 {int i; };&lt;br /&gt;struct s1 st1;&lt;br /&gt;struct s2 st2;&lt;br /&gt;st1.i =5;&lt;br /&gt;st2 = st1;&lt;br /&gt;printf(" %d " , st2.i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ans: nothing  (error)&lt;br /&gt;expl: diff struct variables should not assigned using "=" operator.&lt;br /&gt;&lt;br /&gt;4.what is the output of the program?&lt;br /&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int i,j;&lt;br /&gt;int mat[3][3] ={1,2,3,4,5,6,7,8,9};&lt;br /&gt;for (i=2;i&gt;=0;i--)&lt;br /&gt; for ( j=2;j&gt;=0;j--)&lt;br /&gt;printf("%d" , *(*(mat+j)+i));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ans : 9 6 3 8 5 2 7 4 1&lt;br /&gt;&lt;br /&gt;5.&lt;br /&gt;&lt;br /&gt;fun(n);&lt;br /&gt;}&lt;br /&gt;int fun( int n)&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;for(i=0;i&lt;=n;i++)&lt;br /&gt;fun(n-i);&lt;br /&gt;printf(" well done");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt; howmany times is the printf statement executed for n=10?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ans: zero&lt;br /&gt;expl: Befire reaching to printf statement it will goes to infinite loop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.what is the output of the program?&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;struct emp{&lt;br /&gt; char emp[];&lt;br /&gt; int empno;&lt;br /&gt; float sal;&lt;br /&gt;};&lt;br /&gt;struct emp member = { "TIGER"};&lt;br /&gt;printf(" %d %f", member.empno,member.sal);&lt;br /&gt;&lt;br /&gt;ans: error. In struct variable emp[], we have to give array size.&lt;br /&gt; If array size given&lt;br /&gt;ans is 0, 0.00&lt;br /&gt;&lt;br /&gt;7. output of the program?&lt;br /&gt;&lt;br /&gt; # define infiniteloop while(1)&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt; infiniteloop;&lt;br /&gt; printf("DONE");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ans: none&lt;br /&gt;expl: infiniteloop in main ends with ";" . so loop will not reach end;&lt;br /&gt;and the DONE also will not print.&lt;br /&gt;&lt;br /&gt;8.  output of the program?&lt;br /&gt; &lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int a=2, b=3;&lt;br /&gt;printf(" %d ", a+++b);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ans:5&lt;br /&gt;expl: here it evaluates as a++ + b. &lt;br /&gt;&lt;br /&gt;9. output of the program?&lt;br /&gt;&lt;br /&gt;#define prn(a) printf("%d",a)&lt;br /&gt;#define print(a,b,c) prn(a), prn(b), prn(c)&lt;br /&gt;#define max(a,b)  (a &lt; b)? b:a&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int x=1, y=2;&lt;br /&gt;print(max(x++,y),x,y);&lt;br /&gt;print(max(x++,y),x,y);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ans: 3 4 2&lt;br /&gt;&lt;br /&gt;10. which of the following is the correct declaration for the function main() ?&lt;br /&gt;&lt;br /&gt;ans: main( int , char *[])&lt;br /&gt;&lt;br /&gt;11. if ptr is defined as&lt;br /&gt;&lt;br /&gt; int *ptr[][100];&lt;br /&gt; which of the following correctly allocates memory for ptr?&lt;br /&gt;&lt;br /&gt;ans: ptr = (int *)(malloc(100* sizeof(int));&lt;br /&gt;&lt;br /&gt;FEW MORE PROGRAMS HERE BUT NOT AVAILABLE:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-4326881466386628484?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/4326881466386628484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=4326881466386628484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/4326881466386628484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/4326881466386628484'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/desha-iitkgp-1997.html' title='DESHA @ IITKGP 1997'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-7324262562644316701</id><published>2007-05-07T05:29:00.001-07:00</published><updated>2007-05-07T05:29:50.571-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DESHAW 2'/><title type='text'>DESHA PAPER 2</title><content type='html'>1)minimum #of ip addresses requiered for an router&lt;br /&gt;ans)2&lt;br /&gt;2)the worst case booth complexity for &lt;br /&gt;ans)101010101010101010&lt;br /&gt;3)disadvantage of pcm&lt;br /&gt;ans)forgot&lt;br /&gt;4)two binary 8bits are added overflow will come for&lt;br /&gt;a)ones complement&lt;br /&gt;b)twos complement&lt;br /&gt;c)ones complement with signed magnitude&lt;br /&gt;c)twos complement with signed magnitude&lt;br /&gt;5)two 8 bit nuos are multiplied and the result is stored in an rom the size&lt;br /&gt;of the rom is &lt;br /&gt;ans)64*64 doubt&lt;br /&gt;6)how many no of 4x1 muxs are required for making an 16x1 mux&lt;br /&gt;ans)5&lt;br /&gt;7)a simple nand gate problem&lt;br /&gt;ans)simple&lt;br /&gt;8)the shannon hartley therom give the&lt;br /&gt;ans)channel capacity with no error&lt;br /&gt;9)the bandwidth for 500bps is &lt;br /&gt;ans)1000bps   doubt&lt;br /&gt;10)a problem with lower triangular matrix&lt;br /&gt;ans)x[i]=b[i]-a[i][j]*x[i]&lt;br /&gt;11)a c program with &lt;br /&gt;if x&gt;y&lt;br /&gt;x=x-y&lt;br /&gt;else&lt;br /&gt;y=y-x&lt;br /&gt;ans)gcd&lt;br /&gt;12)microwave propogation along the curvature of earth is called &lt;br /&gt;ans)ductpropogation&lt;br /&gt;13)a simple bit on recurssion&lt;br /&gt;&lt;br /&gt;14)csma/cd is used in&lt;br /&gt;ans)ethernet&lt;br /&gt;15)what is used for knowing its own ip address&lt;br /&gt;ans)rarp&lt;br /&gt;16)no signalling is needded to establish connection in &lt;br /&gt;ans ) ip&lt;br /&gt;17)a simple problem, on newton rapshon method&lt;br /&gt;18)(A-B)U(B-A)U(AnB)=&lt;br /&gt;ANS)AUB&lt;br /&gt;19)&lt;br /&gt;if a number is choosen between 100 and 999 includeing these numberrs what is the provbabilty that the number selected does not contain a 7 is&lt;br /&gt;ans)workitout&lt;br /&gt;20)a packet trabvelling in the internet forever can be controlled by having the field &lt;br /&gt;ans)time to live (ttl)&lt;br /&gt;21)c code with the follwing choices&lt;br /&gt;a)call with value&lt;br /&gt;b)call with address&lt;br /&gt;c)call with value result&lt;br /&gt;ans)call with value result&lt;br /&gt;22) when the following sequence is inserted in the binary search tree no of nodes int left subtree and right sub tree is&lt;br /&gt;ans )7,4&lt;br /&gt;23)simple problem in recurssion&lt;br /&gt;x(x(5))&lt;br /&gt;ans)17&lt;br /&gt;24)study about reentrant code reusable code recursive code&lt;br /&gt;25)given edges nodes and components of a graph find out its rank&lt;br /&gt;26)in a tree a parent is greater than all its children in folling&lt;br /&gt;ans)heap&lt;br /&gt;27)question on pcm signal=3khz 8levels are used&lt;br /&gt;ans)18000bps&lt;br /&gt;28)to get the numberr in ascending order the traversal used is &lt;br /&gt;ans)inorder traversal&lt;br /&gt;29)a problem in multiprocessing ,multithreading ,multiprogramming&lt;br /&gt;ans)multithreading&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-7324262562644316701?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/7324262562644316701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=7324262562644316701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/7324262562644316701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/7324262562644316701'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/desha-paper-2.html' title='DESHA PAPER 2'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-786772925114979631</id><published>2007-05-07T05:26:00.000-07:00</published><updated>2007-05-07T05:38:36.379-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DESHAW  PAPER'/><title type='text'>DESHAW PAPER</title><content type='html'>SECTION-A&lt;br /&gt; &lt;br /&gt; you should write the programs for the following problems in C.&lt;br /&gt; &lt;br /&gt; 1. swapping two variables x,y without using a temporary variable.&lt;br /&gt; 2. a program has been given asking to find the output&lt;br /&gt;        ans. it is algorithm for finding G.C.D&lt;br /&gt; 3. write a program for reversing the given string.&lt;br /&gt; 4. the integers from 1 to n are stored in an array in a random&lt;br /&gt;    fashion. but one integer is missing. write a program to find the&lt;br /&gt;    missing integer.&lt;br /&gt;        ans. idea. the sum of n natural numbers is = n(n+1)/2.&lt;br /&gt;             if we subtract the above sum from the sum of all the&lt;br /&gt;             numbers in the array , the result is nothing but the&lt;br /&gt;             missing number.&lt;br /&gt; 5. some bit type of questions has been given on pointers asking to&lt;br /&gt;    to find whether it is correct from syntax point of view. and if&lt;br /&gt;    it is correct explain what it will do.(around 15 bits).&lt;br /&gt; &lt;br /&gt;                        SECTION-B&lt;br /&gt; &lt;br /&gt;   ANSWER AS MANY AS POSSIBLE.&lt;br /&gt; &lt;br /&gt; 6.&amp; 7. two programs on pre-processor directions has been given asking&lt;br /&gt;        to find the output.&lt;br /&gt; 8. simple question given on pointer&lt;br /&gt;    a) kernighan &amp; richie page no. 122&lt;br /&gt;    b) schaum series  page no. 323&lt;br /&gt;    try to understand the pointer problems given here he asked to &lt;br /&gt;explain&lt;br /&gt;    in the interview if answer it in exam.&lt;br /&gt; 9. write a c program to find whether a stack is progressing in forward&lt;br /&gt;   or reverse direction.&lt;br /&gt; 10. write a c program that reverses the linked list.&lt;br /&gt; &lt;br /&gt;  GUIDELINES:&lt;br /&gt;     the interview is very tough he is asking to do the problems in&lt;br /&gt;   front of him. he is also giving some new problems to solve before &lt;br /&gt;him.&lt;br /&gt;   you should have a very good funda of C language.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;    P . V . THATAYYA  NAIDU          &lt;br /&gt;                  M.S ( CS)           Hostel : 91-044-2351326&lt;br /&gt;       Research Scholar                      (PP: #341 Naidu)&lt;br /&gt;                   &lt;br /&gt;    341, BrahmaPutra Hostel           Infotech Lab : 91-044-2351365&lt;br /&gt;    IIT MADRAS - 600036                              ext:3529/3530&lt;br /&gt;    INDIA&lt;br /&gt;    EMAIL         :   naidu@indy.iitm.ernet.in &lt;br /&gt;                      naidu%bronto@iitm.ernet.in&lt;br /&gt;-----------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-786772925114979631?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/786772925114979631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=786772925114979631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/786772925114979631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/786772925114979631'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/deshaw-paper.html' title='DESHAW PAPER'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-2951618217751531556</id><published>2007-05-07T05:25:00.000-07:00</published><updated>2007-05-07T05:26:21.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DESHAW 1999'/><title type='text'>DESHAW 99</title><content type='html'>&gt;     Deshaw99(WILCO99)&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; THERE ARE THREE SECTIONS:&lt;br /&gt;&gt; &lt;br /&gt;&gt; SECTION A: APPITUDE TEST 20 BITS&lt;br /&gt;&gt; SECTION B: C BITS 20 BITS&lt;br /&gt;&gt; SECTION C: 1 QUESTION (NOT A BIT)&lt;br /&gt;&gt;   IT IS LONG ANSWER&lt;br /&gt;&gt;   THE QUESTION IS:FIND THE NEXT PERMUTATION IN&lt;br /&gt;&gt; LEXICOGRAPHIC &lt;br /&gt;&gt; ORDER FROM THE GIVEN PERMUTATION&lt;br /&gt;&gt; &lt;br /&gt;&gt; NOTE: MAXIMUM QUESTIONS ARE FROM OLD QUESTION PAPERS&lt;br /&gt;&gt; SECTION A:&lt;br /&gt;&gt; &lt;br /&gt;&gt; 1. THERE WERE 750 PEOPLE WHEN THE FIRST SONG WAS&lt;br /&gt;&gt; SUNG. AFTER EACH&lt;br /&gt;&gt; SONG 50 PEOPLE ARE LEAVING THE HALL. HOWMANY SONGS&lt;br /&gt;&gt; ARE SUNG TO MAKE&lt;br /&gt;&gt; THEM ZERO?&lt;br /&gt;&gt; &lt;br /&gt;&gt; ANS:16&lt;br /&gt;&gt; &lt;br /&gt;&gt; SECTION B:&lt;br /&gt;&gt; &lt;br /&gt;&gt; 1.   typedef struct{&lt;br /&gt;&gt;  char *;&lt;br /&gt;&gt;  nodeptr next;&lt;br /&gt;&gt;  } * nodeptr;&lt;br /&gt;&gt; what does nodeptr stand for?&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 2.  2 oranges,3 bananas and  4 apples cost Rs.15 . 3&lt;br /&gt;&gt; ornages 2 bananas&lt;br /&gt;&gt;  1 apple costs Rs 10. what is the cost of 3 oranges,&lt;br /&gt;&gt; 3 bananas and &lt;br /&gt;&gt;   3 apples ANs Rs 15.&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 3. int   *x[](); means&lt;br /&gt;&gt; expl: Elments of an array can't be functions.&lt;br /&gt;&gt; &lt;br /&gt;&gt; 4. struct list{&lt;br /&gt;&gt; int x;&lt;br /&gt;&gt; struct list *next;&lt;br /&gt;&gt; }*head;&lt;br /&gt;&gt; the struct head.x =100&lt;br /&gt;&gt;  above is correct / wrong&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; expl: Before using the ptr type struct variable we&lt;br /&gt;&gt; have to give memory&lt;br /&gt;&gt;  to that .&lt;br /&gt;&gt; And also when ever the struct variable is ptr then&lt;br /&gt;&gt; we access the &lt;br /&gt;&gt; members&lt;br /&gt;&gt;  by "-&gt;" operator.&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 5.o/p=?&lt;br /&gt;&gt;  int i;&lt;br /&gt;&gt;  i=1;&lt;br /&gt;&gt;  i=i+2*i++;&lt;br /&gt;&gt;  printf(%d,i);&lt;br /&gt;&gt;                         ans: 4&lt;br /&gt;&gt; &lt;br /&gt;&gt; 6. FILE *fp1,*fp2;&lt;br /&gt;&gt; fp1=fopen("one","w")&lt;br /&gt;&gt; fp2=fopen("one","w")&lt;br /&gt;&gt; fputc('A',fp1)&lt;br /&gt;&gt; fputc('B',fp2)&lt;br /&gt;&gt; fclose(fp1)&lt;br /&gt;&gt; fclose(fp2)}&lt;br /&gt;&gt; a.error b. c. d.&lt;br /&gt;&gt;        ans: no error. But It will&lt;br /&gt;&gt;         over writes on same &lt;br /&gt;&gt; file.&lt;br /&gt;&gt;  &lt;br /&gt;&gt; &lt;br /&gt;&gt; 7.#include&lt;malloc.h&gt;&lt;br /&gt;&gt; char *f()&lt;br /&gt;&gt; {char *s=malloc(8);&lt;br /&gt;&gt; strcpy(s,"goodbye")}&lt;br /&gt;&gt; main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt; char *f();&lt;br /&gt;&gt; printf("%c",*f()='A');&lt;br /&gt;&gt; o/p=?&lt;br /&gt;&gt;   &lt;br /&gt;&gt; &lt;br /&gt;&gt; 8)   #define MAN(x,y) (x)&gt;(y)?(x):(y)&lt;br /&gt;&gt;   {  int i=10;j=5;k=0;&lt;br /&gt;&gt;   k= MAX(i++,++j)&lt;br /&gt;&gt;   printf(%d %d %d %d,i,j,k)}&lt;br /&gt;&gt; 9) a=10;b=5; c=3;d=3;&lt;br /&gt;&gt; if(a&lt;b)&amp;&amp;(c=d++)&lt;br /&gt;&gt; printf(%d %d %d %d a,b,c,d)&lt;br /&gt;&gt; else printf("%d %d %d %d a,b,c,d);&lt;br /&gt;&gt; &lt;br /&gt;&gt;  : .............................................&lt;br /&gt;&gt;  10. what is o/p&lt;br /&gt;&gt;   #include&lt;stdarg.h&gt;&lt;br /&gt;&gt;   show(int t,va_list ptr1)&lt;br /&gt;&gt;   {&lt;br /&gt;&gt;   int a,x,i;&lt;br /&gt;&gt;   a=va_arg(ptr1,int)&lt;br /&gt;&gt;   printf("\n %d",a)&lt;br /&gt;&gt;   }&lt;br /&gt;&gt;   display(char)&lt;br /&gt;&gt;   {int x;&lt;br /&gt;&gt;   listptr;&lt;br /&gt;&gt;   va_star(otr,s);&lt;br /&gt;&gt;   n=va_arg(ptr,int);&lt;br /&gt;&gt;   show(x,ptr);&lt;br /&gt;&gt;   }&lt;br /&gt;&gt;   main()&lt;br /&gt;&gt;   {&lt;br /&gt;&gt;   display("hello",4,12,13,14,44);&lt;br /&gt;&gt;   }&lt;br /&gt;&gt;   a) 13 b) 12 c) 44 d) 14&lt;br /&gt;&gt;   .............................................&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 11.main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt; printf("hello");&lt;br /&gt;&gt; fork();&lt;br /&gt;&gt; }&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 12.main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt; int i = 10;&lt;br /&gt;&gt; printf(" %d %d %d \n", ++i, i++, ++i);&lt;br /&gt;&gt; }&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 13.#include&lt;stdio.h&gt;&lt;br /&gt;&gt; main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt; int *p, *c, i;&lt;br /&gt;&gt; i = 5;&lt;br /&gt;&gt; p = (int*) (malloc(sizeof(i)));&lt;br /&gt;&gt; printf("\n%d",*p);&lt;br /&gt;&gt; *p = 10;&lt;br /&gt;&gt; printf("\n%d  %d",i,*p);&lt;br /&gt;&gt; c = (int*) calloc(2);&lt;br /&gt;&gt; printf("\n%d\n",*c);&lt;br /&gt;&gt; }&lt;br /&gt;&gt; &lt;br /&gt;&gt; 14.#define MAX(x,y) (x) &gt;(y)?(x):(y)&lt;br /&gt;&gt; main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt;  int i=10,j=5,k=0;&lt;br /&gt;&gt;   k=  MAX(i++,++j);&lt;br /&gt;&gt;    printf("%d..%d..%d",i,j,k);&lt;br /&gt;&gt;    }&lt;br /&gt;&gt; &lt;br /&gt;&gt; 15.#include &lt;stdio.h&gt;&lt;br /&gt;&gt; main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt;         enum _tag{ left=10, right, front=100, back};&lt;br /&gt;&gt;         printf("left is %d, right is %d, front is&lt;br /&gt;&gt; %d, back is &lt;br /&gt;&gt; %d",left,right,front,back);&lt;br /&gt;&gt; }&lt;br /&gt;&gt; &lt;br /&gt;&gt; 16.main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt;         int a=10,b=20;&lt;br /&gt;&gt;  a&gt;=5?b=100:b=200;&lt;br /&gt;&gt;         printf("%d\n",b);&lt;br /&gt;&gt; }&lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; &lt;br /&gt;&gt; 17.#define PRINT(int) printf("int = %d  ",int)&lt;br /&gt;&gt; main()&lt;br /&gt;&gt; {&lt;br /&gt;&gt; int x,y,z;&lt;br /&gt;&gt; x=03;y=02;z=01;&lt;br /&gt;&gt; PRINT(x^x);&lt;br /&gt;&gt; z&lt;&lt;=3;PRINT(x);&lt;br /&gt;&gt; y&gt;&gt;=3;PRINT(y);&lt;br /&gt;&gt; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-2951618217751531556?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/2951618217751531556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=2951618217751531556' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/2951618217751531556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/2951618217751531556'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/deshaw-99.html' title='DESHAW 99'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-4452070028656540095</id><published>2007-05-07T04:58:00.000-07:00</published><updated>2007-05-07T05:00:00.531-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GOOGLE RECRUITMENT PROCESS'/><title type='text'>GOOGLE RECRUITMENT PROCESS</title><content type='html'>---------------------------- Original Message ----------------------------&lt;br /&gt;Subject: Google recruitment process... (fwd)&lt;br /&gt;From:    "Pemmaraju Rama Krishna;04410118;" &lt;p.rama@iitg.ernet.in&gt; Date:  &lt;br /&gt; Fri, May 19, 2006 12:51 am&lt;br /&gt;To:      "K NARENDRA;05410127" &lt;k.narendra@iitg.ernet.in&gt;&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;LEARN FROM UR EXPERIENCES&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;&lt;br /&gt;---------- Forwarded message ----------&lt;br /&gt;Date: Sun, 27 Nov 2005 14:46:36 +0530 (IST)&lt;br /&gt;From: "M Thirumala Reddy;04410114;" &lt;m.thiru@iitg.ernet.in&gt;&lt;br /&gt;To: cse04m@iitg.ernet.in&lt;br /&gt;Subject: Google recruitment process...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hi Friends,&lt;br /&gt;&lt;br /&gt;Here I am forwarding a mail written by my friend about Google interview.&lt;br /&gt;&lt;br /&gt;She is a comp.sci university gold medalist from a&lt;br /&gt;reputed university in Haryana and currently doing M.E in BITS. She could&lt;br /&gt;make  till the final round of Google. She has an offer from Cisco.&lt;br /&gt;&lt;br /&gt;They have signed a non-disclosure agreement, so she gave a brief interview&lt;br /&gt;questions and pattern (may not be exactly the same ...).&lt;br /&gt;&lt;br /&gt;regards..,&lt;br /&gt;Thirumal.&lt;br /&gt;&lt;br /&gt;---------- Forwarded message ----------&lt;br /&gt;&lt;br /&gt;hi,&lt;br /&gt;&lt;br /&gt;regarding the process,they had a written test,first,20 questions,mostly&lt;br /&gt;from datastructures...20 multiple choice  &amp; one algo to be written..&lt;br /&gt;&lt;br /&gt;then,we has two inteviews here.those were also related toDS.something bout&lt;br /&gt;projects they asked...&lt;br /&gt;&lt;br /&gt;then we has four more innterviews in bagalore, all of them were for&lt;br /&gt;knowing ur approch towards a problem...&lt;br /&gt;&lt;br /&gt;so this was the whole process...&lt;br /&gt;&lt;br /&gt;regarding test questins, idon't remember all.but some were like&lt;br /&gt;1. complwxity of which sort is best for sotes arrray..how much&lt;br /&gt;2. how many swaps needed for insertiion sort..&lt;br /&gt;3.in a party, if n pople, everyone shakes hand with every other,how many&lt;br /&gt;handshakes.&lt;br /&gt;4. some questions on probability...&lt;br /&gt;&lt;br /&gt;all the questions were easy, don't worry for them...&lt;br /&gt;algoo that we were supposed towrite was...&lt;br /&gt;if given a treee,find the hightest node of it..binary search tree was given.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;in interview, questions on linked list,like reversal, sortinf,hair&lt;br /&gt;&amp;tortoise problem.&lt;br /&gt;test cases for website development. array soorting in less tahn o(nlgn).&lt;br /&gt;c++ abstract class,virtual polymorphism,hybrid inheritance,destuctors&lt;br /&gt;overriding, etc...&lt;br /&gt;&lt;br /&gt;problem solving included if u r to store all the web pages for easy&lt;br /&gt;retrievalk.how will u store,&lt;br /&gt;rows, column sum equal problem.&lt;br /&gt;convert a link list into tree, gen questions on networking....&lt;br /&gt;&lt;br /&gt;that is allwot i remember at this time...&lt;br /&gt;&lt;br /&gt;say all the best to all of ur friends from my side too..,&lt;br /&gt;&lt;br /&gt;take care.&lt;br /&gt;&lt;br /&gt;BYE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-4452070028656540095?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/4452070028656540095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=4452070028656540095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/4452070028656540095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/4452070028656540095'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/google-recruitment-process.html' title='GOOGLE RECRUITMENT PROCESS'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8264002408097833676.post-5873693348052186770</id><published>2007-05-07T04:53:00.000-07:00</published><updated>2007-05-07T04:55:00.805-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MICROSOFT  TEST- INTERVIEW 2006'/><title type='text'>MICROSOFT 2006</title><content type='html'>---------------------------- Original Message ----------------------------&lt;br /&gt;Subject: Microsoft Test and Interview ....  (fwd)&lt;br /&gt;From:    "Pemmaraju Rama Krishna;04410118;" &lt;p.rama@iitg.ernet.in&gt;&lt;br /&gt;Date:     Fri, May 19, 2006 12:51 am&lt;br /&gt;To:      "K NARENDRA;05410127" &lt;k.narendra@iitg.ernet.in&gt;&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;REAL HAPPINESS LIES IN MAKING OTHERS HAPPY&lt;br /&gt;P.RAMA KRISHNA,&lt;br /&gt;ROOM NO:009,&lt;br /&gt;SIANG HOSTEL,&lt;br /&gt;IIT GUWAHATI,&lt;br /&gt;GUWAHATI-781039,&lt;br /&gt;ASSAM.&lt;br /&gt;Ph no : 09954211409&lt;br /&gt;&lt;br /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;LEARN FROM UR EXPERIENCES&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;---------- Forwarded message ----------&lt;br /&gt;Date: Sun, 18 Dec 2005 20:06:39 +0530 (IST)&lt;br /&gt;From: "M Thirumala Reddy;04410114;" &lt;m.thiru@iitg.ernet.in&gt;&lt;br /&gt;To: cse04m@iitg.ernet.in&lt;br /&gt;Subject: Microsoft Test and Interview ....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hi friends,&lt;br /&gt;this was the paper asked by MS at NIT Warangal&lt;br /&gt;recently. they took 6 guys frm there.&lt;br /&gt;&lt;br /&gt;all the best.&lt;br /&gt;&lt;br /&gt;Paper :&lt;br /&gt;&lt;br /&gt;To start with, we had a written test for 1 and a half&lt;br /&gt;hours.&lt;br /&gt;Round 1 : Written Test&lt;br /&gt;In total there were 6 questions:1st three of 4 marks &amp;&lt;br /&gt;next 3 for 6&lt;br /&gt;marks.&lt;br /&gt;1) Output was to be given for a program which&lt;br /&gt;had a&lt;br /&gt;recursive&lt;br /&gt;function..simple one....well there was a catch as (int&lt;br /&gt;i = 96573) was given.&lt;br /&gt;We must know the size of the integer on the machine &amp;&lt;br /&gt;then answer&lt;br /&gt;accordingly.&lt;br /&gt;2) An incorrect program was given. We had to&lt;br /&gt;find the&lt;br /&gt;bugs.......there&lt;br /&gt;were four bugs....the most important one was: a&lt;br /&gt;locally defined char&lt;br /&gt;array was being returned....which is not allowed....&lt;br /&gt;3)There is an array A(MXN).......it is rotated&lt;br /&gt;clockwise and then&lt;br /&gt;shifted row-wise with wrap-around to get the array&lt;br /&gt;B(NXM)......an example&lt;br /&gt;was shown.....we have to just give a formula in one&lt;br /&gt;line for A[i][j] =&lt;br /&gt;B[......][.......]. Assume that the boundaries of an&lt;br /&gt;array are from 0 to&lt;br /&gt;M-1 as usual. Frankly speaking I got stuck in this&lt;br /&gt;formula after&lt;br /&gt;completing the 1st 2 ques in 15 min....but finally it&lt;br /&gt;was a very cool&lt;br /&gt;answer... [(j+1)%N][(i+1)%M]...&lt;br /&gt;4)You are given a linked list of numbers:&lt;br /&gt;1-6-3-9-7-54. U will be&lt;br /&gt;given an input - 'n'. You have to insert 0 after every&lt;br /&gt;nth element in the&lt;br /&gt;list. For example if n=2, then o/p:&lt;br /&gt;1-6-0-3-9-0-7-54-0. U must give the&lt;br /&gt;best complexity algo to get thro'&lt;br /&gt;5)Write the various test cases for Q4. How does&lt;br /&gt;ur&lt;br /&gt;program handle&lt;br /&gt;them? I gave abt 5 test cases (obviously meaningful)..&lt;br /&gt;6)There is a document containing words. A fn&lt;br /&gt;'getNextWord' returns&lt;br /&gt;next word in the document, u have to count the number&lt;br /&gt;of occurences of&lt;br /&gt;each word in the document.&lt;br /&gt;a)What data structure will u choose ?&lt;br /&gt;b)Write the algorithm to buid the database,i.e&lt;br /&gt;the&lt;br /&gt;complete account of&lt;br /&gt;the frequency of each word?&lt;br /&gt;c)What is the time complexity of your algorithm?&lt;br /&gt;&lt;br /&gt;We had abt 63 ppl sitting for the test..24 got&lt;br /&gt;shortlisted..&lt;br /&gt;Round 2( by Padmapriya):&lt;br /&gt;Now, we were divided into 3 groups of 8 each. There&lt;br /&gt;were 3&lt;br /&gt;interviewers. Each was assigned a group. 3 questions&lt;br /&gt;were shown on the projector&lt;br /&gt;one by one. I suppose we were given ample time to&lt;br /&gt;solve each of them. We&lt;br /&gt;had to solve them and the interviewer assigned to the&lt;br /&gt;grp talked with&lt;br /&gt;us...basically an interview.&lt;br /&gt;1) 3 buckets. 1 contains apples, 1 contains&lt;br /&gt;oranges,&lt;br /&gt;1 contains apples&lt;br /&gt;&amp; oranges. All are wrongly labelled. U r allowed to&lt;br /&gt;pick 1 fruit from 1&lt;br /&gt;basket. What will u do to identify all the baskets&lt;br /&gt;correctly.&lt;br /&gt;2)There is an array containing R, G, B. Write a&lt;br /&gt;program to get all the&lt;br /&gt;R's, G's &amp; B's together. For example: i/p:&lt;br /&gt;RGBBBGGRRGB;;;;;o/p:&lt;br /&gt;RRRBBBBGGGG....it was a simple one....but frnds u need&lt;br /&gt;to go for just 1 pass &amp;&lt;br /&gt;use least space to earn points.&lt;br /&gt;3)U r given two sorted arrays:----A &amp; B. B&lt;br /&gt;contains&lt;br /&gt;enough extra&lt;br /&gt;spaces at the end to store all the elements of A.&lt;br /&gt;Merge A with B...without&lt;br /&gt;removing duplicates.&lt;br /&gt;for ex: A: 1 3 5 7 ;;; B: 4 5 8 X X X X ;;; X stands&lt;br /&gt;for empty space.&lt;br /&gt;o/p: B: 1 3 4 5 5 7 8 ;;;;;&lt;br /&gt;Frnds u hv to give the best algo here too..........&lt;br /&gt;Test cases were asked for every algo.&lt;br /&gt;&lt;br /&gt;Out of 24, 14 went thro this round.....&lt;br /&gt;&lt;br /&gt;Round 3(Tech Interview by Govind):&lt;br /&gt;Asked abt the Round 2 solutions....then gave 2&lt;br /&gt;questions:&lt;br /&gt;1) Write a fn: deletenth(node *l, int n). This&lt;br /&gt;function deletes every&lt;br /&gt;nth element in the list...A simple one(he told&lt;br /&gt;me)...just allowed 1&lt;br /&gt;pass.... Govind told me to check the code and then&lt;br /&gt;only show it to&lt;br /&gt;him...he wanted error-free, damn best, fast written&lt;br /&gt;algo. I gave him the&lt;br /&gt;best....got impressed...&lt;br /&gt;2)Write a class bit....It contains two&lt;br /&gt;functions:&lt;br /&gt;bool getBit(int n),&lt;br /&gt;setBit(int n). The constructor is passed an integer n&lt;br /&gt;that specifies&lt;br /&gt;the number of bits to be handled.....setBit fn sets&lt;br /&gt;the nth bit while&lt;br /&gt;getBit fn returns the nth bit. Hint: Dont use an&lt;br /&gt;element array to store&lt;br /&gt;the bits...in fact use all the bits of the data type.&lt;br /&gt;&lt;br /&gt;Round 4(Tech Interview by Niranjan Naik):&lt;br /&gt;He asked abt the projects,favourite subject(mine is&lt;br /&gt;OS)....if it is not&lt;br /&gt;still he will anyhow ask ques on os....this part of&lt;br /&gt;the interview was&lt;br /&gt;basically tp. He posed just one ques:&lt;br /&gt;1)There is a sorted array A. Now the elements in&lt;br /&gt;the&lt;br /&gt;array are shifted&lt;br /&gt;(wrap-around) by 'n' positions to get the modified&lt;br /&gt;array B. Write a&lt;br /&gt;program which takes as input the modified array B and&lt;br /&gt;outputs 'n'. ex: A:&lt;br /&gt;1 3 5 7 9 11 14&lt;br /&gt;B: 11 14 1 3 5 7 9&lt;br /&gt;n = 2&lt;br /&gt;I gave him 1 pass O(log n) algo. You have to&lt;br /&gt;take&lt;br /&gt;care that it&lt;br /&gt;considers ALL the possible test cases.&lt;br /&gt;&lt;br /&gt;I cleared just these many rounds to get hired. Some of&lt;br /&gt;my clasmates had&lt;br /&gt;to go thro' one more interview by govinda before being&lt;br /&gt;hired.&lt;br /&gt;In total 6 were hired.&lt;br /&gt;&lt;br /&gt;Some of the ques asked to others:&lt;br /&gt;1)There is a linked list containing nodes&lt;br /&gt;that hv an&lt;br /&gt;extra pointer&lt;br /&gt;other than 'next' which points to any other node in&lt;br /&gt;the list. You hv to&lt;br /&gt;make a copy of such a list.&lt;br /&gt;2)Remove duplicates from a list.&lt;br /&gt;&lt;br /&gt;Well I beleive this is enough to give an overview of&lt;br /&gt;the selection&lt;br /&gt;process of MS.&lt;br /&gt;My tips&lt;br /&gt;Simple problems will be given and you must give the&lt;br /&gt;best, error-free&lt;br /&gt;solutions in terms of time complexity &amp; space&lt;br /&gt;complexity.&lt;br /&gt;Best Of Luck.&lt;br /&gt;--&lt;br /&gt;Yours Friendly,&lt;br /&gt;Thirumal.&lt;br /&gt;Narendra.K&lt;br /&gt;1st year M.Tech(CSE)&lt;br /&gt;IIT Guwahati&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8264002408097833676-5873693348052186770?l=placementhuntt.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://placementhuntt.blogspot.com/feeds/5873693348052186770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8264002408097833676&amp;postID=5873693348052186770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/5873693348052186770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8264002408097833676/posts/default/5873693348052186770'/><link rel='alternate' type='text/html' href='http://placementhuntt.blogspot.com/2007/05/microsoft-2006.html' title='MICROSOFT 2006'/><author><name>Giri Prasad Mutta</name><uri>http://www.blogger.com/profile/08563801841591925686</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://bp3.blogger.com/_4g1eV2MpL68/R6xyM7ZeYNI/AAAAAAAAA2o/iMoUGokYxco/S220/giri+with+pulss.JPG'/></author><thr:total>0</thr:total></entry></feed>
