C Programming Multiple Choice Questions and Answers PDF free Download

  1. A function can not be overloaded only by its return type
  2. Inline functions involves some additional overhead in running time
  3. A function that calls itself for its processing is known as
  4. We declare a function with ______ if it does not have any return type
  5. Arguments of a functions are separated with
  6. Variables inside parenthesis of functions declarations have _____ level access
  7. Observe following function declaration and choose the best Ans:
  8. The keyword endl
  9. Strings are character arrays. The last index of it contains the null-terminated character
  10. Union elements can be of different sizes
  11. What will be output if you will compile and execute the following c code?
  12. What is the output if you will compile and execute the following c code?
  13. What is the output after the compilation and execution of following c code?
  14. What is the output of following c code after compilation and execution?
  15. What will be the output if you compile and execute the following c code?
  16. What will be the output of following c code after compilation and execution?
  17. What is the output of following c code?
  18. Find the output of following c code?
  19. What is the output if you compile and execute the following c code?
  20. What will be the output of following c code?
  21. What is (void*)0?
  22. Can you combine the following two statements into one?
  23. In which header file is the NULL macro defined?
  24. How many bytes are occupied by near, far and huge pointers (DOS)?
  25. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
  26. What would be the equivalent pointer expression for referring the array elementa[i][j][k][l]
  27. A pointer is
  28. The operator used to get value at address stored in a pointer variable is
  29. Are the expression *ptr++ and ++*ptr are same?
  30. Will the program compile?
  31. Are the three declarations char **apple, char *apple[], and char apple[][] same?
  32. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
  33. What does the following declaration mean?
  34. In C, if you pass an array as an argument to a function, what actually gets passed?
  35. A pointer to a block of memory is effectively same as an array
  36. Does this mentioning array name gives the base address in all the contexts?
  37. Is there any difference int the following declarations?
  38. Are the expressions arr and &arr same for an array of 10 integers?
  39. The keyword used to transfer control from a function back to the calling function is
  40. A function cannot be defined inside another function
  41. Functions cannot return more than one value at a time
  42. If return type for a function is not specified, it defaults to int
  43. In C all functions except main() can be called recursively
  44. Which of the following function sets first n characters of a string to a given character?
  45. If the two strings are identical, then strcmp() function returns
  46. How will you print \n on the screen?
  47. The library function used to find the last occurrence of a character in a string is
  48. Which of the following function is used to find the first occurrence of a given string in another string?
  49. Which of the following function is more appropriate for reading in a multi-word string?
  50. Which of the following is the correct order of evaluation for the below expression?
  51. Which of the following correctly shows the hierarchy of arithmetic operations in C?
  52. Which of the following is the correct usage of conditional operators used in C?
  53. Which of the following is the correct order if calling functions in the below code?
  54. Which of the following are unary operators in C?
  55. In which order do the following gets evaluated
  56. A function can be overloaded with a different return type if it has all the parameters same


0 comments: