100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 Exam 1 Study Guide Solutions $12.49   Add to cart

Exam (elaborations)

COSC 1436 Exam 1 Study Guide Solutions

 0 view  0 purchase
  • Course
  • Cosc
  • Institution
  • Cosc

COSC 1436 Exam 1 Study Guide Solutions False - ANSWER-(T/F) In C++, reserved words are the same as predefined identifiers. True - ANSWER-(T/F) The maximum number of significant digits in values of the double type is 15. False - ANSWER-(T/F) A mixed arithmetic expression contains all operands of ...

[Show more]

Preview 2 out of 13  pages

  • November 3, 2024
  • 13
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Cosc
  • Cosc
avatar-seller
KaylinHoffman
Copyright © KAYLIN 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH NOVEMBER, 2024




COSC 1436 Exam 1 Study Guide Solutions


False - ANSWER✔✔-(T/F) In C++, reserved words are the same as predefined identifiers.


True - ANSWER✔✔-(T/F) The maximum number of significant digits in values of the double type is 15.


False - ANSWER✔✔-(T/F) A mixed arithmetic expression contains all operands of the same type.


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

line.


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

the statement sum = sum + 7;


C - ANSWER✔✔-Which of the following is a reserved word in C++?


A) Character


B) CHAR


C) char


D) character


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



Copyright © Stuvia International BV 2010-2024 Page 1/13

, Copyright © KAYLIN 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH NOVEMBER, 2024




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


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

____.


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


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


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


16 - ANSWER✔✔-The length of the string "computer science" is ____


one = 10.5, two = 30.6 - 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 - 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; - ANSWER✔✔-Suppose that alpha and beta are int variables. The statement alpha = --beta;

is equivalent to the statement(s) ____.


alpha = beta;


beta = beta + 1; - ANSWER✔✔-Suppose that alpha and beta are int variables. The statement alpha =

beta++; is equivalent to the statement(s) ____.
Copyright © Stuvia International BV 2010-2024 Page 2/13

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 KaylinHoffman. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 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
$12.49
  • (0)
  Add to cart