COSC 1436 MIDTERM EXAM QUESTIONS AND ANSWERS ALL CORRECT
15 views 0 purchase
Course
COSC 1436
Institution
COSC 1436
COSC 1436 MIDTERM EXAM QUESTIONS AND ANSWERS ALL CORRECT
When C++ is working with an operator, it strives to convert the operands to the same type, this automatic conversion is known as _______ _________. - Answer-type coercion
When a variable is assigned a value that is too large or too sma...
COSC 1436 MIDTERM EXAM QUESTIONS
AND ANSWERS ALL CORRECT
When C++ is working with an operator, it strives to convert the operands to the same
type, this automatic conversion is known as _______ _________. - Answer-type
coercion
When a variable is assigned a value that is too large or too small in range for that
variable's data type, the variable _________ or __________. - Answer-
______ ________ allows you to perform manual data type conversion. - Answer-
Establishes a print field of n spaces. - Answer-setw(n)
Displays floating-point numbers in fixed point notation. - Answer-fixed
Causes a decimal point and trailing zeroes to be displayed, even if there is no fractional
part. - Answer-showpoint
Sets the precision of floating-point numbers. - Answer-setprecision(n)
Causes subsequent output to be left justified. - Answer-left
Causes subsequent output to be right justified. - Answer-Right
An expression using the greater-than, less-than, greater than-or-equal to, less-than-or-
equal-to, equal, or not-equal to operator is called a(n) __________ expression. -
Answer-relational
A relational expression is either __________ or __________. - Answer-true, false
The if statement regards an expression with the value 0 as __________. - Answer-false
The if statement regards an expression with a nonzero value as true. - Answer-true
For an if statement to conditionally execute a group of statements, the statements must
be enclosed in a set of - Answer-Braces
The trailing else in an if/else if statement has a similar purpose as the __________
section of a switch statement. - Answer-default
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 Scholarsstudyguide. 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.