
Quiz6: Functions in C
Authored by Xin Yang
Computers
University
Used 35+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
11 questions
Python basics
Quiz
•
University
12 questions
IoT - Internet das Coisas
Quiz
•
University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
10 questions
TPG Basics of web3 and programming
Quiz
•
University
10 questions
FST Class 2023- Quiz 2
Quiz
•
University
15 questions
CCNA, Cisco Certified Network Associate Quiz
Quiz
•
University
15 questions
PYTHON UNIT I MCQS
Quiz
•
University
10 questions
Computer Memory Quiz L4-7
Quiz
•
9th Grade - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University