CSE 445 Midterm

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In the state transition diagram of Java multithreading environment, a thread can enter the "running" state directly from the

"ready" state.

What state does not rely on an external event to put a Java thread back into the ready state?

"sleep" state.

Which of the following are fallacies of distributed systems?

(A) Latency is zero. (B) Bandwidth is infinite. (C) The network is secure. (D) Topology doesn't change. -> (E) All of them are fallacies <-

Which of the following is/are the proposed features of Web 2.0?

(A) Software as operational services. (B) Users are treated as co-developers. (C) Use loosely coupled and easy-to- use services to compose applications. (D) Use services and data from multiple external sources to create new services and applications. -> (E) All of the above <-

In contrast to objects in objectoriented development, service-oriented development has these distinct features:

1. A service has languageindependent interface. 2. A proxy to the service is created in the application.

Which of the followings are software architecture?

1. Blackboard architecture 2. Pipe and filter architecture

Java Enterprise Edition (Java EE) applications are based on a 4-tier architecture, which includes

1. Client tier 2. Business tier

What topics will this course focus on?

1. Distributed Software Architecture 2. Distributed Computing

What are the key concepts in cloud computing?

1. Infrastructure as a service 2. Platform as a service 3. Software as a service

What is true about a deployed service with the JustInTime compilation?

1. It is slower than pre-compiled code for the first request. 2. The source code of the service can be redeployed while the service is being accessed.

What kinds of remotable objects exist in .Net environment?

1. Marshal-by-reference objects. 2. Marshal-by-value objects.

What are the key differences between a Remote Procedure Call (PRC) and a Web Service Invocation (WSI)?

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

The impacts of service-oriented computing include

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

What topics are listed in the course objectives and outcomes?

1. Software lifecycle 2. Concurrency

What problems occurred in the first two attempts when scaling up the number of threads in the Collatz conjecture case study?

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

XML is

1. a Meta language that can be used to define another language. 2. a standard for data representation

What statements best describe the architecture-driven approach?

1. elaborating the architecture design into executable 2. top-down approach

The process of application building in SOA style includes:

1. process level specification 2. code-level assembling and binding of components

The key ideas of Intel's Threading Building Blocks (TBB) library are to convert

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

How is the monitor mechanism implemented in C#?

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

What is the key feature of the blackboard architecture (a software architecture)?

All components communicate through a central component.

What law you should use in evaluating the system performance improvement if you have doubled the processor speed, but kept the other parts of the system unchanged?

Amdahl's Law

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.

What architecture is strictly a tiered architecture?

Client-server architecture

Which architecture is always a tiered architecture?

Client-server architecture

Which concept is least related to the application composition?

Code integration.

What resources are typically used as the sources of Mashup?

Data, services, and applications

What architecture model does not belong to the families of the distributed object architectures implemented in CORBA or DCOM?

ESB (Enterprise Service Bus)

What entity does not belong to the three-party model of SOC software development?

End user of software

Which entity does not belong to the three-party model of SOC software development?

End user of software

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

Enterprise Service Bus (ESB)

What is the main function of the IIS worker process?

Executing Web services and Web applications as its threads.

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

Green Pages

When designing a computer system, if you improve one part of the system, and you also improve the other parts proportionally, the best performance law you can use is:

Gustafson's Law

What communication protocol is used for accessing RESTful services?

HTTP

What protocol in the Web services protocol stack is normally in the layer directly below the SOAP protocol?

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 cannot exceed the given limit of a bank account?

Implement a lock mechanism to prevent simultaneous access.

Compare and contrast livelock and deadlock.

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

How can a value type (instance type) of variable be synchronized in Monitor.Enter and Monitor.Exit methods?

Manual boxing is required before using the variable as the Monitor methods.

How many threads can be created (started) from a user-defined thread class?

Many

Java Remote Method Invocation (RMI) is used to create distributed applications using

Marshal-by-reference

What method in C# can ensure that the calling thread will not be blocked, even if the object to be accessed is locked by another thread?

Monitor. Try Enter( ... );

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

Monitor.Pulse( ... );

What does the C# method Monitor.PulseAll() do?

Move all threads in waiting state into ready state.

What is the major difference between the Monitor class and the Mutex class?

Mutex can be used to synchronize the processes between different applications.

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

No error will occur, but Montor.Enter method does not protect variable x at all.

Can Reader/Writer locks perform better in all cases, in terms of execution time of the threads, than Monitor locks?

No. Although Reader/Writer locks do not make unnecessary locking, it takes longer to execute the Reader/Writer locks.

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

One development cycle vs. three development parallel cycles

What method in C# can be set to wait for a locked object for a specified amount of time?

ReaderWriterLock( ... );

What is the main function of the Web Administration Service (WAS) in IIS?

Register Web services and Web applications into the registry.

What is the most significant difference between the Distributed Object Architecture (DOA) (for example CORBA and DCOM) and the Service-Oriented Architecture (SOA)?

SOA software does not require code-level integration among the services.

What communication protocol is directly used by the WSDL Web services for transferring data?

SOAP

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

SOAP

Which protocol enables remote invocation of services across network and platforms?

SOAP

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

Service implementation.

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

Service repository

Which concept is least related to coding?

Service-oriented architecture

What is the efficiency of a multi-core computer?

Speedup / NumberOfCores

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 coordination event pair does not.

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

Tomcat

Mashup is

a service-oriented composition method.

The monitor class's methods (Monitor.Enter and Monitor.Exit) in C# can be used to synchronize

a single statement, similar to the synchronized statement in Java.

BPEL is primarily

a specification language at a process/workflow level.

A C# delegate

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

Event-driven programming is a programming paradigm that

allows interactions between the computer program and the user or the environment.

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

are multiple processors in the system.

The hyper-threading and the multi-core concepts are

both applied in processor design.

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

Intel's HyperThreading design duplicates

control unit in the processor.

Coordination events in C# are used to

coordinate the order of executions among the threads.

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

creating service proxies in the application.

Two threads need two resources each to proceed, and each holds one resource while waiting for the other to release the resource. This situation is called

deadlock.

What architecture best supports integration based on code migration?

distributed object architecture

If you want to create a standard service broker with both service directory and service repository, what standard should be used?

ebXML

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

exception handling is implied.

A thread

exists when the corresponding code is running.

The main idea of cloud computing is to shift computing from

from desktop to Web

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

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.

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.

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

object request broker

The key function of AJAX programming is to allow

partial data refreshing and making the Web page more responsive.

What is the unique feature of service-oriented computing paradigm that does not exist in other computing paradigms?

platform-independent

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems. This course focuses on the aspects of

practical techniques for their implementation and application.

A semaphore is a flag that can be used to

prevent more processes (or threads) than permitted from accessing a pool of resources.

Generally speaking a service is an interface between the

producer and the consumer.

The design pattern specifically deals with the problems of

reusable solution at the level of software design.

ebXML is a standard for

service registry and service repository.

UDDI is primarily a standard for

service registry only.

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.


संबंधित स्टडी सेट्स

Chapter 54 Wilkins: The Patient with Diabetes Mellitus

View Set

CAP; SIGNS AND SYMPTOMS AND CASE STUDIES

View Set

Multiplication Tables 1x1 - 25x25

View Set

Ati learning system 3.0 gerentology final

View Set

Principle of Macroeconomics - Chapter 18

View Set

Regulation of Controlled Substances

View Set