Here are some C interview questions covering functions topic.
1) ————- is a group or block of statements enclosed in flower brackets that executes independently upon calling.
A) Program
B) Application
C) Function
D) All the Above
Ans. C
2) Example of pre-defined functions in C Programming Language
A) main ()
B) printf ()
C) scanf ()
D) All the Above
Ans. D
3) While writing a C programming language, the code that needs to be executed should be inside the ———-.
A) Curly brackets {}
B) Parentheses ()
C) Either A or B
D) None of the Above
Ans. A
4) Basically, functions in C help in ———.
A) Program Execution
B) Program Compilation
C) Program Writing
D) All the Above
Ans. A
5) The printf function in C programming takes the final output from —- to display those values or characters on the standard console.
A) Calling Function
B) Called Function
C) Function
D) Method
Ans. A
6) During C program execution, after performing the logic, ——— will return the value.
A) Calling Function
B) Called Function
C) Function
D) Main Function
Ans. B
7) The called function includes the——-
A) Function Definition
B) Function Declaration
C) Function
D) Printf Function
Ans. A
8) The programmer does not need to create the ———- function because they are already inside the C program.
A) User-Defined Function
B) Pre-defined Function
C) Called Function
D) Calling Function
Ans. B
9) A group of ——- makes a program in any programming language.
A) Functions
B) Statements
C) Character Sets
D) Instructions
Ans. A
10) Header files in the C programming language comprise ———–.
A) Functions
B) User-Defined Functions
C) Pre-Defined Functions
D) All the Above
Ans. C