aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes mock exam question on mapping collections Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "mock exam question on mapping collections" Watch "mock exam question on mapping collections" New topic
Author

mock exam question on mapping collections

subba rao
Greenhorn

Joined: Apr 24, 2008
Posts: 24
A developer wants to model the grades for a student as a Map<course, integer>. Assume that
Student and Course are entitles, and that grades are modelled by integers. Which of the following
two statements are correct? (Choose two)
A. The developer can model the grades as an element collection in the Student entity.
B. The developer can model the grades as a one To Many relationship in the Student entity.
C. The mapping for the key of the map can be specified by the @MapKeycolumn annotation.
D. The mapping for the value of the map can be specified by the @Column annotation

In my view answer should be A,D;but actual answer was A,C

An application that uses container-managed transaction demarcation creates a query within an
active transaction and receives a QueryTimeoutException. Which of those scenarios describes what
happens to the active transaction?

A. The statement and the transaction continue.
B. The query is recreated within the current transaction.
C. The statement and the transaction are marked for rollback.
D. The statement is rolled back, but the transaction continues.

In my view answer should be D;but actual answer was C
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: mock exam question on mapping collections
 
Similar Threads
To Nikhil Pendharkar for IBM 287
IBM 287 ICE TEST
Answers of Sun's Free Proficiency Assessment
287 Pre-assessment test questions - Please answer
long post IBM.158