Search Header Logo

C Functions Quiz

Authored by Ed Sepulveda

Computers

9th - 12th Grade

C Functions Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in C?

A block of reusable logic that may have a defined set of input and output.

A conditional statement that checks for true or false.

A variable that stores data.

A loop that iterates over a set of values.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a built-in function in C?

printf()

printNumber()

getOne()

incrementBy()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used for a function that does not return any value?

void

int

return

float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function prototype in C?

A function that returns no value.

A function that contains a loop.

A function that is called by another function.

A specification of a function's interface with return type and parameter types.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are parameters specified in a user-defined function in C?

Within the function signature parentheses, separated by commas.

Within the function body.

Using the return keyword.

After the function name, separated by semicolons.

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?