DISTRIBUTED SERVICE-ORIENTED SOFTWARE
DEVELOPMENT
Exercise Keys (Part)
Yinong Chen and
Wei-Tek Tsai


1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1.1
(A) Latency is zero.
(B) Bandwidth is infinite.
(C) The network is secure.
(D) Topology doesn’t change.
(E) All of them of fallacies.
1.2
(A) service provider and the service broker.
(B) service requester and the service broker.
(C) Yellow Pages and the Green Pages.
(D) producer and the consumer.
1.3
(A) Client-server architecture
(B) CORBA
(C) Service-oriented architecture
(D) DCOM
1.4
(A) Service-oriented architecture
(B) Service-oriented computing
(C) Service-oriented software development
(D) object-oriented programming
1.5
(A) Service provider
(B) Service broker
(C) Application builder
(D) End user of software
1.6
(A) SOA software has better modularity.
(B) SOA software does not require code-level integration
among the services.
(C) DOA software has better reusability.
(D) DOA software better supports cross-language integration.
1.7
(A) BPEL
(B) choreography
(C) orchestration
(D) Code integration.
1.8
(A) an object-oriented programming language.
(B) a service-oriented programming language.
(C) a database programming language.
(D) a standard for data representation.
1.9
(A) XML
(B) SOAP
(C) WSDL
(D) UDDI
1.10
(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 above
1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1.1
(A) is a synonym of a method.
(B) is an antonym of a method.
(C) exists after the corresponding code is compiled.
(D) exists when the corresponding code is running.
1.2
(A) deadlock.
(B) livelock.
(C) starvation.
(D) Dining Philosophers Problem.
1.3
(A) Add a random delay before writing back the account balance.
(B) Implement a lock mechanism to prevent simultaneous
access.
(C) Make sure a single withdraw does not exceed a half of the limit.
(D) Anyone of above will work.
1.4
(A) Livelock is a synonym of deadlock.
(B) Livelock is a deadlock-resolving technique.
(C) In the case of deadlock, the resources are held. In
the case of livelock, the resources are still free.
(D) In the case of livelock, the resources are held. In the case of deadlock, the resources are still free.
1.5
(A) “blocked” state.
(B) “sleep” state.
(C) “ready” state.
(D) “waiting” state.
(E) All states above.
1.6
(A) None
(B) One exactly
(C) Two exactly
(D) Three exactly
(E) Many
1.7
(A) the entire method only, similar to the synchronized method in Java.
(B) the entire class with multiple methods.
(C) a single statement, similar to the synchronized
statement in Java.
(D) All statements above are correct.
1.8
(A) exception handling
is implied.
(B) an exception can never happen if lock(…) method is used.
(C) the lock(…) method is used for read-only.
(D) the lock(…) method is used for write-only.
1.9
(A) Monitor.Enter(…);
(B) Monitor.TryEnter(…);
(C) lock(…);
(D) ReaderWriterLock(…);
(E) None of them
1.10
(A) Monitor.Wait(…);
(B) Monitor.Notify(…);
(C) Monitor.Wake(…);
(D) Monitor.Pulse(…);
(E) All of them
1.11
(A) Monitor.Enter(…);
(B) Monitor.TryEnter(…);
(C) lock(…);
(D) ReaderWriterLock(…);
(E) None of them
1.12
(A) The automatic boxing and unboxing functions will handle the problem correctly.
(B) Manual boxing is required before using the variable
as the Monitor methods.
(C) There is no way in which a value type of variable can be synchronized.
(D) ReaderWriterLock has to be used, instead of Monitor methods.
1.13
(A) Mutex allows reader-reader threads to overlap.
(B) Mutex allows conditional entering of an object
(C) Mutex can be used to synchronize the processes
between different applications.
(D) Mutex methods are faster than Monitor methods.
1.14
(A) prevent more processes (or threads) than permitted
from accessing a pool of resources.
(B) prevent any two processes (or threads) to access a shared resource simultaneously.
(C) replace Mutex, because Mutex is not efficient in execution time.
(D) ordinate the order of executions among the threads.
1.15
(A) prevent more processes (or threads) than permitted from accessing a pool of resources.
(B) prevent any two processes (or threads) to access a shared resource simultaneously.
(C) replace Mutex, because Mutex is not efficient in execution time.
(D) ordinate the order of executions among the threads.
1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1.1
(A) .Net Development Server
(B) IIS
(C) Web server
(D) None of them support external access
1.2
(A) Service registry
(B) Service repository
(C) Service requirement and specification
(D) Application Templates
(E) All of the above
1.3
(A) Service registry
(B) Service repository
(C) Service requirement and specification
(D) Application Templates
(E) All of the above
1.4
(A) Ontology allows more data to be stored.
(B) Ontology allows faster data retrieval.
(C) Ontology can better facilitate service match and
discovery.
(D) Ontology can better store executables while database can better store data.
1.5
(A) It is a part of the White Pages in UDDI.
(B) It is a part of the Yellow Pages in UDDI.
(C) It is a part of the Green Pages in UDDI.
(D) It is a part of all the three Pages in UDDI.
1.6
(A) One exactly.
(B) Two exactly
(C) Three exactly
(D) It can have multiple binding templates
1.7
(A) a synonym of the server broker.
(B) a synonym of the service requester.
(C) the interface of a service that is exposed to
outside.
(D) a virtual object in the service requester that creates a channel to a (remote) service.
1.8
(A) a synonym of the server broker.
(B) a synonym of the service requester.
(C) the interface of a service that is exposed to outside.
(D) a virtual object in the service requester that
creates a channel to a (remote) service.
1.9
(A) Method name of the remote method.
(B) Code of the remote method.
(C) Parameter list of the remote method.
(D) Return type of the remote method.
1.10
(A) Choose to “Add a Local Reference…”
(B) Choose to “Add an Amazon AWS Reference…”
(C) Choose to “Add Web Reference…”
(D) Choose to “Add SOAP Reference…”.
1.11
(A) Java programming language itself
(B) Eclipse programming environment
(C) Axis2
(D) Tomcat
1.12
(A) Java programming language itself
(B) Eclipse programming environment
(C) Axis2
(D) Tomcat
1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1.1
(A) There is a unique root element
(B) Each element is quoted between an open and a closing tag
(C) There are no overlapped tags
(D) All of the above
1.2
(A) complete graph
(B) binary tree
(C) rooted tree
(D) star structure
1.3
(A) Between any pair of elements
(B) Inside the opening tag of an element
(C) Inside the closing tag of an element
(D) Before the first element or after the last element
1.4
(A) CDATA contains nonprintable characters only, while PCDATA contains printable characters only.
(B) PCDATA contains nonprintable characters only, while CDATA contains printable characters only.
(C) CDATA contains digits only, while PCDATA contains letters only.
(D) CDATA will not be checked for syntax errors by XML
parsers, while PCDATA will be checked for syntax errors.
1.5
(A) DOM (Document Object Model)
(B) SAX (Simple API for XML)
(C) XMLTextReader
(D) XMLTextWriter
1.6
(A) XmlDocument
class
(B) XmlNode class
(C) XmlTextReader class
(D) XmlTextWriter Class
1.7
(A) XmlDocument class
(B) XmlNode class
(C) XmlTextReader class
(D) XmlTextWriter class
1.8
(A) follows XML syntax.
(B) is used to define the structure of an XML file.
(C) is used to define the structure of an XML schema file
(D) extends the C# XmlDocument class
1.9
<!ELEMENT instructor (name, course+, officeHours*, phone | email)>
(A) The XML instance file must have an element
<course>
(B) The XML instance file must have an element <officeHours>
(C) The XML instance file must have an element <phone>
(D) All of the above
1.10
(A) DTD cannot be used to validate the syntax of XML files.
(B) A DTD file must be embedded in the XML file and cannot be placed externally.
(C) DTD cannot define child elements.
(D) DTD does not follow XML syntax.
1.11
(A) To introduce a new element that has not been defined in other namespaces
(B) To reduce the number of namespace qualifiers prefixed
to the element names
(C) To define a new type instantly
(D) To override an existing namespace
1.12
(A) Document Type Definition file
(B) XML Schema file
(C) XML instance file
(D) XML namespace file
1.13
(A) is always implicitly qualified by the namespace-qualifier of the element.
(B) is implicitly qualified by the default namespace only.
(C) is never implicitly qualified by the qualifier of the
element.
(D) (A) and (B)
1.14
(A) an HTML file, but not to another XML file.
(B) another XML file, but the tree structure cannot be changed.
(C) another XML file, with the same or a different
structure.
(D) None of the above.
1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1.1
(A) Each service involved can communicate with multiple partners in the application.
(B) Each service involved must communicate with at least two partners in the application.
(C) Involved services communicate with the
central process only.
(D) The process itself is not a service,
1.2
(A) <invoke>
(B) <receive>
(C) <assign>
(D) All of the above.
1.3
(A) A “portType”
(B) A “receive” activity
(C) A “reply” activity
(D) None of the above
1.4
(A) <scope>
(B) <sequence>
(C) <flow>
(D) <namespace>
1.5
(A) <invoke>
(B) <receive>
(C) <assign>
(D) <copy>
1.6
(A) a set partner link types using XML schema
(B) a SOAP packet to be transmitted between two Web services
(C) the order of the activities to be performed
in a Web service
(D) the WSDL interface of a Web service
1.7
(A) Java
(B) WSDL with extended elements
(C) ebXML
(D) SOAP
1.8
(A) <invoke> from client side and <send> from the server side
(B) <receive> from client side and <reply> from the server side
(C) <invoke>
from client side and <invoke> from the server side
(D) All of the above
1.9
(A)
Activity
(B) Calculate
(C) Merge
(D) Variable
1.10
(A) It waits for one of the incoming data items to arrive.
(B)
It waits for all incoming data items to arrive.
(C) It checks the result of a condition and then chooses one of incoming data items
(D) It must be used in pair with Merge
1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1.1
(A) continuity of service in [0, t].
(B) the readiness of service at time point t.
(C) non-occurrence of catastrophic consequence.
(D) the validity and consistence of data and message.
1.2
(A) Confidentiality
(B) Safety
(C) Vulnerability
(D) All of the above
1.3
(A) Reliability is needed
(B) Confidentiality is needed.
(C) Digital signature is needed.
(D) All of the above.
1.4
(A) Access control list
(B) IP address restrictions
(C) Domain name restrictions
(D) Encrypted HTTP connections
(E) All of the above
1.5
(A) ASAX file (Global)
(B) ASCX file (User controls)
(C) ASPX file (Web form)
(D) Web.config
(E) DLL file
1.6
(A) ASAX file (Global)
(B) ASCX file (User controls)
(C) ASPX file (Web form)
(D) Web.config
(E) DLL file
1.7
(A) Passwords are stored in clear text
(B) Sequential comparisons of user name and password
(C) Unmanageable if accessibility needs to be changed frequently
(D) All of the above
1.8
(A) Authentication
(B) Authorization
(C) Both (A) and (B)
(D) None of (A) and (B)
1.9
(A) <allow users= "*" />
(B) <deny users="?" />
(C) <allow users = "Bob" /> <deny users = "*" />
(D) <deny users "*" /> <allow
users = "Bob" />
1.10
(A) WS-Security
(B) Reliable Sessions (WS-R)
(C) Interoperability (WS-I)
(D) All of the above
1.11
(A) At-Least-Once delivery, At-Most-Once delivery, and Exactly-Once delivery
(B) Guaranteed message ordering for delivery
(C) Both (A) and (B)
(D) None of the above
1.12
(A) in the entire program by default
(B) defined using an object of TransactionScope
class
(C) quoted by a pair of special of tags < transaction> … </transaction>
(D) left to the user to write a rollback method that commits the transaction calls simultaneously
1. Multiple choice questions. Choose one answer in each question only. Choose the best answer if multiple answers are acceptable.
1)
(A) Support hierarchical structure of data access.
(B) Support
device-independent data access from multiple sources.
(C) Make it easier for the data to pass across firewall.
(D) All of the above
2)
(A) an array of homogeneous data.
(B) a single table of data.
(C) a set of
tables.
(D) a set of data, each of which can have different type.
3)
(A) Insert a column
(B) Delete a column
(C) Update a column
(D) Select the
maximum value from a column
4)
(A) SqlConnection conn = new SqlConnection;
(B) conn.Open();
(C) SqlCommand cmd = new SqlCornmand();
(D) cmd.Connection
= conn;
5)
(A) Yes
(B) No
6)
(A) pair: (subject, predicate)
(B) pair: (subject, object)
(C) triple: (resource, property, class)
(D) triple: (subject,
predicate, object)
7)
(A) resource,
property, and statement
(B) ontology, semantic Web, and database
(C) int, character, and string
(D) class, object, and instantiation
8)
(A) domain
(B) range
(C) type
(D) all of the
above
9)
(A) not an ontology language
(B) a less powerful (less expressive) ontology language than RDF
(C) a more
powerful (more expressive) ontology language than RDF
(D) none of the above
10)
(A) OWL Lite
(B) OWL DL and OWL Full
(C) OWL Full
(D) None of the above