
Unit 12: Types of function
Authored by Abhishek Pandey
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for declaring a function in C?
return_type function_name();
function_name return_type();
function_name();
return_type function_name;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of a function that does not return any value?
float
void
char
int
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function prototype?
Declaration of a function
Definition of a function
Execution of a function
function call possibly
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to call a function named sum?
sum();
sum;
call sum;
sum[];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of "call by address"?
Faster execution
Ability to modify the actual arguments
No need for pointers
Less memory usage
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In call by value, changes made inside the function definition
Do not affect the original variables
Modify the memory address of variables
Are reflected in the caller function
Always result in compilation errors
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
10 questions
UTILITY PROGRAM
Quiz
•
University
10 questions
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
10 questions
YT-Quiz
Quiz
•
University
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
Servidor Web
Quiz
•
University
11 questions
SCM and Logistics
Quiz
•
University
10 questions
Google Digital Citizenship - Class 1 - True and False
Quiz
•
5th Grade - University
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