C/C MCQ Quiz Hub

C Programming MCQ Part 1

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

1. The execution of a C program start from _____.




2. The C supports _____ basic data types




3. The C program is converted to machine language using________.




4. The C was developed in the year____




5. C language has been developed at_________.




6. The C language is an offspring of ______




7. The programs should be written only in_______




8. The role of a compiler is to translate source program statements to_________.




9. he extension for C program files by default is_________.




10. An escape sequence commences with _____________.




11. The C language is closely associated with _________.




12. The C program is highly case sensitive




13. Each instruction in C program is terminated by__________.




14. Which of the following declaration is not supported by C?




15. ANSI committee was setup in the summer of___________.




16. A declaration float a, b; occupies ___ of memory. .




17. Identify the wrong statement.




18. An interpreter reads the source code of a program__




19. A compiler compiles the source code_______




20. A character variable can store only___________.




21. C variable cannot start with_________.




22. A short integer variable occupies memory_________.




23. According to __________ C keywords are reserved words.




24. The declaration of C variable can be done____




25. In C one statement can declare_________.




26. The word char is a_______




27. The variables are initialized using_________.




28. An unsigned integer variable contains values________.




29. The keyword const keeps the value of a variable_________.




30. The keyword const keeps the value of a variable_________.




31. In C every variable has_______.




32. The range of character data type is_________.




33. The keyword volatile keeps the value of variable__________.




34. Which is the incorrect variable name__________.




35. How many keywords are there in ANSI C?




36. How many variables can be initialized at a time?




37. Which of the following statement is valid?




38. __________ refers to the accuracy of the calculations.




39. The variable name can be started with__________. A.




40. What is the value of sizeof(char)?




41. ______ decides which operator is to be used first.




42. The & operator displays________.




43. Addition of two numbers is performed using _________.




44. What is the value of 10%8?




45. What is the result of the expression (10/3)*3+5%3?




46. What is the result of the expression (23*2) % (int) 5.5?




47. What is the result of 5/2?




48. What is the result of 5&&2?




49. Which function is appropriate for accepting a string?




50. What is the ASCII range for 0 to 9 digits?