Exam 9: Control I - Expressions and Statements

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

If control resumes at the point where the exception was first raised,the ____ model is being used.

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

A

____ are an example of implicit control mechanisms.

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

C

Most languages use a mix-fix form that distributes the syntax of an if-then-else operator throughout the expression.

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

True

Bracketing keywords are used in the if statement to remove ambiguity.

(True/False)
4.8/5
(34)

Arguments are specified for use with ____.

(Multiple Choice)
4.9/5
(34)

Delayed evaluation is sometimes called strict evaluation.

(True/False)
4.9/5
(39)

The termination model resumes control at the exact point an exception is first raised after it is handled.

(True/False)
4.8/5
(43)

A language has referential transparency when its expressions produce no side effects.

(True/False)
4.8/5
(45)

The most closely nested rule is used to disambiguate ____.

(Multiple Choice)
4.8/5
(32)

The for-loop construct provides for a(n)____ expression,a test expression and an update expression.

(Multiple Choice)
4.8/5
(33)

Exception handling is an attempt to imitate in a programming language the features of a hardware interrupt or error trap.

(True/False)
4.8/5
(31)

If-expressions never have all of their subexpressions evaluated.

(True/False)
4.8/5
(29)

In the absence of side effects,normal order evaluation does not change the semantics of a program.

(True/False)
4.8/5
(44)

Stack unwinding occurs when an exception is thrown and control is ____.

(Multiple Choice)
4.9/5
(39)

In a function,the operands are viewed as ____.

(Multiple Choice)
4.7/5
(29)

An expression,in its pure mathematical form,produces side effects.

(True/False)
4.8/5
(35)

If-then-else is an example of a binary operator.

(True/False)
4.9/5
(33)

Alan Turing introduced the guarded if statement.

(True/False)
5.0/5
(34)

Sequence operators are used to ____.

(Multiple Choice)
4.9/5
(40)

All languages restrict expressions from producing side effects.

(True/False)
4.7/5
(39)
Showing 1 - 20 of 50
close modal

Filters

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