C Programming Functions Quiz

C Programming Functions Quiz

Assessment

Quiz

English

1st Grade

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?