Exam 6: Control Statements: Part 2

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following statements about the break statement is false

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

C

It's possible to specify that a constant is of type decimal by appending the letter m to the constant.

Free
(True/False)
4.8/5
(33)
Correct Answer:
Verified

True

Which statement below is false

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

B

Which of the following is equivalent to this code segment Segment: int total = 0; For (int i = 0;i < = 20;i += 2) { Total += i; }

(Multiple Choice)
4.8/5
(36)

Which of the following statements is true

(Multiple Choice)
4.9/5
(44)

Only one control variable may be initialized,incremented or decremented in a for statement header.

(True/False)
4.9/5
(30)

Control-statement stacking is the process of:

(Multiple Choice)
4.8/5
(32)

Only the statements for one case can be executed in any one execution of a switch statement.

(True/False)
4.8/5
(30)

Braces are normally included with do…while statements even when unnec essary to avoid confusion with the while statement.

(True/False)
4.9/5
(37)

A control variable that's declared in a for statement header is not accessible outside of the body of the for statement.

(True/False)
5.0/5
(42)

The initialization and increment expressions in a for statement can be comma-separated lists that enable you to use ________.

(Multiple Choice)
5.0/5
(33)

Infinite loops are caused when the loop-continuation condition in a while,for or do…while statement never becomes true.

(True/False)
4.8/5
(36)

Suppose variable gender is MALE and age equals 60,how is the expression (gender == FEMALE)&& (age >= 65) Evaluated

(Multiple Choice)
4.8/5
(33)

The C# operator ^ can be used for exponentiation.

(True/False)
4.8/5
(35)

Counting loops should be controlled with whatever data type most closely reflects the operations taking place,whether that is an int,float or double.

(True/False)
4.8/5
(35)

for statements cannot be represented as while statements.

(True/False)
4.7/5
(27)

Which of the following statements about the continue statement is true

(Multiple Choice)
4.8/5
(28)

Many classes provide methods to perform common tasks that do not require specific objects-they must be called using a class name.Such methods are called ________ methods.

(Multiple Choice)
4.9/5
(40)

The for repetition statement handles the details of counter-controlled repeti tion.

(True/False)
4.9/5
(31)

Which of the following is not a control statement in C#

(Multiple Choice)
4.8/5
(26)
Showing 1 - 20 of 66
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)