
Functions in C

Quiz
•
Computers
•
12th Grade
•
Medium
Michael Kona
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of return type in functions?
To control the loop iterations
To confuse the programmer
To specify the data type of the value that the function will return
To determine the function name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the role of return statement in functions.
The return statement specifies the value that the function should return when called.
The return statement is optional in functions
The return statement ends the function execution abruptly
The return statement is used to print output to the console
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are formal arguments in functions?
Variables declared inside the function
Output values returned by the function
Comments within the function
Input parameters specified in the function definition
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe actual arguments in functions.
Actual arguments in functions are the values passed to the function when it is called.
Actual arguments in functions are only used in loops
Actual arguments in functions are optional
Actual arguments in functions are the values returned by the function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a function defined in C?
Return_Type function_name(Parameters) { // Function body }
ReturnType function_name(Parameters) // Function body
ReturnType function_name { // Function body }
ReturnType function_name(Parameters) { // Function body }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for function calling statement in C?
myFunction(arg1, arg2,);
myFunction(arg1 arg2);
myFunction(arg1, arg2);
myFunction(arg1, arg2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain call by value in functions.
Changes made to the parameter inside the function affect the original value outside the function.
Call by value allows for direct manipulation of the original argument.
When a function is called, the actual value of the argument is passed to the function. Any changes made to the parameter inside the function do not affect the original value outside the function.
When a function is called, the reference to the argument is passed to the function.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Define Function

Quiz
•
12th Grade
16 questions
DATA SCIENCE Assessment (April)

Quiz
•
8th - 12th Grade
19 questions
OCR GCSE Computer Science Subroutines

Quiz
•
12th Grade
20 questions
Data handling using pandas and Data visualization

Quiz
•
12th Grade
20 questions
Functional Programming Quiz

Quiz
•
12th Grade
15 questions
Functions and Parameters Quiz

Quiz
•
9th - 12th Grade
11 questions
The keyboard and mouse

Quiz
•
4th Grade - Professio...
10 questions
GDScript Quiz - Lesson 2 - Variables & Functions

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade