100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 2 Exam Questions with All Correct Answers $12.49   Add to cart

Exam (elaborations)

COSC 2 Exam Questions with All Correct Answers

 8 views  0 purchase
  • Course
  • COSC
  • Institution
  • COSC

COSC 2 Exam Questions with All Correct Answers Most languages allow you to use a variation of the decision structure called the ____ structure when you must nest a series of decisions about a single variable. - Answer-case For maximum efficiency, a good rule of thumb in an AND decision is to __...

[Show more]

Preview 2 out of 6  pages

  • August 28, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC
  • COSC
avatar-seller
Scholarsstudyguide
COSC 2 Exam Questions with All
Correct Answers
Most languages allow you to use a variation of the decision structure called the ____
structure when you must nest a series of decisions about a single variable. - Answer-
case

For maximum efficiency, a good rule of thumb in an AND decision is to ____. - Answer-
first ask the question that is more likely to be false

Most programming languages allow you to ask two or more questions in a single
comparison by using a(n) ____ operator that joins decisions in a single statement. -
Answer-and

The conditional AND operator in Java, C++, and C# is ____. - Answer-&&

____ are diagrams used in mathematics and logic to help describe the truth of an entire
expression based on the truth of its parts. - Answer-truth tables

When creating a truth table, you must determine how many possible Boolean value
combinations exist for the conditions. If there are two conditions, ____ combinations will
exist. - Answer-four

In a truth table, the expression ____ is true. - Answer-true and true

____ evaluation is when each part of an expression that uses an operator is evaluated
only as far as necessary to determine whether the entire expression is true or false. -
Answer-short circuit

For maximum efficiency, a good rule of thumb in an OR decision is to ____. - Answer-
first ask the question that is more likely to be true

When you use the logical ____ operator, only one of the listed conditions must be met
for the resulting action to take place. - Answer-or

In a truth table, the expression ____ is false. - Answer-false or false

C#, C++, C, and Java use the symbol ____ as the logical OR operator. - Answer-||

You use the logical ____ operator to reverse the meaning of a Boolean expression. -
Answer-not

, You can perform a ____ by making comparisons using either the lowest or highest
value in a range of values. - Answer-range check


Programs that use _____ code logic are unstructured programs that do not follow the
rules of structured logic. - Answer-spaghettia

With a(n) ____, you perform an action or task, and then you perform the next action, in
order. - Answer-sequence structure

The following pseudocode is an example of a ____ structure.
get firstNumber
get secondNumber
add firstNumber and secondNumber
print result - Answer-sequence

Pseudocode uses the end-structure statement ____ to clearly show where the structure
ends. - Answer-endif

The following pseudocode is an example of a ____ structure.
if firstNumber is bigger than secondNumber then
print firstNumber
else
print secondNumber
endif - Answer-decision

Fill in the blank in the following pseudocode:
if someCondition is true then
do oneProcess
____
do theOtherProcess
endif - Answer-else

if-else examples can also be called ____ because they contain the action taken when
the tested condition is true and the action taken when it is false. - Answer-dual-
alternative selections

The action or actions that occur within a loop are known as a(n) ____. - Answer-loop
body

You may hear programmers refer to looping as ____. - Answer-iteration

The following pseudocode is an example of a ____ structure.
get number
while number is positive
add to sum
get number

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

79271 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