OBCFC 18-7-25

OBCFC 18-7-25

University

10 Qs

quiz-placeholder

Similar activities

Pickleball Quiz

Pickleball Quiz

9th Grade - University

11 Qs

Copy of Seventh Grade Comprehension Quiz

Copy of Seventh Grade Comprehension Quiz

7th Grade - University

10 Qs

Washington's Presidency Quiz

Washington's Presidency Quiz

10th Grade - University

14 Qs

Problem Solving using C - EBT(2025-2026 odd)

Problem Solving using C - EBT(2025-2026 odd)

University

11 Qs

Arkansas Geo Quiz

Arkansas Geo Quiz

5th Grade - University

12 Qs

TPE N°1

TPE N°1

1st Grade - University

10 Qs

Evaluación parcial 1-Microeconomía

Evaluación parcial 1-Microeconomía

University

13 Qs

SUMATIF 5 KELAS 4 MATERI PECAHAN

SUMATIF 5 KELAS 4 MATERI PECAHAN

4th Grade - University

10 Qs

OBCFC 18-7-25

OBCFC 18-7-25

Assessment

Quiz

others

University

Practice Problem

Hard

Created by

Jeyantha 2696

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?