Starting out with Java chapter 3

Ace your homework & exams now with Quizwiz!

A is less than B

How does the character 'A' compare to the character 'B'?

Decision Structure

The if statement is an example of a

True

The scope of a variable is limited to the block in which it is defined

braces {}

To create a bock of statements you enclose the statements in these

logical operators

&&, ll, and ! are

relational operators

>,<, and = = are

True

A conditionally executed statement should be indented one level from the if clause

True

All lines in a conditionally executed block should be indented one level

the closest previous if clause that doesn't already have its own else clause

An else clause always goes with

False

The = operator and the == operator perform the same operation

three

The conditional operator takes this many operands

the equals method

This determined whether two different String objects contain the same string

flag

This is a boolean variable that signals when some condition exist in the program

null statement

This is an empty statement that does nothing

nested if statement

This is an if statement that appears inside another if statement

default

This section of a switch statement is branched to if none of the case expressions match the switch expression

False

When an if statement is nested in the else clause of another statement, the only time the inner if statement is executed is when the boolean expression of the outer if statement is true

True

When an if statement is nested in the if clause of another statement, the only time the inner if statement is executed is when the boolean expression of the outer if statement is true

&&

When determining whether a number is inside a range, its best to use this operator

System.out.printf

You can use this method to display formatted output in a console window

boolean expression

this type of expression has a value of either true or false


Related study sets

Chapter 12 Disaster Recover and Incident Response (Review Questions & Answers)

View Set

ACG 4632 Chapter 1 and 12 homework

View Set

Ch. 40 Fluid, Electrolyte, and Acid-Base Balance

View Set

"Cahier d'un Retour au pays natal" par Aimé Césaire

View Set