Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Exam 2 Programming logic and design, Comprehensive Questions and Answers

Document preview thumbnail
Preview 1 out of 3 pages

Exam 2 Programming logic and design, Comprehensive Questions and Answers

Content preview

Exam 2 Programming logic and design,
Comprehensive Questions and
Answers

Any decision can be made using combinations of just two types of comparisons:
equal and not equal. - ANSWER-False

____ 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

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

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

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

In C++, Java, and C#, the ____ is the symbol used for the NOT operator -
ANSWER-!=

You can use ___ for clarity and to override the default order of operations. -
ANSWER-parentheses

Most programming languages limit the number of AND and OR operators in an
expression. - ANSWER-False

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

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.

A structured program must contain a sequence, selection, and loop structure. -
ANSWER-True or (False)

Fill in the blank in the following pseudocode:
if someConditon is true then
do oneProcess
______
do theOtherProcess - ANSWER-else

In a truth table, the expression ___ is true. - ANSWER-true AND true

The following pseudocode is an example of a ____ structure.

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
lectknancy
3.8
(80)
Sold
327
Followers
27
Items
26139
Last sold
4 days ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions