C Functions

Quiz
•
Other
•
University
•
Medium
Azrinna Muhamad
Used 71+ times
FREE Resource
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];
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Introduction to Python Programming Quiz 9E

Quiz
•
10th Grade - University
9 questions
Flash Backyard (HH)

Quiz
•
1st Grade - Professio...
15 questions
EmTech Drill 1

Quiz
•
11th Grade - University
10 questions
IMC - Unit 1

Quiz
•
University
13 questions
ICS - Bellwork -9/8/25 - 9/12/25

Quiz
•
3rd Grade - University
10 questions
DAP226 Quiz 01

Quiz
•
University
12 questions
158.225 Business Process Model and Notation (BPMN)

Quiz
•
University
8 questions
ServSafe Chapter 7

Quiz
•
KG - University
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 Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University