CSI 1430 Chapter 5

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

A __________ is a special value that marks the end of a list of values.

sentinel

The statements in the body of a while loop will never be executed if

the test condition is initially false

A for statement contains three expressions: initialization, test, and

update

You may declare a __________ in the initialization expression of a for loop.

variable

A while loop is somewhat limited because the counter can only be increased by one each time through the loop.

False

To decrement a number means to increase its value by one.

False

When a loop is nested inside another loop, the outer loop goes through all its iterations for each iteration of the inner loop.

False

A do-while loop requires a semicolon at the end of the loop after the test expression.

True

If you want to stop a loop before it goes through all its iterations, the break statement may be used.

True

The block of code that follows a while condition can contain an unlimited number of statements, provided they are enclosed in braces.

True

For data validation, it is best to use

a while loop

The ++ operator

adds one to the value of its operand is a unary operator can operate in prefix or postfix mode

To ___________ a value means to increase it by one.

increment

In a for statement, the ________ expression is executed only once.

initialization

The -- operator

is a unary operator

marks the end of a list of values

is a unary operator

A sentinel is a special value that

marks the end of a list of values

The do-while loop is considered a(n) _________ loop.

posttest


संबंधित स्टडी सेट्स

Effects of Aging on the Nervous System

View Set

Human growth and development exam 2

View Set

Chapter 17: Lipids and their functions in biochemical systems

View Set

Ch 13 Moral Development, Values, and Religion

View Set

Chapter 2 - Systems Engineering Overview

View Set

Medical Terminology Chapter 4 Functions of the Skin

View Set