Math Functions in C Programming: Definition & Example


Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

Which of the following correctly includes a library into a C program?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access


In which of the following situations would you most likely use the following code:

double calced_value = -90.005;

double re-calc = fabs(calced_value);


After running the following code, what value will show_me have?

double starter = 25;

double show_me = sqrt(starter);

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

Whenever you get the chance, you can take this multiple-choice quiz and see what you know about math functions in C programming. You'll be quizzed on specific areas of study like a function that imports a library into a C program and the fabs function

Quiz & Worksheet Goals

The quiz will assess your grasp of the following:

  • Value from the 'show_me' function
  • Functions in the math library (math.h)
  • The function that will give the value of 156 for a variable tester

Skills Practiced

  • Reading comprehension - make sure you understand the functions in the math library (math.h)
  • Knowledge application - use your knowledge to answer questions about the function that imports a library into a C program and the value that comes from a 'show_me' function
  • Information recall - access the knowledge you've gained regarding the use of the fabs function

Additional Learning

Keep learning about math values in computer programming with the lesson called Math Functions in C Programming: Definition & Example. Here are the main areas you'll be covering:

  • Virtual library for a code
  • Header files
  • Floor of a number
  • Pow function
  • Absolute value of a number