
Quiz6: Functions in C
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Xin Yang
Used 35+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about return type of functions in C?
Functions can return any type
Functions can return any type except array and functions
Functions can return any type except array, functions, function pointer
Functions can only return integer, double and character
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The _______________ method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function.
call by value
call by reference
3.
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.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a complete correct function?
int funct();
void funct(int){ printf( \Hello");
int funct(int x){ x = x +1; return x; }
void funct(x){ printf( "Hello\n");}
5.
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A ____________ tells the compiler about a function's name, return type, and parameters.
function declaration
function definition
function calling
7.
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
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
Already have an account?
Similar Resources on Wayground
10 questions
TIU Quiz-9
Quiz
•
University
10 questions
Classification in Machine Learning2
Quiz
•
University
12 questions
Javascript
Quiz
•
University
13 questions
AI-1
Quiz
•
KG - University
10 questions
Programación II Parte 5
Quiz
•
University
10 questions
Tableau
Quiz
•
University
15 questions
python basics
Quiz
•
11th Grade - University
15 questions
DBMS LAB QUIZ
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
