The word ____________________ is used before the array declaration in a function heading to prevent
the function from modifying the array. - ANSWERSconst
In C++, the ___________ symbol is an operator, called the member access operator. - ANSWERSdot
operator
You can use the function ______________________ to read a string containing blanks. -
ANSWERSgetline()
In a switch statement, if the value of the expression does not match any of the case values, the
statements following the ____________________ label execute. - ANSWERSdefault
These are the three types of loops in C++ _______________, ______________, ______________ -
ANSWERSfor , while, do-while
A function ____________________ is a function that is not fully coded. - ANSWERSstub (function stub)
\n and \t are both example of a(n) _________________ _________________________. -
ANSWERSescape sequence
A ____________________ ________________ is a way of changing a value of one type to a value of
another type. - ANSWERStype conversion
By default, all members of a struct are ____________________. - ANSWERSpublic (CLASS MEMBERS are
private)
To use setw, you need to #include the library ______________________. - ANSWERSiomanip
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 Bensuda. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.