C++ chapter 4

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

A program will "fall through" a case section if it is missing the _____________ statement.

break

An expression using the conditional operator is called a(n) _______________ expression.

conditional

For an if statement to conditionally execute a group of statements, the statements must be enclosed in a set of ___________ .

curly braces {}

The trailing else in an if/else if statement has a similar purpose as the __________ section of a switch statement.

default

All lines in a block should be indented one level.

false

It's safe to assume that all uninitialized variables start with 0 as their value.

false

The if statement regards an expression with the value of 0 as __________.

false

You can use the relational operators to compare string objects.

false

The _____________ logical operator works best when testing a number to determine if it is within a range.

&&

You use the _______________ operator to determine whether one string object is greater than another string object.

>

x != y is the same as ( x > y || x < y )

false

A relational expression is either ___________ or __________ .

false or true

The if/eslse if statement is actually a form of the ___________ if statement.

nested

An expression using the greater-than, less-than, greater-than-equal-to, less-than-equal-to, equal, or not-equal operator is called a(n) _________________ expression

relational

Assume x = 5, y = 6, and z = 8. What is the value of the expression? 2 != y && z != 4

true

Assume x = 5, y = 6, and z = 8. What is the value of the expression? x == 5 || y > 3

true

The if statement regards an expression with a nonzero value as _____________.

true


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

Intro to Valuation: The Time Value of Money

View Set

NUR 1068 Health Assessment Ch 14- Assessing skin, hair, and nails

View Set

Lab Practicum #2 Question Set - 7. Oxidase Test

View Set

Alabama Insurance License- Alabama Insurance Law Common to All Lines

View Set