C Functions
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Azrinna Muhamad
Used 72+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C programming?
A variable type
A block of code that performs a specific task
A data type
A comment section
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function prototype specify?
Function name and how to call the function
The specific task performed by the function
Only the return type of the function
Only the parameters of the function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable created inside the function has_____ scope.
local
global
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
No output
Compilation error
Hello, World!
Runtime error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function call in C programming?
Defining the function
Declaring the function
Invoking the function to perform its task
Documenting the function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly calls a function named displayMessage with no arguments?
displayMessage;
displayMessage();
displayMessage[];
call displayMessage();
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a function named calculate takes two integer arguments, which of the following is a correct function call?
calculate();
calculate(x, y);
calculate(int x, int y);
calculate[x, y];
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
13 questions
football of world
Quiz
•
1st Grade - University
13 questions
Anime 99
Quiz
•
9th Grade - Professio...
10 questions
QUIZ TPHTP 5 - Pengolahan Teh Hitam
Quiz
•
University
10 questions
MGT 269 Chapter 6: Job Application Letter & Resume
Quiz
•
University
10 questions
Infancy
Quiz
•
4th Grade - Professio...
12 questions
Week 16 - Primary Survey Recap
Quiz
•
University - Professi...
15 questions
Overview of E-Banking
Quiz
•
University
12 questions
National Day Quiz
Quiz
•
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
