Introduction to Programming - Important C questions

advertisement
Northern India Engineering College
Shastri Park, Delhi
Department of Computer Science, Civil Engineering
Second Term/ Third Term:
Important Questions that can be asked in your exams/sessionals/viva:
Subject Facilitator: Shipra Varshney
Instructions:
1. Students should prepare the academic List programs thoroughly.
2. The questions asked in the exams\viva should be answered with figures and
snippets.
1. Define Array. Explain 1Dimensional and 2 Dimensional arrays with an example.
2. Give general Syntax to declare one dimensional array
3. Give general Syntax to declare two dimensional arrays
4. What is function? Differentiate between normal function call and recursion
functions with examples.
5 What is built in function?
6. What is use of return statement?
7. What is the use of strcat() function?
8. What is the use of strcmp() function?
9. What is the use of strrev() function?
10. What is the use of strlen() function?
11. What is the use of strcpy() function?
12. What is recursive function?
13. What do you mean by call by value?
14. What do you mean by call by reference?
15. What is pointer? Explain pointer arithmetic.
16. What is structure?
17. What is main difference between structure and union?
18. What is use of typedef?
19. Whether Structured programming helps in reducing errors?
20. What is preprocessor? Explain macros and File inclusion with examples.
21. Give any two features of preprocessor
22. Give the syntax for defining File
23. Give the syntax for opening File.
24. Give the syntax for Closing File
25. What is fopen()?
26. What is fclose()?
27. What is the use of ftell()?
28. What is the use of fseek()?
29. What is the use of feof()?
30. Explain applications of array
31. Explain any 4 string functions with suitable example.
32. Explain Automatic storage class specifier.
33. Explain Static storage class.
34. Explain Register storage class.
35. Explain Extern storage class.
36. For what purpose ‘\0’ is used in string operations explain with suitable
example.
37. What is function? How function is defined.
38. Explain the difference between calling function and called function?
39. Explain void function?
40. Explain what is pointer? Explain with suitable example
41. Explain pointer to structure in detail. Explain with the help of a Program.
42. Explain pointer to function in detail.
43. Explain any one dynamic memory allocation
44. Explain how to access a value using pointer? Give a suitable example.
45. Write a short note on pointer to pointer.
46. Distinguish between malloc and calloc() functions. Write Syntax.
47. What is structure? Explain with suitable example
48. Explain array of structure with example
49. Differentiate structure and array
50. Distinguish between Structure and Union
Download