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)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Information systems concepts
Quiz
•
University
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
11 questions
Workshop_1
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
10 questions
WN-CELLULAR CONCEPT
Quiz
•
University
15 questions
C++ Switch and If Else Statements
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
