
Functions in C - Worksheet
Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
V. Charles Prabu
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C?
A variable that stores data
A block of code that performs a specific task
A loop that repeats code
A comment in the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in C?
define
function
void
No special keyword is needed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return statement in a function?
To print output
To exit the program
To send a value back to the caller
To define a variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct function declaration in C?
function add(int a, int b)
int add(int a, int b)
add(int a, int b)
int add(a, b)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return type of a function in C if not specified?
void
float
int
char
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to pass arguments to a function in C?
return
main()
Function parameters
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the void keyword indicate in a function declaration?
The function returns a value
The function has no name
The function does not return any value
The function has no parameters
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
19 questions
кэгэ информатика
Quiz
•
11th Grade
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 9
Quiz
•
9th Grade - University
20 questions
KILAS BALIK MATERI SEBELUMNYA
Quiz
•
9th - 12th Grade
16 questions
Quiz on Design Brief
Quiz
•
11th Grade
10 questions
Animation Techniques Quiz
Quiz
•
10th Grade - University
20 questions
Atividade Avaliativa Robótica /Aula Projetos
Quiz
•
9th - 12th Grade
15 questions
BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2
Quiz
•
2nd Grade - University
20 questions
Eines d'Internet
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
