Wilco99

SECTION A: APPITUDE TEST 20 BITS SECTION B: C BITS 20 BITS SECTION C: 1 QUESTION (NOT A BIT) IT IS LONG ANSWER THE QUESTION IS:FIND THE NEXT PERMUTATION IN LEXICOGRAPHIC ORDER FROM THE GIVEN PERMUTATION NOTE: MAXIMUM QUESTIONS ARE FROM OLD QUESTION PAPERS SECTION A: 1. THERE WERE 750 PEOPLE WHEN THE FIRST SONG WAS SUNG. AFTER EACH SONG 50 PEOPLE ARE LEAVING THE HALL. HOWMANY SONGS ARE SUNG TO MAKE THEM ZERO? ANS:16 SECTION B: 1.

typedef struct{ char *; nodeptr next; } * nodeptr; what does nodeptr stand for? ans: 2.

2 oranges,3 bananas and 4 apples cost Rs.15 . 3 ornages 2 bananas 1 apple costs Rs 10. what is the cost of 3 oranges, 3 bananas and 3 apples ANs Rs 15. 3. int *x[](); means Ans:expl: Elments of an array can't be functions. 4. struct list{ int x; struct list *next; }*head; the struct head.x =100 Ans: above is correct / wrong expl: Before using the ptr type struct variable we have to give memory to that . And also when ever the struct variable is ptr then we access the members by "->" operator. 5.o/p=? int i; i=1; i=i+2*i++;

Page 1

Wilco99

printf(%d,i); ans: 4 6. FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d. ans: no error. But It will over writes on same file. 7.#include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); o/p=? 8) #define MAN(x,y) (x)>(y)?(x):(y) { int i=10;j=5;k=0; k= MAX(i++,++j) printf(%d %d %d %d,i,j,k)} ans:10 5 0 9) a=10;b=5; c=3;d=3; if(a show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf("\n %d",a) } display(char) {int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); }

Page 2

Wilco99

main() { display("hello",4,12,13,14,44); } a) 13 b) 12 c) 44 d) 14 ............................................. 11.main() { printf("hello"); fork(); } ans: 12.main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); } ans: 13.#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf("\n%d",*p); *p = 10; printf("\n%d %d",i,*p); c = (int*) calloc(2); printf("\n%d\n",*c); } ans: 14.#define MAX(x,y) (x) >(y)?(x):(y) main() { int i=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); } ans: 15.#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is

Page 3

Wilco99

%d",left,right,front,back); } ans: 16.main() { int a=10,b=20; a>=5?b=100:b=200; printf("%d\n",b); } ans: 17.#define PRINT(int) printf("int = %d main() { int x,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); } ans:

",int)

18. #include main() { char s[] = "Bouquets and Brickbats"; printf("\n%c, ",*(&s[2])); printf("%s, ",s+5); printf("\n%s",s); printf("\n%c",*(s+2)); } ans: 19. main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3];

Page 4

Wilco99

int i; for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s\n",(*p)->str); printf("%s\n",(++*p)->str); printf("%s\n",((*p)++)->str); } ans: 20.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); } ans:

Page 5

WIPRO (10).pdf

There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. WIPRO (10).pdf.

23KB Sizes 0 Downloads 167 Views

Recommend Documents

WIPRO - NSE
Jun 1, 2017 - Code. Instrument. Security. Symbol. Expiry Date. Long position. Short ... Senior Manager. Telephone No. Fax No. Email id. 18002660057.

WIPRO - NSE
Jun 1, 2017 - Code. Instrument. Security. Symbol. Expiry Date. Long position. Short ... Senior Manager. Telephone No. Fax No. Email id. 18002660057.

Wipro Placement Papers.pdf
D. THGIL. 10. If Rajdhani is coded as Van, Van as Aircraft, Aircraft as Train, Train as Bus, then by which. vehicle can you reach your journeys end in least time? A. Aircraft. B. Train. C. Van. D. Bus. 11. If '245' means—'Artistry and Talent' in a

wipro profile pdf
There was a problem loading more pages. wipro profile pdf. wipro profile pdf. Open. Extract. Open with. Sign In. Main menu. Displaying wipro profile pdf.

Wipro Placement Paper 40.pdf
12) How do u represent a negative number in ones complement? Ans complement and add 1. 13) Some question in link list reversal and accordingly recursive program code was given. ans) none of these. 14)Which is a type of primary memory? a)RAM and ROMâ€

wipro profile pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. wipro profile pdf.

(Buyback) of Wipro Limited - NSE
Jun 14, 2016 - Sub: Settlement Calendar for Tender Offer (Buyback) of Wipro Limited. With reference to the Scheme Document “Mechanism for acquisition of ...

Wipro Placement Paper 11.pdf
2)a person is running at a speed of 18km/hr After one† min a bomb blasts .Sound travels at ... If(0==fork()). ††† I+=10; ... Displaying Wipro Placement Paper 11.pdf.

wipro company profile pdf
Page 1. Whoops! There was a problem loading more pages. wipro company profile pdf. wipro company profile pdf. Open. Extract. Open with. Sign In. Main menu.

Wipro GE Healthcare Private Limited.pdf
Wipro GE Healthcare Private Limited.pdf. Wipro GE Healthcare Private Limited.pdf. Open. Extract. Open with. Sign In. Main menu.

wipro mock test 1 -
Ironically, if Riddick had just stolen the online money he could have stayed in ... become high-powered center for information technology and pharmaceuticals. ... skilled manpower”, and study by Hewitt Associate projects that this year ... How is t

Wipro GE Healthcare Private Limited.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.

Wipro Placement Paper 32.pdf
[8] Operating System. [9] Network. [10]Puzzles(1-2) ... Opposite of HARBINGER . Ans. Follower. 13. ... Main menu. Displaying Wipro Placement Paper 32.pdf.

Wipro Placement Paper 33.pdf
7) What are the different types of scheduling? 8) Process Synchronization. 9) Semaphores Monitors. 10) Write the code for semaphore. 11) Benady's Anomaly.

WIPRO-Preparation-Tips-placement-paper-Question-and-answers.pdf
WIPRO-Preparation-Tips-placement-paper-Question-and-answers.pdf. WIPRO-Preparation-Tips-placement-paper-Question-and-answers.pdf. Open. Extract.

Wipro lx 540 printer driver windows xp
driver windows xp - Asus p5g41c-mlx ethernet driver download.Wipro lx 540 ... Pdf printer driverand batch converter. ... Download epson l200 printer driver for.

WIPRO-Preparation-Tips-placement-paper-Question-and-answers.pdf
WIPRO-Preparation-Tips-placement-paper-Question-and-answers.pdf. WIPRO-Preparation-Tips-placement-paper-Question-and-answers.pdf. Open. Extract.