100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Programming Fundamentals 1 - Final Exam Review With Complete Solutions Latest Update $14.49   Add to cart

Exam (elaborations)

Programming Fundamentals 1 - Final Exam Review With Complete Solutions Latest Update

 2 views  0 purchase
  • Course
  • Institution

Programming Fundamentals 1 - Final Exam Review With Complete Solutions Latest Update

Preview 2 out of 7  pages

  • July 22, 2024
  • 7
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Programming Fundamentals 1 - Final Exam Review
With Complete Solutions Latest Update

What data type is not required for a switch statement? - correct answers char



Suppose x is 20 and y is 12. What is the value of the expression? - correct answers false



C++ programs typically go through six phases in order. - correct answers edit, preprocess, compile, link, load,
and execute



Which expressions will evaluate to 2.5? - correct answers static_cast<double>(5)/2

5 / static_cast<double>(2)



What is the value of cube after the following code executes?



double cube, side;

side = 5.0;

cube = pow(side, 3.0); - correct answers 125.0



This stream manipulator can be used to establish a field width for the value immediately following it. - correct
answers setw



Which statement is equivalent to the following?



number = number * 2; - correct answers number *=2;



This operator is used to test for equality. - correct answers ==

, Syntax is: - correct answers Rules that must be followed when writing a program



A runtime error is usually the result of: - correct answers A logical error



To display the output on the next line, you can use this escape sequence in the cout statement. - correct
answers \n



What is the result of the following expression?



- 2 + 2 * 15 - correct answers 33



A block of code is enclosed in a set of: - correct answers braces{}



Which of the following statements will pause the screen until the [Enter] key is pressed? - correct answers
cin.get()



Which of the following statements will allow the user to enter three values to be stored in variables length,
width, and height, in that order? - correct answers cin.get(length, width, height);



Suppose that x = 55.68, y = 476.859, and z = 23.8216. What is the output of the following statements?



cout << fixed << showpoint:

cout << setprecision(3);

cout << x << ' ' << y << ' ' << setprecision(2) << z << endl; - correct answers 55.680 476.859 23.82



_______ reads a line of input, including leading and embedded spaces, and stores it in a string object. - correct
answers getline

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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