Wednesday, December 15, 2010

C Language



C Language
or
Fundamentals of Programming
IMP Questions List

1-3 Marks Short Question
  1.  Write difference between algorithm and flowchart.
  2. ·        Explain the importance of C language.
  3. ·        What is format specifier?
  4. ·        What are local and global variable?
  5. ·        Define keyword, constant and variable.
  6. ·        Write a short note on type casting.
  7. ·        What is the difference between strlen() and sizeof() with example?
  8. ·        Why do we use header files?
  9. ·        Define relational operator.
  10. ·        What is an interpreter?
  11. ·        What is the purpose of adding comments in a program?
  12. ·        Differentiate between comparison and equality operator.
  13. ·        What is the syntax of switch statement?
  14. ·        Differentiate between expression and statement.
  15. ·        Distinguish between unary and binary minus.
  16. ·        Write a program in C language to convert the given string in uppercase?
  17. ·        What do you mean by formal arguments and the actual arguments?
  18. ·        What do you mean by functions?
  19. ·        What is parameter passing?
  20. ·        Define array and how we can access elements of an array?
  21. ·        What is the difference between character and string?
  22. ·        Write difference between character and string?
  23. ·        What is the purpose of the return statement?
  24. ·        What is array overflow?
  25. ·        Explain function prototyping.
  26. ·        What are pros and cons of goto statement?
  27. ·        What is the typedef declaration? Give suitable example.
  28. ·        What is the role played by atoi() in string manipulation?
  29. ·        Give the syntax and application of extern storage class?
  30. ·        Distinguish between run time and logical errors.
  31. ·        What is pointer?
  32. ·        What are advantages of pointers?
  33. ·        Define structure with syntax.
  34. ·        Write a C program using pointers to multiply two integers.
  35. ·        What are self-referential structures?
  36. ·        Differentiate between structure and union.
  37. ·        Define text & binary files.
  38. ·        What do you mean by data file?
  39. ·        What is purpose of library function feof()?
  40. ·        What do you mean by enumerated data types?
  41. ·        What is the use of fseek() and rewind() function?
  42. ·        Define a structure student contain name and marks.
  43. ·        Write advantage of union over structure.
  44. ·        What do you mean by Dangling pointer?
  45. ·        Is the following statement valid? Justify your answer
k= (char*) &m;
m= (float*) &p



5 Marks Question


  1. ·        Discuss the structure of a C program. Explain with example.
  2. ·        What do you mean by data types? Give examples of data types available in C language.
  3. ·        Explain the various control statements used in c language.
  4. ·        What is the difference between pre and post increment operator? Explain with the help of an example.
  5. ·        What is the difference between break and continue statements? Explain with the help of an example.
  6. ·        Write the advantage and disadvantage of for loop over while.
  7. ·        Write difference between while and do while with example.
  8. ·        What do you mean by ternary operator? Explain with example.
  9. ·        What are user define function its advantages and write its different types.
  10. ·        What are String functions and write some string function?
  11. ·        Explain with example the concept of passing array to function.
  12. ·        What is recursion? Write a program to find Fibonacci series till a given number using recursion.
  13. ·        Explain with example the relationship of one dimensional array and pointers.
  14. ·        Differentiate between pass by Value and pass by reference with the help of example.
  15. ·        What is a pointer to an array and an array of pointers?
  16. ·        What is the difference between static and dynamic memory allocation?
  17. ·        What do you mean by structure? How does a structure differ from an array?
  18. ·        Explain with examples the various file handling functions.
  19. ·        What different function to handle errors in files?
  20. ·        What are command line arguments?
  21. ·        Explain by giving suitable example pointers with structures.
  22. ·        How can we initialize array and structure?