C Program Structure 1 C Program Structure 1 / 15 What is the main purpose of the Documentation Section in a C program? To run the program To write comments and program details To declare variables To include libraries 2 / 15 Where do we include header files like <stdio.h>? Definition Section Link Section Executable Section Documentation Section 3 / 15 What does #define PI 3.14 represent? A variable A function A constant definition A loop 4 / 15 Which section stores variables declared outside all functions? Link Section Global Declaration Section Main Function Executable Part 5 / 15 A user-defined function is created using which keyword? define function void / int / float return 6 / 15 Which function is the starting point of every C program? start() init() run() main() 7 / 15 Variables declared inside main() belong to which section? Global Declaration Section Declaration Part Documentation Section Link Section 8 / 15 Which section contains actual working code like calculations? Documentation Link Section Executable Part Definition Section 9 / 15 What is the purpose of printf()? Read a value Print output Define constants End program 10 / 15 What is used to take input from the user? write() printf() input() scanf() 11 / 15 What does the line return 0; in main() mean? Program has an error Program ends successfully Program restarts Nothing 12 / 15 What is true about global variables? Used only inside main Cannot be changed Accessible by all functions Used only once 13 / 15 Which symbol is used for comments in C? # // and /* */ $$ 14 / 15 Which of the following is a header file? stdio.h PI main return 15 / 15 Which section is optional in a C program? main() Documentation Section Executable Part Link Section Your score isThe average score is 0% 0% Restart quiz