Đăng ký Đăng nhập

Tài liệu đề ejb

.DOC
5
605
54

Mô tả:

1 Strengths of EJB clients are: EJB clients provide a more flexible user interface. EJB clients distribute the workload. EJB clients handle complex data models. EJB clients tend to be more complex. (weaknesses) 2 ____________ are used for identifying the objects and classes in an application. Attributes ERD's Object models 3 The __________ indicates that an inappropriate argument has been passed to a method. java.lang.IllegalArgumentException java.rmi.MarshalException Javax.ejb.AccessLocalException 4 _________ are used to represent the relationships between various entities. Object models ERDs Fully-attributed ERD 5 The ____________ is thrown if an attempt is made to create an entity bean object with an existing primary key. javax.ejb.DuplicateKeyException javax.ejb.FinderException Javax.ejb.RemoveException 6 The System exception ____________ indicates communication related problems that may occur during the execution of a remote method call. java.rmi.NoSuchObjectException java.rmi.RemoteException javax.lang.SecurityException 7 page 49 The __________ are encoded into the business logic of the application that uses the database. Database-oriented business rules Application-oriented business rules System-oriented business rules 8 In a ____________ relationship, a record in the first table corresponds to one or more records in the second table, but a record in the second table corresponds to exactly one record in the first table. One-to-many One-to-one Many-to-many 9 Which of the following classes are needed to create a Session Bean and an Entity Bean? 1. Home interface 2. Remote interface 3. Session/Entity Bean class 1, 3 1, 2, 3 2, 3 3 10 Which of the following deployment descriptors includes information which describes how the contents of a unit are composed with other units to produce a new component? Structural Assembly Meta-data None of the above 11 Which of the following are the kinds of aggregation relationships? 1. Basic 2. Advance 3. Composition 1, 2 2, 3 1, 3 1, 2, 3 12 An attribute which uniquely identifies the occurrence of an entity is called the ___________________________. Primary key Attributes key Foreign key Relationship 13 Which of the following operations accesses the state of an object but does not alter the state? Modification Selection Iteration Construction 14 bai 5 side 26 UML diagrams are divided into which of the following types? 1. Structural 2. Behavioral 3. Unified 1, 2 2, 3 1, 3 1, 2, 3 15 Which of the following diagrams are advanced type of class diagram? They focus on how classes and interfaces are logically grouped together and the dependencies among these groups. Component Diagrams Deployment Diagrams Package Diagrams Object Diagrams 16 __________________ is one of the most widely-used diagrams amongst all the UML diagrams used for depicting objects and relationships in an object model. Class Deployment Package Aggregation 17 EJB QL supports path navigation using a __________. Dot (.) Arrow (->) Hyphen (-) Equal to (=) 18 In which of the following relationships, one bean instance relates to multiple bean instances? One-to-one One-to-Many Many-to-Many All of the above 19 EJB QL supports path navigation using a __________. Dot (.) Arrow (->) Hyphen (-) Equal to (=) 20 Which of the following are the properties of a transaction? 1. 2. 3. 4. Isolation Durability Atomicity Consistency 1, 2, 3 2, 3, 4 1, 3, 4 1, 2, 3, 4 21 Which of the following properties of a transaction ensures that each transaction should be allowed to execute independently without interference from other transactions or processes? Atomicity Consistency Isolation Durability 22 Which of the following components of the Transaction processing are EJB business methods which invoke transactions? Application Components Resource Managers Transaction Manager All of the above 23 ___________________transaction contains one main transaction with one or smaller transactions embedded within it. Flat Nested Joint Main 24 __________ accesses each entity bean instance with the help of a primary key. Container call back methods Multiple instances Container 25 Advantages of using Remote interface are: Better location transparency Distributed environment Better fine-grained access Better Performance Previous Next
- Xem thêm -

Tài liệu liên quan