
C++ Math
Authored by John Miller
Computers
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Microbit (python)
Quiz
•
8th - 10th Grade
9 questions
Lesson 12-Working with Camera Raw
Quiz
•
9th - 12th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
Diplo Variables
Quiz
•
1st - 10th Grade
10 questions
Milestone1 Quiz
Quiz
•
9th Grade
15 questions
Computer Science Principles Unit 1 Quiz
Quiz
•
9th - 12th Grade
14 questions
Do Now Activity - Year 9
Quiz
•
9th Grade
15 questions
Python Programming
Quiz
•
5th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade