CSC105 Quizzes with Correct Answers
Updated 2024
Flowchart creators use what shapes to indicate alternative courses of action - Answer-
diamond
It is illegal to use a block to contain a single statement, T or F - Answer-False
When if-else statements are nested, each else is always paired with ...
You can use the conditional ___________________ operator within a Boolean expression to
determine whether two expressions are both true - Answer✔✔-AND
The conditional AND operator is written as _________ - Answer✔✔-&&
The expressions in each part of a compound, conditional Boolean expression are evaluated only
as much as necessary to determine whether the entire expression is true or false. This feature is
called _______________ evaluation - Answer✔✔-short-circuit
The conditional OR operator is written as _____ - Answer✔✔-| |
The non-conditional Boolean logical inclusive OR operator is written as __________ -
Answer✔✔-|
In a switch statement, the keyword _____________ starts the switch structure - Answer✔✔-
switch
In a switch statement, the keyword ____________ is followed by one of the possible values that
might equal the switch expression - Answer✔✔-case
The optional keyword _________ is used prior to any action that should occur if the test
expression does not match any case - Answer✔✔-default
Using a(n) _________ with a switch statement can often be convenient because it can make the
meaning of case label values much clearer - Answer✔✔-enumeration
In C#, the ______________ operator is used as an abbreviated version of the if-else statement. -
Answer✔✔-conditional
Page 2/9
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 Emillect. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.