100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COP 3014 Midterm 1 Question and answers 100% correct 2024 $13.99   Add to cart

Exam (elaborations)

COP 3014 Midterm 1 Question and answers 100% correct 2024

 5 views  0 purchase
  • Course
  • COP
  • Institution
  • COP

COP 3014 Midterm 1 Question and answers 100% correct 2024 COP 3014 Midterm 1 Statement - correct answer smallest complete executable unit of a program types of statements - correct answer -Declaration statement -Execution statement -Compound statement: any set of statements enclosed in...

[Show more]

Preview 2 out of 7  pages

  • September 6, 2024
  • 7
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COP
  • COP
avatar-seller
flyhigher329
COP 3014 Midterm 1
Statement - correct answer ✔smallest complete executable unit of a program


types of statements - correct answer ✔-Declaration statement
-Execution statement
-Compound statement: any set of statements enclosed in set braces { } (often
called a block)
-Simple C++ statments end with a semi-colon. (A block does not typically
need a semi-colon after it, except in special circumstances).


bool - correct answer ✔has two possible values, true or false


integer types - correct answer ✔-char
-short
-int
-long
-The integer types have regular and unsigned versions


char - correct answer ✔-1 byte on most systems
-Typically used for representing characters
-Stored with an integer code underneath (ASCII on most computers today)


short - correct answer ✔usually at least 2 bytes


int - correct answer ✔4 bytes on most systems

, long - correct answer ✔usually 4 or more bytes


floating point types (def) - correct answer ✔for storage of decimal numbers
(i.e. a fractional part after the decimal)


types of floating point - correct answer ✔-float
-double
-long double


Identifiers - correct answer ✔the names for things (variables, functions, etc)
in the language.


To declare a variable - correct answer ✔is to tell the compiler it exists, and to
reserve memory for it


To initialize a variable - correct answer ✔is to load a value into it for the first
time


A variable can be declared to be - correct answer ✔constant


constant - correct answer ✔means a variable cannot change once it's
declared and initialized


If an integer literal is written with a leading 0 - correct answer ✔it's
interpreted as an octal value (base 8).

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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