COSC 1436 Exam 1 UPDATED Questions and CORRECT Answers
2 views 0 purchase
Course
COSC 1436
Institution
COSC 1436
COSC 1436 Exam 1 UPDATED Questions
and CORRECT Answers
False - CORRECT ANSWER- (T/F) In C++, reserved words are the same as predefined
identifiers.
True - CORRECT ANSWER- (T/F) The maximum number of significant digits in values
of the double type is 15.
False - CORRECT ANSWER- (T/F) A mixe...
16 - CORRECT ANSWER- ✔✔The length of the string "computer science" is ____
one = 10.5, two = 30.6 - CORRECT ANSWER- ✔✔In a C++ program, one and two are
double variables and input values are 10.5 and 30.6. After the statement cin >> one >> two;
executes, ____.
2 - CORRECT ANSWER- ✔✔Suppose that count is an int variable and count = 1. After the
statement count++; executes, the value of count is ____.
beta = beta - 1;
alpha = beta; - CORRECT ANSWER- ✔✔Suppose that alpha and beta are int variables. The
statement alpha = --beta; is equivalent to the statement(s) ____.
alpha = beta;
beta = beta + 1; - CORRECT ANSWER- ✔✔Suppose that alpha and beta are int variables.
The statement alpha = beta++; is equivalent to the statement(s) ____.
beta = beta + 1;
alpha = beta; - CORRECT ANSWER- ✔✔Suppose that alpha and beta are int variables. The
statement alpha = ++beta; is equivalent to the statement(s) ____.
Sunny
Day - CORRECT ANSWER- ✔✔Choose the output of the following C++ statement:
cout << "Sunny " << '\n' << "Day " << endl;
\n - CORRECT ANSWER- ✔✔What is the newline character?
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 MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.99. You're not tied to anything after your purchase.