|
Mentor Placement Papers and Sample Papers
|
Technical - Other IT-BHU - 9 August MENTOR PAPER ON 9th AUGUST
C/C++ 1) what will be the out put of program.. main() {char *s[]={,asdasd,,,asdfgf,,,fgjhgj,,,tyuuuy,,,dsfgfds,,,dfdsgf,}; char **p; p= for(int i=0;i<(sizeof(s)/sizeof(char *));i++) printf("%u",++*s); printf("%u",*++s); }
2) what the program do... vob (int a ,int b) { a=a^b; b=a^b; a=a^b; } ficssa(int a[], int n) { for(int i=0;i for(int j=i+1;j if(a[i]>a[j]) { vob(a[i],a[j]);} } } }
3) write a algorithm to shift a array k bits cyclically. 4)write a algorithm of a function wich takes input of three parameter int number,int Index and bool value.Now we hv to replace the index,th position by bool value(0/1) in number and return the new No. 5)write a efficient an fast algorithm to find out the pair in 1,2,3,........100 no who,s sum is 100. 6) single link list operations.......deleting node..etc.
Hardware section..... I don,nt remember much..just read thoroughly computer Architecture deeply..
Aptitude section... 1) A bad king is thr..and a queen of another kingdom wants to kill him..she send a killer..King likes wine very much he has 1000 bottle of wine..the killer mix up th posion in one of the bottle..now the bad king got knew it..so he took 10 prisoners ..the posion get effect in one month..and u hv to fined out the way to decide which bottle content posion..and u hv 7 week to do so..
2) ther a re two bottles of 10 litre each filled with water. now two persons having bottles of 4 litre and 5 litres want to take 2-2 litres of water from the prev botles..now u hv to pour the water without wasting or throwing it.
3) two frds meet after 20 yrs.. fisrt: i hv three daughter multiplication of thier age is 72, second i don,nt get. first: The oldest one start playing piano just.. second i don,nt get.. second : my oldest one is also os same age.. tell the ages of daughters..
4)...... rest i don,t remeber..
|
|
 |
 |
|