100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COSC 2 Exam Questions with All Correct Answers

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
28-08-2024
Written in
2024/2025

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

Show more Read less
Institution
COSC
Course
COSC









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
COSC
Course
COSC

Document information

Uploaded on
August 28, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Scholarsstudyguide nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
777
Member since
3 year
Number of followers
475
Documents
14923
Last sold
4 days ago
NURSING

Here you will find everything you need in nursing Assignments, EXAMS AND TESTBANKS. For students who want to see results twice as fast. I strive for my content to be of the highest quality. Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

3.9

163 reviews

5
87
4
21
3
25
2
6
1
24

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions