Exam 5: Control Statements: Part 1

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

Many algorithms can be divided into an initialization phase,a processing phase and a termination phase.

(True/False)
4.7/5
(34)

A selection statement chooses among alternative courses of action.

(True/False)
4.9/5
(36)

Which of the following conditions would cause a while statement to stop executing

(Multiple Choice)
4.8/5
(41)

Which of the following generates a syntax error

(Multiple Choice)
4.7/5
(32)

Counter-controlled repetition is also known as:

(Multiple Choice)
4.8/5
(34)

In an activity diagram,the merge symbol has the same shape as what other symbol

(Multiple Choice)
4.9/5
(38)

Pseudocode must be written in an editor capable of understanding it and the language to which it pertains.

(True/False)
4.8/5
(28)

Top-down,stepwise refinement helps lead to well-structured algorithms.

(True/False)
4.9/5
(38)

Program control is best defined as:

(Multiple Choice)
4.9/5
(25)

Which statement is true

(Multiple Choice)
4.9/5
(32)

You can create your own simple types.

(True/False)
4.7/5
(40)

Unary operators associate from right to left.

(True/False)
4.9/5
(34)

What is typically the most difficult part of solving a problem on a computer

(Multiple Choice)
4.7/5
(38)

The body of an if statement executes only if the condition is evaluated as true.

(True/False)
5.0/5
(35)

The lines in an activity diagram are a graphical representation of an algorithm.

(True/False)
5.0/5
(45)

A while statement can cause logic errors where the body never stops exe Cuting.This is known as a(n)      

(Multiple Choice)
4.8/5
(36)

Which of the following statements about the conditional operator ( :)is false

(Multiple Choice)
4.7/5
(35)

a -= 3 is equivalent to the expression a - a = 3.

(True/False)
4.9/5
(39)

In an expression containing values of the types int and double,the ________ values are ________ to ________ values for use in the expression.

(Multiple Choice)
4.8/5
(30)

A decision symbol in an activity diagram takes the shape of a ________.

(Multiple Choice)
4.7/5
(34)
Showing 41 - 60 of 94
close modal

Filters

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