CIS 111 Week4 True/False

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

T

A local variable's scope always ends at the closing brace of the block of code in which it is declared.

T

An important style rule you should adopt for writing if statements is to write the conditionally executed statement on the line after the if statement.

F (write on next line)

An important style rule you should follow when writing if statements is to line up the conditionally executed statement with the if statement.

T

Because the && operator performs short-circuit evaluation, your boolean expression will usually execute faster if the subexpression that is most likely false is on the left of the && operator.

T

Because the || operator performs short-circuit evaluation, your boolean expression will generally be evaluated faster if the subexpression that is most likely to be true is on the left.

T

The if/else statement will execute one group of statements if its boolean expression is true or another group if its boolean expression is false.

T

In a switch statement, each of the case values must be unique.

F (only need one copy of code)

In a switch statement, if two different values for the CaseExpression would result in the same code being executed, you must have two copies of the code, one after each CaseExpression.

F (may be multiple paths)

Programs never need more than one path of execution.

T

Unicode is an international encoding system that is extensive enough to represent ALL the characters of ALL the world's alphabets.

F (does test for case of character)

When testing for character values, the switch statement does not test for the case of the character.

F (are considered)

When two Strings are compared using the compareTo method, the cases of the two strings are not considered.


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

Respiration Overview Quick Check

View Set

Nursing Care of Patients at Home - Chapter 16

View Set

compounds, chemical formulas, and covalent bonds les 2

View Set

Management of Anxiety Disorders EAQ

View Set

Data Privacy Module 10 Textbook Study Questions

View Set

Business Law Chapter 14 Test 4 Part 1

View Set

Chapter 2 Review Questions - US History

View Set

Section 10 and 11 Practice Quiz Questions

View Set