C Programming Functions Quiz

C Programming Functions Quiz

Assessment

Quiz

English

1st Grade

Practice Problem

Hard

Created by

Learn With Me

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the abs() function return?

The absolute value of a number

The square of a number

The cube of a number

The negative value of a number

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is needed for math functions?

string.h

include.h

math.h

Mathematics.h

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ceil() function do?

Rounds a number up

Returns the square root

Returns the absolute value

Rounds a number down

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of value does the floor() function return?

Double

Integer

Character

String

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the sqrt() function calculate?

Square of a number

Square root of a number

Cube of a number

Cube root of a number

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the pow() function do?

Calculates the square root

Calculates the power of a number

Calculates the absolute value

Calculates the logarithm

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the log() function calculate?

Absolute value

Square root

Natural logarithm

Power of a number

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?