0

programming languages Online Quiz - 136

Description: programming languages Online Quiz - 136
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Find the true statements, A. Final class cant be inherited. B. Abstract class cant be instantiated. C. Abstract class can be inherited.

  1. Only A & B

  2. Only B & C

  3. Only A & C

  4. A,B and C


Correct Option: D

In Object Oriented Programming, the concept of IS-A is based on which of the following?

  1. Inheritance

  2. Polymorphism

  3. Abstraction

  4. Modularization


Correct Option: A

Which of the following are mandatory when writing a POJO class?

  1. Implement a no-argument constructor

  2. provide an identifier property

  3. declare accessors for persistent fields

  4. all the above


Correct Option: A

The default_entity_mode is set to which mode by default?

  1. dynamic-map

  2. dom4j

  3. pojo

  4. None of the above


Correct Option: C

What does the attribute "batch-size" of the tag specify?

  1. batch size for fetching instances

  2. batch size for fetching instances by identifier

  3. both

  4. none


Correct Option: B

For the column name EMP_NAME in table EMP, the column mapping is described as below in the hbm xml. . Is this valid?

  1. True

  2. False


Correct Option: A
  1. Programmatic configuration

  2. using hibernate.properties configuration file

  3. using hibernate.cfg.xml

  4. all the above


Correct Option: D

Which tag in hibernate.cfg.xml is used to add a resource hbm xml for the current session factory instance?


Correct Option: C
  1. Table per Concrete class

  2. Table per Sub class

  3. Table per class Hierarchy

  4. all of the above


Correct Option: D

All the bitwise operators have the same level of operator precedence in Java

  1. True

  2. False


Correct Option: A

Two methods cannot have the same in Java

  1. True

  2. False


Correct Option: B

An Array can store many different types of values

  1. True

  2. False


Correct Option: B

When we implement an interface method,it should be declared as Public

  1. True

  2. False


Correct Option: A
- Hide questions