100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CPSC - 120 Final Exam Questions And Answers | Guaranteed Pass!!! $12.49   Add to cart

Exam (elaborations)

CPSC - 120 Final Exam Questions And Answers | Guaranteed Pass!!!

 2 views  0 purchase
  • Course
  • CPSC 120
  • Institution
  • CPSC 120

CPSC - 120 Final Exam Questions And Answers | Guaranteed Pass!!!

Preview 2 out of 8  pages

  • November 7, 2024
  • 8
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CPSC 120
  • CPSC 120
avatar-seller
ElevatedExcellence
CPSC - 120 Final Exam Questions And
Answers | Guaranteed Pass!!!
instructions CORRECT ANSWERS A program is a set of _____________.

variable CORRECT ANSWERS A(n) _____________ is a named storage location.

Input CORRECT ANSWERS ___________ is information a program gathers from the
outside world.

Output CORRECT ANSWERS __________ is information a program sends to the
outside world.

ALU (Arithmetic Logic Unit), CU (Control Unit) CORRECT ANSWERS Internally, the
CPU consists of the _________________ and the ______________.

High level CORRECT ANSWERS _______ __________ languages are close to the
level of humans in terms of readability.

Low level CORRECT ANSWERS _______ __________ languages are close to the
level of the computer.

Syntax - error when compiling/creating a program

Logical - mistake in the programming such as instructions in the wrong order
CORRECT ANSWERS What is the difference between a syntax error and a logical
error?

The variable area is defined before it asks the user for inputs. CORRECT ANSWERS
The following pseudocode algorithm has an error. The program is supposed to ask the
user for the length and width of a rectangular room, and then display the room's area.
The program must multiply the width by the length in order to determine the area. Find
the error.

area = width x length
Display "What is the room's width?".
Input width.
Display "What is the room's length?"
Input length.
Display area.

iostream CORRECT ANSWERS To use cout statements you must include the
____________ file in your program.

, # CORRECT ANSWERS Preprocessor directives begin with a ____.

g = pow(a, 3) / (pow(b, 2) * pow(k, 4)); CORRECT ANSWERS Write the c++ expression
for the following algebraic expression.

g = (a^3)/(b^2 * k^4)

iostream and iomanip CORRECT ANSWERS What header files must be included in the
following program?

float amount = 89.7;
cout << fixed << showpoint << setprecision(1);
cout << setw(8) << amount << endl;

-No semicolon after int main()
-Missing semicolon after a = 3
-Missing semicolon after b = 4
-Missing semicolon after c = a + b
-Braces are backwards
-Brackets are wrong way in cout line
-Cout shouldn't be capital
-C shouldn't be capitalized in last line CORRECT ANSWERS The following program
contains syntax errors. Locate as many as you can.
//what is wrong with this program??
#include iostream
using namespace std;

int main();
}
int a, b, c \\ define 3 integers
a=3
b=4
c=a+b
Cout >> "The value of c is " >> C;
return 0;
{

cout << "Two mandolins like creatures in the\n\n\n";
cout << "dark\n\n\n";
cout << "Creating the agony of ecstasy.\n\n\n";
cout << " - George Barker"; CORRECT ANSWERS Modify the following program so that
it prints two blank lines between each line of text.

cout << "Two mandolins like creatures in the"; cout << "dark";
cout << "Creating the agony of ecstasy.";
cout << " - George Barker";

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 ElevatedExcellence. 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)

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