Hibernate ORM and COBOL Programming

Questions covering Hibernate ORM framework (mapping, configuration, architecture) and COBOL programming (file operations, statements)

20 Questions Published

Questions

Question 1 True/False

A READ statement can have AT END clause and INVALID KEY clause, but both must not appear simultaneously.

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

Which phrase delimits the the scope of MULTIPLY statement.

  1. END MULTIPLY
  2. END-MULTIPLY
  3. STOP MULTIPLY
  4. STOP-MULTIPLY
Question 3 Multiple Choice (Single Answer)

How many types of file organisation is there in COBOL.

  1. 2
  2. 3
  3. 4
  4. 5
Question 4 Multiple Choice (Single Answer)

How many types of file access are there in COBOL.

  1. 2
  2. 3
  3. 4
  4. 5
Question 5 Multiple Choice (Single Answer)

The following statement WRITE OUT-REC. Which one of the following modes of operating the Sequential file is not true

  1. OPEN INPUT
  2. OPEN INPUT-OUTPUT
  3. OPEN EXTEND
  4. OPEN OUTPUT
Question 6 Multiple Choice (Multiple Answers)

Which of the following does hibernate take care of

  1. mapping java classes to database tables
  2. mapping of java data types to sql data types
  3. data querying and retreival
  4. all the above
Question 7 Multiple Choice (Single Answer)

Identify one of the main component in hibernate architecture

  1. Collection Management
  2. Session Management
  3. Application management
  4. Transaction Management
Question 8 Multiple Choice (Single Answer)

Hibernate makes use of which class?

  1. Pojo classes
  2. Poto classes
  3. Session classes
  4. Persistent classes
Question 9 Multiple Choice (Single Answer)

First step in hibernate application is to :

  1. Retreive Hibernate session
  2. persist objects
  3. Save session
  4. config hibernate.cfg.xml
Question 10 Multiple Choice (Single Answer)

For an entire application in hibernate

  1. only one session factory is created
  2. depends on the application developed
  3. depends on thesession interfaces to be created
  4. Atleast 2 factories has to be created
Question 11 Multiple Choice (Multiple Answers)

what are the features of Hibernate?

  1. Object oriented Query language
  2. Transparent persistence without byte code processing
  3. High Perfomance
  4. Automatic Composite Key generation
Question 12 Multiple Choice (Multiple Answers)

The Tag in hibernate. cfg.xmlfile has which of the following as sub tags

  1. <generator>
  2. <session-factory>
  3. <class-name>
  4. <property-name>
Question 13 True/False

just like any other language ,hibernate can use identifiers internally ,but we could lose the flexibility of application

  1. True
  2. False
Question 14 True/False

Every persistent class needs to be mapped with its configuration file

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

Which one of the following is not true about hibernate

  1. doest not allow database migration
  2. allow programmers to store objects directly into databse
  3. does not require build time processing such as byte code manipulation
  4. has a built in support of transaction management
Question 16 Multiple Choice (Single Answer)

element in a mapping file is used to

  1. represent primary key cloumn and assosciate attribute in domain object
  2. map a table with the corresponding class
  3. represent all attributes available in domain object
  4. both 1 & 2
Question 17 Multiple Choice (Multiple Answers)

What are the attributes found in a tag ?

  1. increment
  2. sequence
  3. hilo
  4. foreign
Question 18 Multiple Choice (Single Answer)

What does element in mapping documnet signify?

  1. maps domain object with the corresponding entity in databse
  2. mapping from property to primary cloumn
  3. generates unique identifiers for instances
  4. declares a persistent ,Java Bean style
Question 19 Multiple Choice (Single Answer)

Which of the following is valid usage of tag/

  1. <many-to-one="product" class="Product" cloumn="PRODUCT_ID"/>
  2. <many-to-one:="product" class:="Product" cloumn:="PRODUCT_ID">
  3. <many-to-one="product" class="Product" cloumn="PRODUCT_ID">
  4. <many-to-one="product" class="PRODUCT_ID" cloumn="Product"/>
Question 20 Multiple Choice (Single Answer)

What does the attribute "auto-import" in root element signify?

  1. imports name of database schema
  2. permits to access all properties automatically
  3. determines wether unqualified names can be used in query language
  4. imports name of database catalog