Search Header Logo

Functions

Authored by Carol Redfield

Computers

University

10 Questions

Used 4+ times

Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many values can be returned from a function?

2

1

4

unlimited

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A C program is a combination of what things?

statements

variables

functions

all of the others

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A ___ is a set of lines of code that can be called to be executed from another location in a program and may have inputs and an output.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Typically in C, functions that you will write should be ____ unless you use prototypes.

anywhere in the body

at the bottom

in chronological order

above main

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: The main function was intended to be the last function in the source code for a C program.

True

False

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Write functions in order to do these things.

have more lines of code overall

repeat the set of code

make the program complicated

separate groups of commands

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function that starts out with

int addition (int a, int b, int c) ...

will take in how many values?

one

two

three

four

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?