2011 Honeywell Placement Paper:

1. Which of the following is illegal
(a)void v;
(b)void *v;
(c)void **v;
(d)all are legal

2. #define int INTEGER/*line1*/
#define INTEGER int/*line 2*/
INTEGER p=10;/*line 5*/
(a) compiler error at line 1
(b) compiler error at line 2
(c) compiler error at line 5
(d) No error,prints 10

Directions (Q.3 -6): Study the following information carefully and answer the questions given below it.

(i) Seven subjects Sociology, Psychology, English, History, Geography, Economics and Hindi are taught between Monday and Friday by five persons A, B, C, D and E.

(ii) Each person teaches at least one subjects. At least one subject is taught every day. No person teaches two subjects on the same day. B teaches Sociology on Wednesday. History is taught by E but not on Monday or Thursday. English is taught on Monday by A. Geography and Economics are taught on Monday and Tuesday respectively. D teaches only one subject Psychology on Tuesday. Geography is not taught by E or B.

3. Who teaches Geography?

1) C
2) E
3) B
4) Data inadequate
5) None of these

4. Which subject is taught on Friday?

1) Hindi
2) Economics
3) History
4) Data inadequate
5) None of these

5. Who teaches Economics?

1) E
2) A
3) B
4) Data inadequate
5) None of these

6. Which subjects is taught on Thursday?

1) History
2) Economics
3) Geography
4) Data inadequate
5) None of these

7. How many stacks are there in DOS?
(a)1 stack
(b)2 stacks
(c)3 stacks

8. What is the o/p?
char arr[5]={ a , a , b , c , d , e };

9. Write the same complex number addition program with passing values to function, passing structure to function and passing address of the structure to the function.

10. What is recursion? What will happen is we don?t give termination condition? How efficient recursion is compared to iteration.

11. What are the storage classes? Explain each with examples.

12. Where register variables are stored? Where registers remain in computer? How many registers are there.

13. Write a program to implement static storage class.( many questions on this)

What is Union? Write syntax of union. How memory is allocated for the members of Union. How it is different from structure? When we use union and when structure.

15. What is dynamic memory allocation?

16. Write syntax for allocating memory for Integer using malloc().

17. How it works? What is the need of macros?

18. How parameters are passed in C?

19. What is call by value, call by reference, and call by address? What is difference between them? Explain with examples.

20. Rate yourself in Data structure. (on the scale of 1 -10)