Provided by www.YuvaJobs.com - Whole Testpaper WILCO Placement Sample Question Paper Wilco Paper 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++; 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(; strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()=,A,); o/p=? #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