Exam 9: Control I - Expressions and Statements
Exam 1: Introduction50 Questions
Exam 2: Language Design Criteria50 Questions
Exam 3: Functional Programming50 Questions
Exam 4: Logic Programming50 Questions
Exam 5: Object-Oriented Programming50 Questions
Exam 6: Syntax50 Questions
Exam 7: Basic Semantics50 Questions
Exam 8: Data Types50 Questions
Exam 9: Control I - Expressions and Statements50 Questions
Exam 10: Control II - Procedures and Environments50 Questions
Exam 11: Abstract Data Types and Modules50 Questions
Exam 12: Formal Semantics50 Questions
Exam 13: Parallel Programming51 Questions
Select questions type
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:
A
____ are an example of implicit control mechanisms.
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
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:
True
Bracketing keywords are used in the if statement to remove ambiguity.
(True/False)
4.8/5
(34)
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 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)
An expression,in its pure mathematical form,produces side effects.
(True/False)
4.8/5
(35)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)