CISP10

Ace your homework & exams now with Quizwiz!

The safest and clearest course of action is to assign the value ____ to accumulators before using them.

0

While making decisions is what makes computers seem intelligent, it is looping that makes computer programming both efficient and worthwhile.

TRUE

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

logical NOT

Most programming languages allow you to express "greater than or equal to" by typing ____.

>=

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

Boolean

A flowchart is a pictorial representation of a program, with the logical steps contained within boxes and connected with symbols.

FALSE

A program that is free of syntax errors is also free of logical errors.

FALSE

An annotation symbol is used for comments in pseudocode.

FALSE

If a data item is valid, this also means that it is correct.

FALSE

If you have a definite loop with defined starting and ending points and equal step increments, you probably want to use a while loop.

FALSE

Only a few decisions you make in a computer program involve evaluating a Boolean expression.

FALSE

The body of a loop can contain only a limited number of statements.

FALSE

The piece of hardware that performs processing tasks is the central data unit.

FALSE

The selection structure is also called an if-then structure.

FALSE

The three major programming steps are analyzing the system, designing the system, and maintaining the system.

FALSE

To calculate the total value of all properties when you read and print a real estate listing record, you must save each individual value in a variable and then add all the values of the variables.

FALSE

You can use a while loop to execute a body of statements continuously as long as some condition continues to be false.

FALSE

A loop for which the number of iterations is predetermined is called a definite loop or counted loop.

TRUE

A structured loop has one entry point and one exit point.

TRUE

A text editor is an example of a programming environment.

TRUE

Besides the AND and OR operators, most programming languages support a NOT operator, which reverses the meaning of a Boolean expression.

TRUE

In a flowchart, decision symbols are represented by diamonds.

TRUE

In an AND decision, more than one condition must be true for an action to take place.

TRUE

In pseudocode, when using an if statement, the action that should be taken when the Boolean expression is true should be indented.

TRUE

Loops are frequently used to validate data.

TRUE

The three relational operators: less than or equal to, greater than or equal to, and not equal to, are not mathematically necessary, but using them often makes decisions more convenient.

TRUE

The two major components of any computer system are its hardware and its software.

TRUE

The value of a Boolean expression can only be true or false.

TRUE

There is no benefit to changing a variable's value when it will never be used again during the current execution.

TRUE

When using the OR operator, an action is taken when at least one of the comparisons evaluates to true.

TRUE

When you combine AND and OR operators within the same statement, the AND operators take precedence.

TRUE

Writing a program includes planning the logic, coding the program, translating the program into machine language, and testing the program.

TRUE

You write computer instructions in a computer programming language such as Visual Basic, C#, C++, or Java.

TRUE

What is a valid reason for program maintenance?

The format of input data changes

One of the components of data modeling is identifying ____

attributes

Machine language is also called ____ language.

binary

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

cascading

Programmers must be careful to use the correct ____ in the statement that controls a loop.

comparison

It is always a mistake to fail to initialize a loop's ____ variable.

control

One appropriate action when invalid input data has been detected is to assign a(n) ____value and proceed.

default

Programmers use the term "____" to describe programs that are well designed and easy to understand and maintain.

elegant

In pseudocode, which statement is used to show the stopping point of a loop structure?

endwhile

When you write a loop, you must control the number of repetitions it performs; if you do not, you run the risk of creating a(n) ____ loop.

infinite

In all structured loops, the ____ must provide either entry to or exit from the repeating structure.

loop-controlling question

When using a flowchart, terminal symbols are represented by what geometric shape?

lozenge

What is the correct data type of an accumulator variable used to store real estate sales totals?

numeric

Many programming languages allow you to use ____ to force an expression to evaluate first.

parentheses

The instruction Myanswer = Mynumber*2 is an example of a(n) ____ operation.

processing

You control a loop's repetitions by using either a counter or a(n) ____ value.

sentinel

The programming statements you write in a programming language are known as the ____ code.

source

The rules that govern a programming language are called ____.

syntax

When you create nested loops, the maximum number you can have is ____.

there is no maximum

Loops are frequently used to ____ data; that is, to make sure it is meaningful and useful.

validate


Related study sets

science atmospheric pressure test

View Set

CH. 8: Axial and Appendicular Skeletons

View Set

Film Music 355 Final Study Guide

View Set

Assemblers, Compilers, Interpreters and features of IDEs

View Set

Intro to Visual Basic - Chapter 5

View Set