Elearning , Interview Questions And Answers

Google

A father F has 5 sons, p,q,r,s,t. Not necessarly in this order. Two are of same age. The eldest and youngest cannot be twins. T is elder to r and younger to q and s has three older brothers q) who are the twins? s,t q) who is the oldest and youngest? q, (s&t) q) q) 15,16,17,18 ---------- There are 7 people who take a test among which M is the worst, R is disqualified, P and S obtain same marks, T scores less than S and Q scores less than P, N scores higher than every one. Ans : N P S T Q R M (may be, just check) or N S P T Q R M C & UNIX -------- 19. What does chmod 654 stand for. Ans : _rw_r_xr__ 20. Which of following is used for back-up files? (a) compress (b) Tar (c) make (d) all the above Ans : b 21 what does find command do ? Ans : search a file 22. what does " calloc" do? Ans : A memory allocation and initialising to zero. 23 what does exit() do? Ans : come out of executing programme. 24. what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Ans : 1 25. i=2 printf("%old %old %old %old ",i, i++,i--,i++); Ans : check the answer. 26. Using pointer, changing A to B and B to A is Swapping the function using two address and one temperory variable. a,b are address, t is temporary variable. How function look like? Ans : swap(int *, int *, int ) 27. In 'o' how are the arguments passed? ans : by value. 28. Find the prototype of sine function. Ans : extern double sin(double) 29. Scope of a global variable which is declared as static?