ProQuiz3 IST 1154

Your page rank:

Total word count: 955
Pages: 3

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

Binary

The selection structure where the logic can flow only to one of the two alternatives, never to both is called an if-then-else structure or a(n) ____ selection.

all uppercase letters

Named constants conventionally are created using ____.

tested condition in the decision is false

The else clause of the decision is the part that executes only when the ____.

prompt

A ____ is a displayed statement that advises a user what to do.

Boolean expression

A ____ is one that represents only one of two states, usually expressed as true or false.

1 or 0

True/false evaluation is "natural" from a computer’s standpoint, because computer circuitry consists of two-state on-off switches, often represented by ____.

Operand

An ____ is a value on either side of an operator.

>=

The ____ operator evaluates as true when the left operand is greater than or equivalent to the right operand.

stacked if

A series of nested if statements is also called a ____ statement.

compound

Most programming languages allow you to ask two or more questions in a single comparison by testing a ____ condition.

truth tables

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

short-circuit

Each part of an expression that uses an AND operator is evaluated only as far as necessary to determine whether the entire expression is true or false, this feature is called ____ evaluation.

multiplication

Logically, the AND operation corresponds to ____.

&&

The conditional AND operator in Java, C++, and C# consists of ____.

range

A ____ of values is every value between low and high limits.

OR

Sometimes you want to take action when one or the other of two conditions is true, this type of compound condition is called a(n) ____ decision.

OR

Most programming languages allow you to ask two or more questions in a single comparison by using a logical ____ operator.

||

C#, C++, C, and Java use the symbol ____ to represent the logical OR.

exclamation point

In C++, Java, and C#, the ____ is the symbol used for the NOT operator.

Not

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

Range check

When you use a ____, you compare a variable to a series of values that mark the limiting ends of ranges.

range checks

When new programmers perform ____, they are prone to using logic that includes too many decisions, entailing more work than is necessary.

unreachable

You might say that the path that can never be traveled is a dead or ____ path,

precedence

When you combine AND and OR operators, the AND operators take ____, meaning their Boolean values are evaluated first.

parentheses

Many programming languages allow you to use ____ to correct your logic when using ANDs and ORs and force the OR expression to be evaluated first.

true

When several decisions are based on the value of the same variable, in many programming languages you can use a shortcut called the case structure.

false

In every programming language, OR has precedence over AND.

true

In every programming language, multiplication has precedence over addition in an arithmetic statement.

true

Most programming languages allow you to combine as many AND and OR operators in an expression as you need.

false

Beginning programmers sometimes justify their use of unnecessary questions as "just making really sure" but such caution is necessary when writing computer logic as a beginner.

true

A good trial lawyer seldom asks a question in court if the answer will be a surprise, with computer logic however, such questions are an inefficient waste of time.

false

You should always ask a question even if there is only one possible answer or outcome.

true

Anytime you use an if without an else, you are doing nothing when the question’s answer is false.

true

To perform a range check, make comparisons using either the lowest or highest value in each range of values.

false

Besides AND and OR, a limited number of languages support a NOT operator.

false

The NOT operator is binary.

true

If the programming language you use supports the OR operator, you still must realize that the question you place first is the question that will be asked first, and cases that pass the test of the first question will not proceed to the second question.

false

As with the AND operator, most programming languages require a complete Boolean expression on only one side of the OR.

false

In an OR decision, first ask the question that is more likely to be false.

true

As with an AND selection, when you use an OR selection, you can choose to ask either question first.

false

In most programming languages, the phrase itemsSold >= MIN_FOR_ BONUS AND <= MAX_FOR_BONUS is correct.

false

You are required to use the AND operator even when using nested if statements can achieve the same result.

true

Logically, either selection in an AND decision can come first.

false

The six relational comparison operators each require three operands.

true

Every decision you make in a computer program involves evaluating a Boolean expression.

true

Boolean (true/false) expressions are named for George Boole.

false

If input for a program comes from a storage device, such as a disk, a prompt might be needed.

true

Often, a request from a user for A and B means a request for A or B.

false

When you must satisfy two or more criteria to initiate an event in a program, you must make sure that the second decision is made entirely outside the first decision.

false

When you first analyze a solution, you might find it easier if you use a flowchart and pseudocode simultaneously to ensure that you have the correct design.

Share This
Flashcard

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more

NCLEX 300-NEURO

A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message
sending