CSCE 1337 Object Oriented Programming & Final Review
Questions And Correct Answers
AND and OR are the two most commonly used examples of which type of operator?
A. boolean
B. comparison
C. relational
D. assignment
A. boolean
We have an expert-written solution to this problem!
What would be the result of the following C++ code (assuming all necessary directives)?
double number = 1234.56;
cout << fixed;
cout << setprecision(0);
cout << number << endl;
A. 1234
B. 1234.567000
C. 1235
D. 1234.6
C. 1235
,In the summary of operators, all arithmetic operators will be evaluated prior to any
logical operators.
A. TRUE
B. FALSE
A. TRUE
A computer programmer can use which of the following to control the number of
decimal places that appear when a real number is displayed?
A. scientific stream manipulator
B. setprecision stream manipulator
C. fixed stream manipulator
D. end
B. setprecision stream manipulator
To display real numbers in exponential notation, the programmer would use which
stream manipulator?
A. fixed
B. real
C. scientific
D. none of the above
C. scientific
,AND and OR are the two most commonly used examples of which type of operator?
A. boolean
B. comparison
C. relational
D. assignment
A. boolean
We have an expert-written solution to this problem!
What would be the result of the following C++ code (assuming all necessary directives)?
double number = 1234.56;
cout << fixed;
cout << setprecision(0);
cout << number << endl;
A. 1234
B. 1234.567000
C. 1235
D. 1234.6
C. 1235
In the summary of operators, all arithmetic operators will be evaluated prior to any
logical operators.
, A. TRUE
B. FALSE
A. TRUE
A computer programmer can use which of the following to control the number of
decimal places that appear when a real number is displayed?
A. scientific stream manipulator
B. setprecision stream manipulator
C. fixed stream manipulator
D. end
B. setprecision stream manipulator
To display real numbers in exponential notation, the programmer would use which
stream manipulator?
A. fixed
B. real
C. scientific
D. none of the above
C. scientific
What is the name of the process used to verify that the input data is within the expected
range?
Questions And Correct Answers
AND and OR are the two most commonly used examples of which type of operator?
A. boolean
B. comparison
C. relational
D. assignment
A. boolean
We have an expert-written solution to this problem!
What would be the result of the following C++ code (assuming all necessary directives)?
double number = 1234.56;
cout << fixed;
cout << setprecision(0);
cout << number << endl;
A. 1234
B. 1234.567000
C. 1235
D. 1234.6
C. 1235
,In the summary of operators, all arithmetic operators will be evaluated prior to any
logical operators.
A. TRUE
B. FALSE
A. TRUE
A computer programmer can use which of the following to control the number of
decimal places that appear when a real number is displayed?
A. scientific stream manipulator
B. setprecision stream manipulator
C. fixed stream manipulator
D. end
B. setprecision stream manipulator
To display real numbers in exponential notation, the programmer would use which
stream manipulator?
A. fixed
B. real
C. scientific
D. none of the above
C. scientific
,AND and OR are the two most commonly used examples of which type of operator?
A. boolean
B. comparison
C. relational
D. assignment
A. boolean
We have an expert-written solution to this problem!
What would be the result of the following C++ code (assuming all necessary directives)?
double number = 1234.56;
cout << fixed;
cout << setprecision(0);
cout << number << endl;
A. 1234
B. 1234.567000
C. 1235
D. 1234.6
C. 1235
In the summary of operators, all arithmetic operators will be evaluated prior to any
logical operators.
, A. TRUE
B. FALSE
A. TRUE
A computer programmer can use which of the following to control the number of
decimal places that appear when a real number is displayed?
A. scientific stream manipulator
B. setprecision stream manipulator
C. fixed stream manipulator
D. end
B. setprecision stream manipulator
To display real numbers in exponential notation, the programmer would use which
stream manipulator?
A. fixed
B. real
C. scientific
D. none of the above
C. scientific
What is the name of the process used to verify that the input data is within the expected
range?