FINAL- COSC 1436 UPDATED ACTUAL Questions and CORRECT Answers
3 views 0 purchase
Course
COSC 1436
Institution
COSC 1436
FINAL- COSC 1436 UPDATED ACTUAL
Questions and CORRECT Answers
The term GB refers to a gigabyte which is approximately a _____ bytes. - CORRECT
ANSWER- billion
An undeclared identifier is an example of a: - CORRECT ANSWER- syntax error
An instruction to the computer to subtract two numbers wh...
FINAL- COSC 1436 UPDATED ACTUAL
Questions and CORRECT Answers
The term GB refers to a gigabyte which is approximately a _____ bytes. - CORRECT
ANSWER✔✔- billion
An undeclared identifier is an example of a: - CORRECT ANSWER✔✔- syntax error
An instruction to the computer to subtract two numbers when you meant to multiply them is
an example of a - CORRECT ANSWER✔✔- logic error
Which of the following is a preprocessor directive? - CORRECT ANSWER✔✔- #include
<iostream>
The program used to translate a source code program to a machine language object module
is: - CORRECT ANSWER✔✔- compiler
An instruction to divide by zero causes a(n): - CORRECT ANSWER✔✔- run time or
execution error
The ____ rules of a programming language tell you which statements are grammatically
correct or legal for the programming language. - CORRECT ANSWER✔✔- syntax
When you build a program, the linker - CORRECT ANSWER✔✔- assembles all the
functions, yours and the system's, into a final executable program
Which of the following is the correct order of the steps required to execute program written in
C++? - CORRECT ANSWER✔✔- preprocess, compile, link, load
A set of well-defined steps for performing a task or solving a problem is known as a(n): -
CORRECT ANSWER✔✔- algorithm
, When the final value of an expression is assigned to a variable it will be converted to: -
CORRECT ANSWER✔✔- The data type of the variable
Given the following named constant declaration/definition:
const double INT_RATE = 0.055;
which of the following are NOT a valid use of INT_RATE? - CORRECT ANSWER✔✔-
INT_RATE++;
INT_RATE = 0.75;
cin >> INT_RATE;
Given the following integer variable values, a = 1; b = 2; c = 5;
what is the value of the expression shown below?
c + static_cast<double>(a / b) / 2 - CORRECT ANSWER✔✔- 2.75
On our systems which of the following statements about C++ integers are TRUE? -
CORRECT ANSWER✔✔- -The range of values for an int is approximately -2.1 billion to
+2.1 billion.
-The range of values for an unsigned short is 0 to 65,535.
-A maximum unsigned int value is approximately twice that of the maximum signed int
value.
On our systems which of the following statements about C++ floating-point numbers are
TRUE? - CORRECT ANSWER✔✔- -The amount of storage required to store a floating-
point value of type double is 8 bytes.
-The range of values that may be stored in a floating-point variable of type double is approx.
+-10+-308.
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 MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.