
Unit 1 - Structure of C
Authored by Abhishek Pandey
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the entry point of a C program?
start()
begin()
init()
main()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the #include directive in a C program?
To declare variables
To define functions
To include header files
To start the execution of the program
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which section of a C program contains global variable declarations?
Preprocessor directive section
Definition section
Global declaration section
Main section
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid section of a C program?
Documentation section
Definition section
Compilation section
Subprogram section
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The return 0; statement at the end of the main() function signifies:
Program failed
Program returned nothing
Program ended successfully
Program entered an infinite loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which section includes user-defined functions?
Preprocessor section
Subprogram section
Main section
Header section
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the Link Section in a C program?
To write the main logic of the program
To declare variables
To include header files and link external libraries
To define user-defined functions
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?