In C, what is the meaning of following function prototype with void parameter list:
void fun(void)
{
/* .... */
}
Computer Programming Function
Quiz
•
Computers
•
University
•
Hard
Thomas Martinez
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, what is the meaning of following function prototype with void parameter list:
void fun(void)
{
/* .... */
}
Function can be called with any number of parameters of any types
Function can only be called without any parameter
Function can be called with one integer parameter.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of the function with prototype: "int func(char x, float v, double t);"?
char
int
float
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While creating a C function, you give a definition of what the function has to do. To use a function, you will have to ___________ to perform the defined task.
call the function
declare the function
define the function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid function call to call the above function?
print;
print x, y;
print( );
int print( );
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The _______ is the part of a function definition that shows the function name, return type, and parameter list.
function call
function body
function header
function prototype
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Based on the above function header, which statement should be used to call function showValue( ) with argument 5?
showValue(5);
showValue(int 5);
quantity = showValue(5);
quantity = showValue(int 5);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Mathematical Library Function (math.h)?
cos(a)
abs(a)
fabs(a)
log(a)
10 questions
104-P-01: Delegates and lambdas
Quiz
•
University
10 questions
Basics Of C Programming
Quiz
•
University
10 questions
C Programming Quiz-1
Quiz
•
University
12 questions
C Basics
Quiz
•
University
10 questions
Compose Camp - Session 2 Quiz
Quiz
•
University
9 questions
QUIZ Pass by value and reference
Quiz
•
University
15 questions
ARRAYS AND FUNCTIONS
Quiz
•
University
15 questions
Java Programming
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade