CSE 445 MidTerm

¡Supera tus tareas y exámenes ahora con Quizwiz!

How does a client bind to a RESTful service?

Always dynamically

In distributed software architectures, software bus refers to

ORB (Object Request Broker)

What is a major difference between object-oriented development and service-oriented development?

One development cycle vs. three development parallel cycles

In what situations can a deadlock occur? Select all that apply.

There are two shared resources. There are more than two shared resources.

Which of the following components in a Java SOC development environment is responsible for hosting the execution of a Web service?

Tomcat

How is a new (child) process created in the Unix operating system programming environment?

Use a system call fork( ), followed by a system call execvp(. . .).

XML is

a Meta language that can be used to define another language

Event-driven programming is based on the assumption that the there

are multiple processors in the system.

What kind of testing technique is typically used for web service testing?

black-box testing

In a C# multithreading program, the method that starts a thread

can be in the main class or in another class.

Multi tenancy is a key concept in

cloud computing

The process of application building in SOA style includes (Select all that apply):

code-level assembling and binding of components process level specification

A service is defined through a class. What WSDL element corresponds to the Web method name in the class?

operation

In what WSDL element is the URL of a Web service stored?

port

A tModel in UDDI describes the

type of a group of web services

What functions does WCF (Windows Communication Foundation) support? Select all that apply.

Distributed Transactions Interoperable Web services WS-* Specification

What system is truly based on a vendor-independent standard?

Enterprise Service Bus (ESB)

What is the best definition of the speedup of an N-core processor over a 1-core processor?

ExecutionTime of 1-core / ExecutionTime of N-core

How can the data stored in ViewState variable of one page be accessed by another page?

First post it back to server and then send it to the other page.

If you write a program to search a UDDI service broker, what UDDI pages do you search?

Green Pages

Which group of information in UDDI contains the most technical information?

Green pages

When calling a RESTful service, the required communication protocol is

HTTP

What is the common interface language used in CORBA to facilitate the communication among objects written in different programming languages?

IDL

What is the standard language in CORBA that is used for defining the interface between distributed objects?

IDL

What technique can be used to make sure that parallel withdrawals from ATMs cannot exceed the given limit of a bank account?

Implement a lock mechanism to prevent simultaneous access to the account object.

Compare and contrast livelock and deadlock. What statement is correct?

In the case of deadlock, the resources are held. In the case of livelock, the resources are still free.

What protocol is normally used for transferring data between Web services?

SOAP

What is the efficiency of a multi-core computer?

Speedup / NumberOfCores

In a distributed application with multiple threads, what techniques can be applied to increase the performance? Select all that apply.

Use non-blocking calls and callbacks for communication Use a flat level of threads, instead of hierarchical layers of threads. Use a pool of resource with semaphore, instead of a single cell with lock.

Event-driven programming is typically implemented by

a callback from the object or thread where the event is generated.

A web service typically does not require

a human user interface.

BPEL is primarily

a specification language at a process/workflow level.

Which method is the starting point in a user-defined C# thread class?

a user-named method

A C# delegate (Select all that apply)

allows a method name to be passed as a parameter. allows the same method call to be associated with different method codes.

A C# delegate

allows different methods to be added into a container and to be called through the container.

Intel's HyperThreading design duplicates

control unit in the processor.

Service-oriented software development achieves the platform-independent computing by

creating service proxies in the application.

What architecture best supports integration based on code migration?

distributed object architecture

Where does the database normally reside in the fat-client (of client-server) architecture?

in the server layer

What type of values does the Unix system call fork( ) return?

int

A thread in a distributed program (Select all correct answers)

is a piece of program being executed. exists when the corresponding code is running.

In Distributed Object Architecture, what component is called the software bus?

object request broker

(1) What is the main function of the IIS worker process? (2) What is the main function of the Web Administration Service (WAS) in IIS?

(1) Executing Web services and Web applications as its threads. (2) Register Web services and Web applications into the registry.

In this question, you will answer the following four sub-questions: (1) What communication protocol is used for accessing RESTful services? Choose one HTTP . (2) What communication protocol is directly used by the WSDL Web services for transferring data? Choose one SOAP . (3) If you want to create a standard service broker with both service directory and service repository, what standard should be used? Choose one ebXML . (4) What protocol in the Web services protocol stack is normally in the layer directly below the SOAP protocol? Choose one HTTP .

(1) HTTP (2) SOAP (3) ebXML (4) HTTP

How is the monitor mechanism implemented in C#?

A SyncBlock index is stored in every object, and the index is used to access the corresponding entry of the SyncBlock table.

How is the synchronization mechanism implemented in a Java environment?

A lock-bit in an object is set to "true" when a synchronized method accesses the object.

Given a piece of code: int x =2; Monitor.Enter(x); try {x = x+1;} finally {Monitor.Exit(x);} What will happen?

A run time error (exception) will occur because Monitor.Exit tries to unlock an object that is not locked.

A semaphore has a minimum value and a maximum value. Which operation will cause an exception?

A semaphore release when its value is at the maximum value.

In contrast to objects in object-oriented development, service-oriented development has these distinct features: (Select all that apply.)

A service has language-independent interface. A proxy to the service is created in the application.

Compare and contrast wait( ) and sleep(t) methods defined in the library class Thread.

A thread in the wait state cannot return to the ready state unless another thread issues a notification.

When designing a computer system, if you focus on improving one part of the system without you modifying the other part, the best performance law you can use is:

Amdahl's Law

What would happen if a "release" call is made when the semaphore count is at its max value?

An exception will occur.

Which of the followings are software architecture? Select all that apply.

Blackboard architecture Pipe and filter architecture

Java Enterprise Edition (Java EE) applications are based on a 4-tier architecture, which includes (Select all that apply):

Client tier Business tier

What architecture is strictly a tiered architecture?

Client-server architecture

Which method is the starting point in a user-defined Java thread class?

run

The C# method lock( ) is used for synchronizing

selected statements, similar to the synchronized statements in Java.

UDDI is primarily a standard for

service registry only.

The C# monitor class's methods Monitor.Enter and Monitor.Exit can be used for

synchronizing a set of statements, similar to the synchronized statements in Java.

The key ideas of Intel's Threading Building Blocks (TBB) library are to covert (Select all that apply)

synchronous calls into asynchronous calls. nested method calls into flat method calls.

What statements best describe the architecture-driven approach? Select all that apply.

top-down approach elaborating the architecture design into executable

How is a synchronous call implemented in the Intel TBB library?

The caller calls the Promise function in TBB library and block-waits for the Promise function to return the result.

What would happen if a "WaitOne" request is called when the semaphore value is zero?

The calling thread will be blocked.

What is the main difference between the monitor pair (Monitor.Wait, Monitor.Pulse) and the coordination event pair (event.WaitOne, event.Set)?

The monitor pair involves an object, while the coordinatopm event pair does not.

What is the implication of a "synchronized method" in Java?

The objects being accessed by the method are locked until the method exits.

What problems occurred in the first two attempts when scaling up the number of threads in the Collatz conjecture case study? Select all that apply.

The thread execution times were different, which reduced the benefit of parallel computing. The impact of the data structures dominated the performance.

If a method is prefixed with the keyword "synchronized", then

all objects accessed by the method will be locked during the execution of the method.

Which of the following layers does not belong to the traditional three-tier architecture?

Service repository

What is NOT be included in a service proxy?

Source code of the remote method.

Given the bufferClass between a producer and a consumer in Java, as shown in the figure: Select the answer to the following questions. (1) What synchronization mechanism is used in the given code? synchronized statements (2) What is the function of the variable "writable"? Define the order of accessing the object (3) What is the function of the statement "notify( )"? Move a thread from wait to ready state (4) What is the function of the synchronized mechanism in the code Lock the object during the execution of the method

(1) synchronized statements (2) Define the order of accessing the object (3) Move a thread from wait to ready state (4) Lock the object during the execution of the method

How can a client binds to a SOAP service? Select all that apply.

Statically using Add Service Reference Dynamically using DynamicProxyFactory(URL)

Which law should you use in evaluating the system performance improvement if you have doubled the processor speed, and improved the other parts accordingly?

Gustafson's Law

Java Remote Method Invocation (RMI) is used for creating distributed applications using

Marshal-by-reference

Which computing models belong to traditional distributed computing, but not service-oriented computing? Select all that apply,

Marshal-by-reference Marshal-by-value

What kinds of remotable objects exist in .Net environment? Select all that apply.

Marshal-by-value objects. Marshal-by-reference objects.

What method in the C# is used to move one thread from the "wait" state to the "ready" state?

Monitor.Pulse(...);

What method in C# can be used if the calling thread does not want to be blocked, even if the object to be accessed is locked by another thread?

Monitor.TryEnter(...);

What are the key differences between a Remote Procedure Call (PRC) and a Web Service Invocation (WSI)? Select all that apply.

PRC is tightly couples; WSI is loosely coupled. PRC is platform-dependent; WSI is platform-independent.

The impacts of service-oriented computing include (select all that apply):

Programmers do not have to understand application domain. Shorter software development cycle.

What step is NOT in the process of application building in SOA style?

Service implementation.

Coordination events in C# are used for

defining the order of execution among the threads.

The lock(...) method in C# does not need to use try-finally exception handling, because

exception handling is implied.

If a higher priority thread occurs,

it preempts the lower priority thread and then begins to execute.

The binding template in UDDI

links a businessService in UDDI to an implementation of the service.

Two threads try to acquire the same resource at the same time and both are blocked. Then, they continually change their states in the same way and are continuously blocked. This condition is called

livelock

Ethernet's binary exponential backoff mechanism is a technique used for avoiding

livelock.

In service-oriented computing, the building blocks of software systems are services, which are

loosely coupled.

What does the "operation" in a WSDL file correspond to in object-oriented computing?

method

One of the impacts of SOA/SOC paradigm is that

more software engineer jobs will be available.

The design pattern specifically deals with the problems of

reusable solution at the level of software design.

A design pattern refers to

software pattern

The "businessEntity" data structure in UDDI contains information about

the service provider, and it is called the White Pages of the UDDI.

A deadlock can occur in a multithreading program, if

there exist two threads that require to lock two objects.


Conjuntos de estudio relacionados

Users in a recently installed wireless network are complaining of slow data transfer and frequent loss of connectivity. The technician checks that the wireless security is correctly implemented, and there is no evidence of unauthorized users on the networ

View Set

Responsible Conduct of Research (RCR)

View Set

ISDS 3115 Final Exam Conceptual Practice Questions

View Set

Psychology Chapter 7 Human Memory

View Set

Object Oriented Programming (with Java)

View Set