100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 Exam 1 UPDATED Questions and CORRECT Answers $10.99   Add to cart

Exam (elaborations)

COSC 1436 Exam 1 UPDATED Questions and CORRECT Answers

 3 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...

[Show more]

Preview 2 out of 9  pages

  • October 28, 2024
  • 9
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436
  • COSC 1436
avatar-seller
MGRADES
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 mixed arithmetic expression contains all operands
of the same type.


False - CORRECT ANSWER- ✔✔(T/F) The escape sequence \r moves the insertion point to
the beginning of the next line.


True. - CORRECT ANSWER- ✔✔(T/F) Suppose that sum is an int variable. The statement
sum += 7; is equivalent to the statement sum = sum + 7;


C - CORRECT ANSWER- ✔✔Which of the following is a reserved word in C++?
A) Character
B) CHAR
C) char
D) character


'A' - CORRECT ANSWER- ✔✔____ is a valid char value.



double - CORRECT ANSWER- ✔✔An example of a floating point data type is ____.



3 - CORRECT ANSWER- ✔✔The value of the expression 33/10, assuming both values are
integral data types, is ____.


3 - CORRECT ANSWER- ✔✔The value of the expression 17 % 7 is ____.

, 9 - CORRECT ANSWER- ✔✔The expression static_cast<int>(9.9) evaluates to ____.



13 - CORRECT ANSWER- ✔✔The expression static_cast<int>(6.9) + static_cast<int>(7.9)
evaluates to ____.


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

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart