Deck 5: EJB, JSP, and Corba

ملء الشاشة (f)
exit full mode
سؤال
Which interface should be implemented by a stateful session bean if it needs to synchronize its conversational state with the transactional context?

A) javax. transaction. UserTransaction
B) javax. ejb. SessionSynchronization
C) javax. ejb. EJBContext
D) javax. transaction. TransactionContext
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which of the following exceptions is thrown by the ejbLoad() method of an entity bean when the database row to be loaded is not found ?

A) NoSuchEntityException
B) EJBException
C) RemoteException
D) ObjectNotFoundException
سؤال
Which of the following is the format for EJB deployment descriptor files?

A) XML
B) XSL
C) HTML
D) Java
سؤال
EJB is a

A) Middleware
B) Scalable component architecture
C) Component architecture to integrate legacy systems
D) All of the above.
سؤال
Which of the following EJB has no state?
i. Message-Driven Bean.
ii. BMP Entity Bean.
iii. Stateless Session Bean.
iv. Stateful Session Bean.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
سؤال
Which of the following is true for EJB?

A) EJB is server-side component architecture for distributed applications in Java
B) EJB facilitates scalable, secure and transaction-oriented applications
C) EJB supports portability and reusability
D) All of the above.
سؤال
Which of the following EJB type has no Remote interfaces?

A) Message-Driven Bean
B) BMP Entity Bean
C) CMP Entity Bean
D) none
سؤال
Which role in EJB architecture is responsible for EJB Server?

A) EJB Deployer
B) Application Assembler
C) Network Engineer
D) Server Provider
سؤال
Which of the EJB has a passive state in its life cycle?
I. Stateless Session Bean.
II. Message-Driven Bean.
III. BMP Entity Bean.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Both (I) and (II) above
سؤال
Which part of multi-tier enterprise application contains EJB component?

A) Application Server
B) Web Server
C) Database Server
D) Fat Client
سؤال
Which of the following distributed object technology is/are not included in Java?
I. CORBA.
II. DCOM.
III. RMI.
IV. EJB.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Only (IV) above
سؤال
Which of the following is not a property of EJB transaction?

A) Atomicity
B) Consistency
C) Isolation
D) Distributed
سؤال
Which of the following is not true for servlet?

A) It is persistent
B) Platform independent
C) High performance
D) It is single threaded.
سؤال
Which JSP tag is used to transfer processing to another JSP page?

A) <jsp:include>
B) <jsp:forward>
C) <jsp:redirect>
D) <jsp:useBean>
سؤال
Which of the following is an approach for state maintenance in Web applications?

A) Hidden Form Field
B) URL Rewriting
C) Cookies
D) All of the above.
سؤال
Which of the following is not a container for EJB?
I. Internet Information Server.
II. Java System Application Server.
III. Tomcat.
IV. WebLogic.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
سؤال
Which EJB usually represents persistent data?

A) Entity Bean
B) Stateless Session Bean
C) Stateful Session Bean
D) Message-Driven Bean
سؤال
Which is least visibility scope for Java bean in JSP?

A) Page
B) Session
C) Request
D) Application
سؤال
Which of the following is/are true for JSP technology?
I. It is persistent.
II. Platform independent.
III. Browser executes the code.

A) Only (I) above
B) Only (II) above
C) Both (I) and (II) above
D) Both (II) and (III) above
سؤال
Which of the following is true for JNDI?

A) Database service
B) Naming and Directory Service
C) Network Service
D) Web Service
سؤال
Which method of the request object is used to extract values of the input fields in a form when it is submitted?

A) getParameter
B) getParameterNames
C) getValues
D) putValues
سؤال
Which of the following is true for CORBA?

A) Protocol for distributed computing
B) Database specification
C) Specification for distributed objects
D) Both (c) and (d) above.
سؤال
Which EJB uses EJB-QL for query operations?

A) BMP Entity Bean
B) CMP Entity Bean
C) Session Bean
D) Message-Driven Bean
سؤال
Which of the following is true for Java Bean?

A) It can not be a GUI component
B) It never implements serializable interface
C) It has zero-argument constructor
D) It is a distributed component
سؤال
Which of the following is not true for <jsp:useBean> tag in JSP page?

