--:--









Quiz for Structure of a C program

Course: C Language | Subject: Unit 1 | Topic: Introduction to C Programming



Logo

Q1: Which is the correct order of sections in a C program?

Logo

Q2: Which section of a C program contains #include directives?

Logo

Q3: Where are global variables usually declared?

Logo

Q4: Which function is the entry point of every C program?

Logo

Q5: What comes after the main() function in a C program?

Logo

Q6: Which section of a C program contains comments about the program?

Logo

Q7: Where are #define macros written?

Logo

Q8: The return type of main() in modern C should be?

Logo

Q9: Where does execution of a C program begin?

Logo

Q10: Which part of a C program contains #include <stdio.h>?

Logo

Q11: In C, comments written using /* */ are part of?

Logo

Q12: Which section of a C program is optional?

Logo

Q13: What is the last section of a typical C program?

Logo

Q14: What is the first section of a C program?

Logo

Q15: Where do you place variable declarations that are accessible to all functions?

Logo

Q16: What type of directives are processed before compilation?

Logo

Q17: Where do we place function prototypes?

Logo

Q18: What must every C program have?

Logo

Q19: Which of these is processed by the preprocessor?

Logo

Q20: What follows the preprocessor directives in a typical C program?

Are you ready to start test? Set your time limit