100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
cs 161 Exam Study Questions with Correct Verified Answer $13.24   Add to cart

Exam (elaborations)

cs 161 Exam Study Questions with Correct Verified Answer

 1 view  0 purchase
  • Course
  • Cs 161
  • Institution
  • Cs 161

cs 161 Exam Study Questions with Correct Verified Answer

Preview 3 out of 24  pages

  • September 7, 2024
  • 24
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Cs 161
  • Cs 161
avatar-seller
KenAli
cs 161 Exam Study Questions with Correct
Verified Answers

The ________ statement causes a loop to terminate early.


A) break
B) stop
C) quit
D) terminate
E) continue - ANSWER A


If nothing within a while loop ever causes the condition to become false, a(n)
________ may occur.


A) compiler error
B) system crash
C) null value
D) unexpected exit
E) infinite loop - ANSWER E


The ideal type of loop to use if you want a user to enter exactly 20 values is a(n)

________ loop.


A) for

,B) nested
C) do-while
D) infinite
E) sentinel controlled - ANSWER A


Three primary activities of a typical program are _____.


A) input, processing, and output.
B) syntax, logic, and error handling.
C) keywords, operators, and punctuation.
D) program, design, write - ANSWER A


Creating a program requires many steps. Three of these are ____.


A) input, processing, and output.
B) syntax, logic, and error handling.
C) keywords, operators, and punctuation.
D) program design, writing source code, and testing.
E) none of the above. - ANSWER D


The programmer usually writes source code for a computer using ____.


A) a preprocessor.
B) a debugger.
C) a compiler.
D) a linker.
E) none of the above. - ANSWER E

, Characters or symbols that perform operations on one or more operands are ____.



A) operators.
B) op codes.
C) program ops.
D) syntax.
E) none of the above. - ANSWER A


C++ is an example of a ________ programming language.


A) high-level
B) low-level
C) non-structured
D) binary
E) mid-level - ANSWER A


If a while loop has no braces around the body of the loop ______.


A) the loop body ends when the endwhile statement is encountered.
B) there is no loop body.
C) the loop body contains just one statement.
D) the program will not compile.
E) the program will compile, but not run - ANSWER C


If s1 and s2 are string objects, s1 == s2 is true when _____

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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