
OBCFC 18-7-25

Quiz
•
others
•
University
•
Hard
Jeyantha 2696
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to declare a function in C?
function int sum(int, int);
int sum(int, int);
sum int(int, int);
int sum;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes void return type in a function?
Function returns an integer
Function does not return any value
Function returns nothing or null
Function always exits the program
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the number of arguments in the function call does not match with the number of parameters in the function definition?
Compiler automatically adjusts
Runtime error
Compile-time error
No error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function prototype?
A function with no return type
A function that calls another function
A declaration of a function that tells the compiler about function name, return type, and parameters
A function defined inside another function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to return a value from a function?
send
exit
return
output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A college uses a program with a function int isPresent(char studentID[]) that returns 1 for present and 0 for absent. Which control structure is most suitable to be used with this function?
switch-case
if-else
goto
while loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are building a simple calculator in C with separate functions like add(), subtract(), multiply(), and divide(). Which of the following best describes the reason for using multiple functions?
It increases memory usage
It helps in modular design and reusability
It reduces the need for input
It avoids use of loops
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
"The Open Window" by Saki- Questions

Quiz
•
9th Grade - University
15 questions
Required Materials Worksheet

Quiz
•
11th Grade - University
15 questions
Managerial accounting (quiz 1)

Quiz
•
University
9 questions
Principles of Child Development and Learning Quiz

Quiz
•
University
12 questions
Group 3 PE-Quiz

Quiz
•
University
15 questions
Schrodinger time dependent equation quantum mechanics

Quiz
•
University
10 questions
Decision-Making Process Quiz

Quiz
•
University
15 questions
Quizathon 9

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for others
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University