
C++ Math

Quiz
•
Computers
•
9th Grade
•
Easy
John Miller
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for finding the square root of a number in C++?
findSquareRoot(number)
sqrt(number)
squareRoot(number)
root(number)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library should be included to use the pow() function in C++?
iostream
cstring
cmath
cstdlib
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression pow(2, 3) in C++?
10
8
6
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you find the absolute value of a number in C++?
abs(number)
absoluteNumber(number)
absoluteValue(number)
absolute(number)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for finding the maximum of two numbers in C++?
int maxNum = (num1 < num2) ? num1 : num2;
int maxNum = (num1 == num2) ? num1 : num2;
int maxNum = (num1 <= num2) ? num1 : num2;
int maxNum = (num1 > num2) ? num1 : num2;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library should be included to use the ceil() function in C++?
cstdlib
cmath
iostream
ctime
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression ceil(4.3) in C++?
4
5
3
6
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Pseudocode Quiz

Quiz
•
9th Grade
15 questions
GCSE Programming Quiz 2

Quiz
•
9th Grade
9 questions
Python Coding Quiz

Quiz
•
9th Grade
7 questions
R12 Edublocks Homework

Quiz
•
9th Grade
15 questions
Programming Concepts Quiz

Quiz
•
9th Grade
12 questions
Techsmart Unit 1.3

Quiz
•
9th - 12th Grade
15 questions
Prueba Diagnóstica de Programación Grado 10°

Quiz
•
9th Grade
10 questions
Number System Conversions 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade