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

Exam (elaborations)

COSC 1436 Final UPDATED ACTUAL Questions and CORRECT Answers

 3 views  0 purchase
  • Course
  • COSC 1436
  • Institution
  • COSC 1436

COSC 1436 Final UPDATED ACTUAL Questions and CORRECT Answers The CPU has 2 main parts: - CORRECT ANSWER- The control unit and the arithmetic unit A byte has how many bits? - CORRECT ANSWER- 8 bits Programming Syntax - CORRECT ANSWER- The rules of grammar used by a language Algorithm - CORRE...

[Show more]

Preview 3 out of 28  pages

  • October 28, 2024
  • 28
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436
  • COSC 1436
avatar-seller
MGRADES
COSC 1436 Final UPDATED ACTUAL
Questions and CORRECT Answers
The CPU has 2 main parts: - CORRECT ANSWER✔✔- The control unit and the arithmetic
unit


A byte has how many bits? - CORRECT ANSWER✔✔- 8 bits



Programming Syntax - CORRECT ANSWER✔✔- The rules of grammar used by a language



Algorithm - CORRECT ANSWER✔✔- A set of well defined steps for performing a task or
solving a problem


System Software - CORRECT ANSWER✔✔- The programs that manage the computer
hardware and the programs that run on them


In a C++ program two slash marks (//) indicate - CORRECT ANSWER✔✔- the beginning of
a comment


Literal data signs - CORRECT ANSWER✔✔- Values that do not change while the program
is running


Variable definitions - CORRECT ANSWER✔✔- Every variable needs a definition


Numeric data points in C++ can be classified into two general categories - CORRECT
ANSWER✔✔- integer and floating point



What symbol is used o begin a pre-processor directive - CORRECT ANSWER✔✔- # (pound
sign)


Directives DO NOT have to end with what symbol? - CORRECT ANSWER✔✔- ; (semi-
colon)

,All variables must be - CORRECT ANSWER✔✔- operationally defined



The first character of an identifier must be what? - CORRECT ANSWER✔✔- an alphabetic
character or an underscore


After the first character you may use what characters? - CORRECT ANSWER✔✔-
alphabetic characters, number, and underscore characters


Which of the following definitions are syntactically correct? - CORRECT ANSWER✔✔- int
MyVar; & int myVar


Unsigned integers always treat the sign bit as what part of the number? - CORRECT
ANSWER✔✔- Magnitude



what form is this constant: 0x75A - CORRECT ANSWER✔✔- Base 8



what character does char c = "a"; compile into - CORRECT ANSWER✔✔- char c



Classic C-strings end with what null terminator - CORRECT ANSWER✔✔- \0



what does a floating point number type default to - CORRECT ANSWER✔✔- signed



what are true and false represented by in C++ - CORRECT ANSWER✔✔- 0 for false values
and any non-zero value for true values


In C++ the following relationship regarding type size is always true for all platforms -
CORRECT ANSWER✔✔- sizeof(short) <= sizeof(int) <= sizeof(long)



The following statement displays: cout << 1 % 4 - CORRECT ANSWER✔✔- it will produce
1

, What program causes the program to wait until information is typed at the keyboard and the
enter key is pressed - CORRECT ANSWER✔✔- Cin object



What operator always follows the Cin object? - CORRECT ANSWER✔✔- >>



What operator always follows the Cout object? - CORRECT ANSWER✔✔- <<



What operator is used for concatenation? - CORRECT ANSWER✔✔- + Plus sign


what can be used to override the rules of operator precedence in a mathematical expression? -
CORRECT ANSWER✔✔- ( ) Parenthesis


In the following C++ statement, what will be executed first according to the order of
precedence?


result = 6 - 3 * 2 + 7 - ; - CORRECT ANSWER✔✔- 3 * 2


This I/O manipulator in a cout stream is used to establish a field width for the value
immediately following it - CORRECT ANSWER✔✔- setw() (set width)


What is the value of number after the following statements execute?


int number = 10;


number += 5;


number -= 2;


number *= 3; - CORRECT ANSWER✔✔- 39


Which statement is equivalent to the following?

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 $11.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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