C++ Math

C++ Math

9th Grade

10 Qs

quiz-placeholder

Similar activities

9. Урок 12+ Принципи тривимірної навігації

9. Урок 12+ Принципи тривимірної навігації

9th Grade

9 Qs

APCSA Unit 4

APCSA Unit 4

9th - 12th Grade

6 Qs

AP Computer Science Principles

AP Computer Science Principles

9th - 12th Grade

6 Qs

Functions in Python

Functions in Python

9th - 12th Grade

15 Qs

Python lesson 3 quiz

Python lesson 3 quiz

9th Grade

14 Qs

Unit 2 and 3_CS Python

Unit 2 and 3_CS Python

9th - 12th Grade

9 Qs

HTML Javascript

HTML Javascript

9th Grade

12 Qs

Computer Science Foundations - Module 4 Review

Computer Science Foundations - Module 4 Review

9th - 11th Grade

9 Qs

C++ Math

C++ Math

Assessment

Quiz

Computers

9th Grade

Easy

Created by

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

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?