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
11 questions
Pregnancy

Quiz
•
KG - University
10 questions
Analyzing and Interpreting Data Quiz (Chapters 12-13)

Quiz
•
University
15 questions
Social Media

Quiz
•
University
8 questions
Diagnosis & the DSM -V

Quiz
•
KG - University
10 questions
IoT และโหนด -Red

Quiz
•
University - Professi...
10 questions
CHAPTER 3

Quiz
•
University
10 questions
Excel Functions and Formulas

Quiz
•
University
10 questions
B.COM(IT) - 3

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade