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?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Easton. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.99. You're not tied to anything after your purchase.