
Functions in C
Authored by Michael Kona
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
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
20 questions
Computer parts
Quiz
•
1st - 12th Grade
11 questions
Packet Switching and Encryption
Quiz
•
10th - 12th Grade
10 questions
HTML & Google Site Seatwork
Quiz
•
12th Grade
17 questions
Cuestionario de Certificación JS 2024
Quiz
•
12th Grade
12 questions
ICT Computer Basics pt1
Quiz
•
10th - 12th Grade
10 questions
Social media influencers
Quiz
•
6th - 12th Grade
12 questions
website design elements
Quiz
•
12th Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade