CORRECT ANSWERS ALREADY
PASSED
What protocol in the web service protocol stack is normally in the layer directly below
the SOAP protocol? - Answer-HTTP
Where does the database normally reside in the fat-client architecture? - Answer-In the
server layer.
Java Enterprise Edition applications are based on a 4-tier architecture, which includes...
- Answer-Business tier
Client tier
What statements best describe the architecture-driven approach? - Answer-Elaborating
the architecture design into executable
top-down approach
What is the standard language in COBRA that is used for defining the interface between
distributed objects? - Answer-IDL
A design pattern refers to... - Answer-Software pattern
Service-oriented software development achieves the platform-independent computing
by... - Answer-Creating service proxies in the application.
The process of application building in SOA style includes... - Answer-Code-level
assembling and binding of components
Process level specification
What is the proper way of creating a thread class if the class has already inherited
members from another class?(java) - Answer-Implement the Runnable Interface
How is a new (child) process created in the Unix operating system programming
environment?
(java) - Answer-Use a system call fork( ), followed by a system call execvp(. . .).
, If a method is prefixed with the keyword "synchronized", then (java) - Answer-all objects
accessed by the method will be locked during the execution of the method.
How is the synchronization mechanism implemented in a Java environment? - Answer-
A lock-bit in an object is set to "true" when a synchronized method accesses the object.
Compare and contrast wait( ) and sleep(t) methods defined in the library class Thread.
(java) - Answer-A thread in the wait state cannot return to the ready state unless
another thread issues a notification.
The lock(...) method in C# does not need to use try-finally exception handling, because -
Answer-exception handling is implied.
What method in the C# is used to move one thread from the "wait" state to the "ready"
state? - Answer-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? - Answer-Monitor.TryEnter(...);
Can Monitor.Enter(v) lock the variable v if v is of integer type? (c#) - Answer-No,
Monitor.Enter(v) cannot directly lock the variables of value-type.
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.
It involves two operations to lock an object: test the value of a lock and set the value to
"true" if the value is false. These two operations have - Answer-to be done in a single
instruction or two linked instructions.
Coordination events in C# are used for - Answer-defining the order of execution among
the threads.
A C# delegate... - Answer-allows a method name to be passed as a parameter.
allows the same method call to be associated with different method codes
What would happen if a "WaitOne" request is called when the semaphore value is zero?
- Answer-The calling thread will be blocked.
Event-driven programming is typically implemented by - Answer-a callback from the
object or thread where the event is generated
The key ideas of Intel's Threading Building Blocks (TBB) library are to covert... -
Answer-synchronous calls into asynchronous calls
nested method calls into flat method calls.