0

web technology Online Quiz - 30

Description: web technology Online Quiz - 30
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Is the Session threadsafe in Hibernate ?

  1. TRUE

  2. FALSE

  3. No matter

  4. None of the above


Correct Option: B
  1. By using the insert="false" and update="false" attributes.

  2. By using the isinsert="false" and isupdate="false" attributes

  3. By using the isinsert="no" and isupdate="no" attributes

  4. None


Correct Option: A

Which statement is correct ?

  1. A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed

  2. A Session will obtain a JDBC Connection (or a Datasource) on object create

  3. A Session has no relation with JDBC Connection (or a Datasource)

  4. none of the above


Correct Option: A

How to enable query cache in hibernate

  1. hibernate.cache.query_cache true

  2. hibernate.cache.use_query_cache true

  3. hibernate.cache.query_cache yes

  4. none


Correct Option: B

If you are not certain that a matching row exists in the database then which method is the best ?

  1. Session.load();

  2. Session.get();

  3. Session.fetch();

  4. None of the above


Correct Option: B

Which statement is correct?

  1. bag has index column

  2. bag permits duplicate element values

  3. bag does not permits duplicate element values

  4. None


Correct Option: B
  1. ListResultSet

  2. ResultSet

  3. ScrollableResultSet

  4. ScrollableResult


Correct Option: D

How can the mapping files be configured in Hibernate?

  1. Mapping files can be added to Configuration in the application code

  2. They can be configured in hibernate.cfg.xml using the elements

  3. both a and b

  4. none of the above


Correct Option: C

It is possible to re-load an object and all its collections at any time, using the xxxx() method. This is useful when database triggers are used to initialize some of the properties of the object.What is the xxxx() method ?

  1. refresh();

  2. flush();

  3. fetch();

  4. load()


Correct Option: A

The dmcl.ini specifies?

  1. Content Server Information

  2. Application Server Information

  3. Connection Broker Information

  4. Database Information


Correct Option: C
  1. Aysnchronous Javascript and XML

  2. Application Javascript and XML

  3. Asynchronous JDK and XML

  4. Application JDK and XML


Correct Option: A
  1. 4 bytes

  2. 2 bytes

  3. 6 bytes

  4. 1 byte


Correct Option: C

______________ Assemblies are resource-only assemblies that contain only culture-specific resources?

  1. Public

  2. Satellite

  3. Private

  4. None


Correct Option: B

___________ Error is returned to any browser attempting to directly request a configuration file.

  1. HttpAccess 404

  2. HttpAccess 405

  3. HttpAccess 403

  4. HttpAccess 406


Correct Option: C

Web.config files are _______. The Machine.config file is _____.

  1. Required, required

  2. Required, Optional

  3. Optional, Optional

  4. Optional, Required


Correct Option: D

Whenever the "&&" operator is used, such as in: exp1 && exp2 where exp1 and exp2 are boolean expressions, both the boolean expressions are not always evaluated

  1. True

  2. False


Correct Option: A

An array in the Java programming language has the ability to store many different types of values.

  1. True

  2. False


Correct Option: B
- Hide questions