Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

1. A vector processor is an example of a ______ computer.

a. single instruction, single data stream (SISD)

b. multiple instruction, multiple data stream (MIMD)

c. single instruction, multiple data stream (SIMD)

d. multiple instruction, single data stream (MISD)

2. Prolog's order of evaluation is:

a. left to right, depth first.

b. right to left, depth first.

c. left to right, breadth first.

d. right to left, breadth first.

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

a. True

b. False

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.

5. A monitor:

1. shared data is resident in the monitor rather than clients.

2. provides synchronization without semaphores.

3. provides cooperation synchronization.

a. 1 and 2

b. 1 and 3

c. 2 and 3

d. 1, 2, and 3

6. In C++, exceptions are raised by the _____ expression.

a. raise

b. try

c. when

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.

8. In the event a Java Virtual Machine runs out of heap memory, an exception is thrown by the Error class that should be handled by the programmer.

a. True

b. False

9. Programs that have coroutines have _____ of control.

a. a single thread

b. multiple threads

c. virtual multiple threads

d. physical multiple threads

10. In Ada, the block or unit that raises an exception is continued or resumed.

a. True

b. False

11. The simplest choice for handling an exception is:

a. continue execution at the next block of code.

b. continue execution at the next statement.

c. terminate the program.

d. none of the above.

12. When an exception occurs in an Ada procedure, either in the elaboration of its declaration or execution of its body, the exception:

1. is implicitly propagated to the calling program unit at the point of the procedure call.

2. may be traced back through its static ancestors, at the programmer's option.

3. may be traced back through its dynamic ancestors, at the programmer's option.

a. 1

b. 2

c. 3

d. 1 and 2

e. 1 and 3

f. 2 and 3

g. All of the above.

13. In logic programming, the right side of a _______ form proposition is called the _______.

a. sentential; consequent

b. clausal; consequent

c. sentential; antecedent

d. clausal; antecedent

14. If a computer has more than one processor, several program units from the same program may execute simultaneously. This type of concurrency is termed:

a. virtual.

b. literal.

c. physical.

d. logical.

15. Using Scheme, LET creates a new local dynamic scope in much the same way as Ada's declare.

a. True

b. False

16. A binary semaphore is a semaphore that has a queue of binary variables.

a. True

b. False

17. In logic programming, the inference rule that allows inferred propositions to be computed from given propositions is called:

a. unification.

b. resolution.

c. instantiation.

d. evaluation.

18. Scheme predicate functions return a Boolean value of either True or

False.

a. True

b. False

19. Consider the following Scheme function:

(DEFINE (mystery lis1 lis2)

(COND

((NULL? lis1) (NULL? lis2))
((NULL? lis2) ‘())
((EQ? CAR lis1) (CAR lis2))
(mystery (CDR lis1) (CDR lis2)))
(ELSE ‘())
))

The third COND case is:

a. recursive.

b. iterative.

c. a function itself.

d. none of the above.

20. The mystery function in the above question:

a. sorts a list.

b. sorts the second list in the same order as the first.

c. reverses two lists.

d. compares two lists for equality.

21. Programming languages based on symbolic logic are called:

a. imperative.

b. functional.

c. declarative.

d. mathematical.

22. The developers of LISP identified and included specifications for

dynamic scoping.

a. True

b. False

23. Using Scheme, (EQ? ‘(A B) ‘(A B)) returns:

a. #T

b. #F

c. ( )

d. a or b

e. a or c

f. b or c

24. Propositions in a logic programming language can be stated in two distinct modes:

a. one to define a proposition as true and one in which the truth of the proposition is yet to be determined.

b. one to define a proposition as true and one to define a proposition as false.

c. one to define a proposition as true or false, and one in which the truth of the proposition is yet to be determined.

d. none of the above.

25. In Prolog, the right-hand side of a statement is analogous to the "then" part of an "if..then" statement in an imperative language.

a. True

b. False

Java, Programming

  • Category:- Java
  • Reference No.:- M91612627
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As