
York College CS172 Week3 #1
Authored by Mr. Martin
Computers
12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two floating-point types in C++?
int and double
float and double
float and int
double and long
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between float and double?
float stores bigger numbers than double
double stores bigger numbers than float
float stores numbers with fractional parts
double stores numbers with fractional parts
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a constant in C++?
A variable whose value can change
A variable whose value cannot change
A variable that can only be used once
A variable that can only be used in a specific function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of converting an int to a double?
The value is rounded up
The value is rounded down
The value remains the same
The value is truncated
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is typecasting?
Converting a value from one type to another
Converting a value to a string
Converting a value to a boolean
Converting a value to an array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the static_cast function do?
Converts a value to a static type
Converts a value to a dynamic type
Converts a value to an integer
Converts a value to a double
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?