100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSC 101 Final Review Questions and Answers Updated 2024 $10.49   Add to cart

Exam (elaborations)

CSC 101 Final Review Questions and Answers Updated 2024

 1 view  0 purchase
  • Course
  • 2024/2025
  • Institution
  • 2024/2025

CSC 101 Final Review Questions and Answers Updated 2024 What is the output of the following loop? count = 5; cout << 'St'; do { cout << 'o'; count--; } while (count <= 5); - Answer-This is an infinite loop. ____ loops are called post-test loops. - Answer-do...while Which ...

[Show more]

Preview 3 out of 22  pages

  • October 16, 2024
  • 22
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • 2024/2025
  • 2024/2025
avatar-seller
Emillect
EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024




CSC 101 Final Review Questions and
Answers Updated 2024

What is the output of the following loop?




count = 5;


cout << 'St';


do


{


cout << 'o';


count--;


}


while (count <= 5); - Answer✔✔-This is an infinite loop.


____ loops are called post-test loops. - Answer✔✔-do...while


Which of the following loops does not have an entry condition? - Answer✔✔-do...while loop


The ____ statement can be used to eliminate the use of certain bool variables in a loop. -

Answer✔✔-break

Page 1/22

,EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024


What executes immediately after a continue statement in a while and do-while loop? -

Answer✔✔-loop-continue test


When a continue statement is executed in a ____, the update statement always executes. -

Answer✔✔-for loop


d.


do...while loop




The output of the statement:




cout << tolower('$') << endl;




is ____. - Answer✔✔-'$'


Assume the following.




static_cast<int>('a') = 97


static_cast<int>('A') = 65




Page 2/22

, EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024


The output of the statement:




cout << static_cast<int>(tolower('B')) << endl; is ____. - Answer✔✔-98


The output of the statement: cout << pow(3.0, 2.0) + 5 << endl; is ____. - Answer✔✔-14.0


Given the following function prototype: int test(float, char); which of the following statements is

valid? - Answer✔✔-int u = test(5.0, '*');


A variable listed in a function call is known as a(n) ____ parameter. A variable list in a header is

known as a(n) ____ parameter. - Answer✔✔-actual; formal


Given the following function:




int next(int x)


{


return (x + 1);


}




what is the output of the following statement?




cout << next(next(5)) << endl; - Answer✔✔-7
Page 3/22

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 Emillect. 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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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