Purchase Solution

Programming Language Multiple Choice

Not what you're looking for?

Ask Custom Question

25 questions.

Reference: Concepts of Programming Languages sixth edition.

See attached file for full problem description.

Attachments
Purchase this Solution

Solution Preview

1.A vector processor is an example of a ______ computer.
Ans c. single instruction, multiple data stream (SIMD)

2. Prolog's order of evaluation is:
Ans left to right, depth first.

3. A data structure consisting of an integer variable and a queue of
task descriptors is called a semaphore.
Ans. True

4. In Prolog, instantiation:
a. binds a value to a variable.
b. binds a type to a variable.
c. computes an inferred proposition from given propositions.
d. a and b.
e. a and c.
f. b and c.
g. all of the above.
Ans.a

5.A monitor:
1. shared data is resident in the monitor rather than clients.
2. provides synchronization without semaphores.
3. provides cooperation synchronization.

Ans.2

6.In C++, exceptions are raised by the _____ expression.
a. raise
b. try
c. when
d. throw
Ans.d. throw

7. All of the following are advantages of exception handling except:
a. eliminates code clutter resulting from error-checking.
b. enables error propagation to specialized routines.
c. provides the means for avoiding logic errors.
d. encourages programmers to consider all of the events that could
occur and plan for handling them.
Ans.c. provides the means for avoiding logic errors.

8. In the event a Java Virtual Machine runs out of heap memory, an ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C# variables and classes

This quiz contains questions about C# classes and variables.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.