Exam 9: Control I - Expressions and Statements

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

A sentinel-based loop is often used in situations where a series of input values must be processed.

(True/False)
4.9/5
(40)

In C++,exception handlers are associated with ____ blocks.

(Multiple Choice)
4.7/5
(46)

Syntactic sugar is a language construct that is completely expressible in terms of other constructs.

(True/False)
5.0/5
(35)

Ada uses a(n)____ for its if-statements.

(Multiple Choice)
4.7/5
(36)

In C,the ____ statement skips the remainder of the loop body and resumes execution with the next evaluation of the control expression.

(Multiple Choice)
4.9/5
(35)

A general form for a loop construct is given by Dijkstra's structure called the ____.

(Multiple Choice)
4.8/5
(31)

Synchronous errors occur in direct reaction to program execution.

(True/False)
4.8/5
(31)

In the guarded if statement,the ____ are the Boolean expressions.

(Multiple Choice)
4.7/5
(34)

Operators can be written in infix,postfix,or prefix notation.

(True/False)
4.8/5
(44)

The do statement ensures that the code of a loop is executed at least once.

(True/False)
4.8/5
(45)

When an error is thrown,a(n)____ is executed to recover normal execution.

(Multiple Choice)
4.8/5
(46)

Exception handlers throw exceptions.

(True/False)
4.8/5
(38)

A unary operator can take one or more operands.

(True/False)
4.9/5
(34)

____ evaluation stops once the truth value of a Boolean expression is known.

(Multiple Choice)
4.9/5
(39)

Evaluating all operands before applying operators is called ____ evaluation.

(Multiple Choice)
4.9/5
(37)

____ states that any two expressions in a program that have the same value may be substituted for each other anywhere in the program.

(Multiple Choice)
4.9/5
(39)

A(n)____ is executed for its side effects and returns no value.

(Multiple Choice)
4.9/5
(39)

____ errors can occur at any moment,not necessarily in response to program code execution.

(Multiple Choice)
4.8/5
(40)

Functions are written in prefix form.

(True/False)
4.9/5
(42)

To exit a loop completely,the continue statement is used.

(True/False)
4.9/5
(33)
Showing 21 - 40 of 50
close modal

Filters

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