CSE 445 MIDTERM EXPECTED QUESTIONS WITH
VERIFIED ANSWERS
Question 1.
A deadlock can occur in a multithreading program, if
ANSWER
there exist two threads that require to lock two objects.
Question 2.
Java Enterprise Edition (Java EE) applications are based on a 4-tier architecture, which includes (Select
all that apply):
ANSWER
Client tier
Business tier
Question 3.
Event-driven programming is based on the assumption that the there
ANSWER
are multiple processors in the system.
Question 4.
How is the monitor mechanism implemented in C#?
ANSWER
A SyncBlock index is stored in every object, and the index is used to access the corresponding
entry of the SyncBlock table.
Question 5.
One of the impacts of SOA/SOC paradigm is that
ANSWER
more software engineer jobs will be available.
,Question 6.
How is a new (child) process created in the Unix operating system programming environment?
ANSWER
Use a system call fork( ), followed by a system call execvp(. . .).
Question 7.
What step is NOT in the process of application building in SOA style?
ANSWER
Service implementation.
Question 8.
How is a synchronous call implemented in the Intel TBB library?
ANSWER
The caller calls the Promise function in TBB library and block-waits for the Promise function to
return the result.
Question 9.
The C# monitor class's methods Monitor.Enter and Monitor.Exit can be used for
ANSWER
synchronizing a set of statements, similar to the synchronized statements in Java.
Question 10.
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.
ANSWER
The thread execution times were different, which reduced the benefit of parallel computing.
The impact of the data structures dominated the performance.
Question 11.
A C# delegate
ANSWER
allows different methods to be added into a container and to be called through the container.
, Question 12.
What are the key differences between a Remote Procedure Call (PRC) and a Web Service Invocation
(WSI)? Select all that apply.
ANSWER
PRC is tightly couples; WSI is loosely coupled.
PRC is platform-dependent; WSI is platform-independent.
Question 13.
What would happen if a "WaitOne" request is called when the semaphore value is zero?
ANSWER
The calling thread will be blocked.
Question 14.
In a C# multithreading program, the method that starts a thread
ANSWER
can be in the main class or in another class.
Question 15.
Which of the following components in a Java SOC development environment is responsible for hosting
the execution of a Web service?
ANSWER
Tomcat
Question 16.
Service-oriented software development achieves the platform-independent computing by
ANSWER
creating service proxies in the application.
Question 17.
The binding template in UDDI
ANSWER
links a businessService in UDDI to an implementation of the service.
VERIFIED ANSWERS
Question 1.
A deadlock can occur in a multithreading program, if
ANSWER
there exist two threads that require to lock two objects.
Question 2.
Java Enterprise Edition (Java EE) applications are based on a 4-tier architecture, which includes (Select
all that apply):
ANSWER
Client tier
Business tier
Question 3.
Event-driven programming is based on the assumption that the there
ANSWER
are multiple processors in the system.
Question 4.
How is the monitor mechanism implemented in C#?
ANSWER
A SyncBlock index is stored in every object, and the index is used to access the corresponding
entry of the SyncBlock table.
Question 5.
One of the impacts of SOA/SOC paradigm is that
ANSWER
more software engineer jobs will be available.
,Question 6.
How is a new (child) process created in the Unix operating system programming environment?
ANSWER
Use a system call fork( ), followed by a system call execvp(. . .).
Question 7.
What step is NOT in the process of application building in SOA style?
ANSWER
Service implementation.
Question 8.
How is a synchronous call implemented in the Intel TBB library?
ANSWER
The caller calls the Promise function in TBB library and block-waits for the Promise function to
return the result.
Question 9.
The C# monitor class's methods Monitor.Enter and Monitor.Exit can be used for
ANSWER
synchronizing a set of statements, similar to the synchronized statements in Java.
Question 10.
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.
ANSWER
The thread execution times were different, which reduced the benefit of parallel computing.
The impact of the data structures dominated the performance.
Question 11.
A C# delegate
ANSWER
allows different methods to be added into a container and to be called through the container.
, Question 12.
What are the key differences between a Remote Procedure Call (PRC) and a Web Service Invocation
(WSI)? Select all that apply.
ANSWER
PRC is tightly couples; WSI is loosely coupled.
PRC is platform-dependent; WSI is platform-independent.
Question 13.
What would happen if a "WaitOne" request is called when the semaphore value is zero?
ANSWER
The calling thread will be blocked.
Question 14.
In a C# multithreading program, the method that starts a thread
ANSWER
can be in the main class or in another class.
Question 15.
Which of the following components in a Java SOC development environment is responsible for hosting
the execution of a Web service?
ANSWER
Tomcat
Question 16.
Service-oriented software development achieves the platform-independent computing by
ANSWER
creating service proxies in the application.
Question 17.
The binding template in UDDI
ANSWER
links a businessService in UDDI to an implementation of the service.