
C Programming Functions Quiz

Quiz
•
Computers
•
University
•
Medium
Satheesh D
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C programming?
A type of loop
A series of instructions with a specific purpose
A variable that stores data
A data structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type of function in C?
Predefined functions
Static functions
User defined functions
Library functions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'return' statement do in a function?
Prints output to the screen
Returns control to the calling function
Declares a variable
Ends the program
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of function declaration?
To call the function
To create a loop
To define the function's body
To specify the function's return type and parameters
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, what are formal parameters?
Variables used in function calls
Variables defined in the function header
Local variables
Global variables
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the function call 'add(5, 10)' if 'add' is defined to return the sum?
Error
5
15
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly describes 'Call by Value'?
Values of actual parameters are copied to formal parameters
Addresses of actual parameters are passed
Only pointers are used
No parameters are passed
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Functions

Quiz
•
8th Grade - University
9 questions
expressjs 2

Quiz
•
University
15 questions
Unit 3: Interactive Animations and Games - Lessons 3-6

Quiz
•
6th Grade - University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I

Quiz
•
University
10 questions
AWD Quiz #4

Quiz
•
University
14 questions
Seatwork Data Structure2

Quiz
•
University
16 questions
Mastering JavaScript Basics

Quiz
•
University
15 questions
C++ Quiz-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University