C/C MCQ Quiz Hub

C programming language MCQ Questions Set 4

Choose a topic to test your knowledge and improve your C/C skills

1. Which of the following statement is not true about preprocessor directives?




2. Regarding the following statement which of the statements is true? const int a = 100;




3. The difference between x and ‘x’ is?




4. How to declare a wide character in the string literal?




5. Which value can we not assign to reference?




6. Identify the incorrect statement.




7. Which reference modifier is used to define the reference variable?




8. What does a reference provide?




9. Identify the correct sentence regarding inequality between reference and pointer.




10. What are the references in C++?




11. What is the difference between references and pointers?




12. Pick the correct statement about references in C++.




13. Pick the correct statement about references.




14.  Which of the following operator is used while declaring references?




15. Which of the following is incorrect?




16. Which of the following function must use reference.




17. How a reference is different from a pointer?




18. Which of the following statement(s) is/are correct?




19. The void pointer can point to which type of objects?




20. When does the void pointer can be dereferenced?




21. The pointer can point to any variable that is not declared with which of these?




22. A void pointer cannot point to which of these?




23.  What we can’t do on a void pointer?




24. The data elements in the structure are also known as what?




25. What will be used when terminating a structure?




26. What will happen when the structure is declared?




27. The declaration of the structure is also called as?




28. Which of the following is a properly defined structure?




29. Which of the following accesses a variable in structure *b?




30. Which function is used to check whether a character is an alphabet?




31. Which function is used to check whether a character is a number?




32. Which function is used to check whether a character is a tab or space?




33. Which function is used to check whether a character is tab or space or whitespace control code( , ,etc.)?




34. Which function is used to check whether a character is tab or a control code?




35. Which function is used to check whether a character is printable on console?




36. Which function is used to check whether a character is hexadecimal?




37. Which function is used to check whether a character is punctuation mark?




38. Which operator is having the right to left associativity in the following?




39. Which operator is having the highest precedence?




40. What is this operator called ?:?




41. What is the use of dynamic_cast operator?




42.  The if..else statement can be replaced by which operator?




43. The switch statement is also called as?




44. Which looping process is best used when the number of iterations is known?




45. Where does the execution of the program starts?




46. What are mandatory parts in the function declaration?




47. which of the following is used to terminate the function declaration?




48. How many can max number of arguments present in function in the c99 compiler?




49.  Which is more effective while calling the functions?




50. What is the scope of the variable declared in the user defined function?