• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 15 pages
Exam (elaborations)

Programming Logic & Design Module 3 Exam Questions with Complete Answers

Document preview thumbnail
Preview 2 out of 15 pages

Programming Logic & Design Module 3 Exam Questions with Complete Answers

Content preview

Programming Logic & Design Module 3
Exam Questions with Complete
Answers

It is possible to write a complete program using only a decision structure. -
ANSWER-False

A nested decision structure can be used to test more than one condition. -
ANSWER-True

Pseudocode could be logically incorrect if not properly indented. - ANSWER-False

In an expression with an OR operator, it does not matter which sub expression is
true for the compound expression to be true. - ANSWER-True

A nested decision structure can achieve the same logic as a case structure. -
ANSWER-True

The first line of the case structure starts with the word CASE followed by the test
expression. - ANSWER-False

The If-Then-Else statement can be used to simplify a complex nested decision
structure. - ANSWER-True

An If statement will produce unpredictable results if the programmer does not use
proper indentations in pseudocode. - ANSWER-False

The If-Then-Else statement should be used to write a single alternative decision
structure. - ANSWER-False

The short-circuit evaluation is performed with expressions containing any logical
operators. - ANSWER-False

Although the sequence structure is heavily used in programming, it cannot handle
every type of task. - ANSWER-True

Decision structures are also known as selection structures. - ANSWER-True

When a program performs actions only under certain conditions, it is using a
_________ structure. - ANSWER-Decision

The _________ symbol is used to represent a selection structure in flowcharting. -
ANSWER-Diamond

, The _________________ decision structure provides only one alternative path of
execution. - ANSWER-Single alternative

A ____________ expression evaluates as either true or false. - ANSWER-Boolean

The ____________ operator is used to determine whether the operands are exactly
the same as each other. - ANSWER-==

In a _________________ decision structure, one path is taken if a condition is true
and the other path is taken if the condition is false. - ANSWER-Dual alternative

In an If-Then-Else statement, the Else clause marks the beginning of the statements
to be executed when the Boolean expression is _______________. - ANSWER-
False

The value of the ____________ is compared with the values that follow each of the
Case statements when a Select Case statement executes. - ANSWER-Test
expression

The __________ operator requires both sub expressions to be true for the
compound expression to be true. - ANSWER-AND

The expression with an AND operator ___________ when the expression on its left
is false and so it does not evaluate the expression on its right. - ANSWER-Short
circuits

The _____ operator is best to determine whether a number is outside a range. -
ANSWER-OR

Boolean variables are commonly used as __________, which indicate whether a
specific condition exits. - ANSWER-Flags

The ____________ statement is commonly used in programming languages for case
structure. - ANSWER-Switch

The statement(s) that immediately follow the __________ statement is executed if
the test expression in the case structure does not match any case values. -
ANSWER-Default

The computer uses the ________ codes to accomplish string comparison. -
ANSWER-ASCII

____________ expressions are named in honor of mathematician George Boole. -
ANSWER-Boolean

In languages such as Java, Python, C, and C++ the ____________ operator
determines whether a variable is equal to another variable. - ANSWER-==

Some languages, such as Visual Basic, use ____________ as the not equal to
operator. - ANSWER-<>

Document information

Uploaded on
March 22, 2025
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$16.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
(82)
Sold
342
Followers
27
Items
26160
Last sold
3 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