
OBCFC 18-7-25
Authored by Jeyantha 2696
others
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
EDU 221 TEST
Quiz
•
University
15 questions
Quiz on Sharing Personal Information
Quiz
•
6th Grade - University
10 questions
Quiz on IoT Concepts
Quiz
•
University
12 questions
The Jacket Vocabulary
Quiz
•
8th Grade - University
15 questions
British colonial study guide
Quiz
•
3rd Grade - University
15 questions
Lesson 2-5 Assessment
Quiz
•
5th Grade - University
10 questions
2134-MS 102-MIDTERM QUIZ 1
Quiz
•
University
12 questions
S.S. U1 L1 Vocabulary Quiz
Quiz
•
5th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for others
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University