Hibernate ORM and COBOL Programming
Questions covering Hibernate ORM framework (mapping, configuration, architecture) and COBOL programming (file operations, statements)
Questions
A READ statement can have AT END clause and INVALID KEY clause, but both must not appear simultaneously.
- True
- False
Which phrase delimits the the scope of MULTIPLY statement.
- END MULTIPLY
- END-MULTIPLY
- STOP MULTIPLY
- STOP-MULTIPLY
How many types of file organisation is there in COBOL.
- 2
- 3
- 4
- 5
How many types of file access are there in COBOL.
- 2
- 3
- 4
- 5
The following statement WRITE OUT-REC. Which one of the following modes of operating the Sequential file is not true
- OPEN INPUT
- OPEN INPUT-OUTPUT
- OPEN EXTEND
- OPEN OUTPUT
Which of the following does hibernate take care of
- mapping java classes to database tables
- mapping of java data types to sql data types
- data querying and retreival
- all the above
Identify one of the main component in hibernate architecture
- Collection Management
- Session Management
- Application management
- Transaction Management
Hibernate makes use of which class?
- Pojo classes
- Poto classes
- Session classes
- Persistent classes
First step in hibernate application is to :
- Retreive Hibernate session
- persist objects
- Save session
- config hibernate.cfg.xml
For an entire application in hibernate
- only one session factory is created
- depends on the application developed
- depends on thesession interfaces to be created
- Atleast 2 factories has to be created
what are the features of Hibernate?
- Object oriented Query language
- Transparent persistence without byte code processing
- High Perfomance
- Automatic Composite Key generation
The Tag in hibernate. cfg.xmlfile has which of the following as sub tags
- <generator>
- <session-factory>
- <class-name>
- <property-name>
just like any other language ,hibernate can use identifiers internally ,but we could lose the flexibility of application
- True
- False
Every persistent class needs to be mapped with its configuration file
- True
- False
Which one of the following is not true about hibernate
- doest not allow database migration
- allow programmers to store objects directly into databse
- does not require build time processing such as byte code manipulation
- has a built in support of transaction management
element in a mapping file is used to
- represent primary key cloumn and assosciate attribute in domain object
- map a table with the corresponding class
- represent all attributes available in domain object
- both 1 & 2
What are the attributes found in a tag ?
- increment
- sequence
- hilo
- foreign
What does element in mapping documnet signify?
- maps domain object with the corresponding entity in databse
- mapping from property to primary cloumn
- generates unique identifiers for instances
- declares a persistent ,Java Bean style
Which of the following is valid usage of tag/
- <many-to-one="product" class="Product" cloumn="PRODUCT_ID"/>
- <many-to-one:="product" class:="Product" cloumn:="PRODUCT_ID">
- <many-to-one="product" class="Product" cloumn="PRODUCT_ID">
- <many-to-one="product" class="PRODUCT_ID" cloumn="Product"/>
What does the attribute "auto-import" in root element signify?
- imports name of database schema
- permits to access all properties automatically
- determines wether unqualified names can be used in query language
- imports name of database catalog