A) Locates a bean instance
B) Stores object reference of the bean in a variable
C) Creates an instance if fails to locate the bean instance
D) All the above.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 5: EJB, JSP, and Corba
1
Which interface should be implemented by a stateful session bean if it needs to synchronize its conversational state with the transactional context?

A) javax. transaction. UserTransaction
B) javax. ejb. SessionSynchronization
C) javax. ejb. EJBContext
D) javax. transaction. TransactionContext
javax. ejb. SessionSynchronization
2
Which of the following exceptions is thrown by the ejbLoad() method of an entity bean when the database row to be loaded is not found ?

A) NoSuchEntityException
B) EJBException
C) RemoteException
D) ObjectNotFoundException
NoSuchEntityException
3
Which of the following is the format for EJB deployment descriptor files?

A) XML
B) XSL
C) HTML
D) Java
XML
4
EJB is a

A) Middleware
B) Scalable component architecture
C) Component architecture to integrate legacy systems
D) All of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which of the following EJB has no state?
i. Message-Driven Bean.
ii. BMP Entity Bean.
iii. Stateless Session Bean.
iv. Stateful Session Bean.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which of the following is true for EJB?

A) EJB is server-side component architecture for distributed applications in Java
B) EJB facilitates scalable, secure and transaction-oriented applications
C) EJB supports portability and reusability
D) All of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of the following EJB type has no Remote interfaces?

A) Message-Driven Bean
B) BMP Entity Bean
C) CMP Entity Bean
D) none
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which role in EJB architecture is responsible for EJB Server?

A) EJB Deployer
B) Application Assembler
C) Network Engineer
D) Server Provider
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the EJB has a passive state in its life cycle?
I. Stateless Session Bean.
II. Message-Driven Bean.
III. BMP Entity Bean.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Both (I) and (II) above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which part of multi-tier enterprise application contains EJB component?

A) Application Server
B) Web Server
C) Database Server
D) Fat Client
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which of the following distributed object technology is/are not included in Java?
I. CORBA.
II. DCOM.
III. RMI.
IV. EJB.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Only (IV) above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following is not a property of EJB transaction?

A) Atomicity
B) Consistency
C) Isolation
D) Distributed
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which of the following is not true for servlet?

A) It is persistent
B) Platform independent
C) High performance
D) It is single threaded.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which JSP tag is used to transfer processing to another JSP page?

A) <jsp:include>
B) <jsp:forward>
C) <jsp:redirect>
D) <jsp:useBean>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which of the following is an approach for state maintenance in Web applications?

A) Hidden Form Field
B) URL Rewriting
C) Cookies
D) All of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following is not a container for EJB?
I. Internet Information Server.
II. Java System Application Server.
III. Tomcat.
IV. WebLogic.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which EJB usually represents persistent data?

A) Entity Bean
B) Stateless Session Bean
C) Stateful Session Bean
D) Message-Driven Bean
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which is least visibility scope for Java bean in JSP?

A) Page
B) Session
C) Request
D) Application
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which of the following is/are true for JSP technology?
I. It is persistent.
II. Platform independent.
III. Browser executes the code.

A) Only (I) above
B) Only (II) above
C) Both (I) and (II) above
D) Both (II) and (III) above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of the following is true for JNDI?

A) Database service
B) Naming and Directory Service
C) Network Service
D) Web Service
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which method of the request object is used to extract values of the input fields in a form when it is submitted?

A) getParameter
B) getParameterNames
C) getValues
D) putValues
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which of the following is true for CORBA?

A) Protocol for distributed computing
B) Database specification
C) Specification for distributed objects
D) Both (c) and (d) above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which EJB uses EJB-QL for query operations?

A) BMP Entity Bean
B) CMP Entity Bean
C) Session Bean
D) Message-Driven Bean
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following is true for Java Bean?

A) It can not be a GUI component
B) It never implements serializable interface
C) It has zero-argument constructor
D) It is a distributed component
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following is not true for <jsp:useBean> tag in JSP page?

A) Locates a bean instance
B) Stores object reference of the bean in a variable
C) Creates an instance if fails to locate the bean instance
D) All the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.