Web Technologies and Backend Frameworks

Quiz covering web technologies including ASP.NET/IIS configuration, AJAX, web services, and Hibernate ORM for database operations in web applications

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Is the Session threadsafe in Hibernate ?

  1. TRUE
  2. FALSE
  3. No matter
  4. None of the above
Question 2 Multiple Choice (Single Answer)

How can you make a property be read from the database but not modified in anyway

  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
Question 3 Multiple Choice (Single Answer)

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
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

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
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

What does session.createQuery("Query").scroll() return ?

  1. ListResultSet
  2. ResultSet
  3. ScrollableResultSet
  4. ScrollableResult
Question 8 Multiple Choice (Single Answer)

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 <mapping> elements
  3. both a and b
  4. none of the above
Question 9 Multiple Choice (Single Answer)

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()
Question 10 Multiple Choice (Single Answer)

For every webservice developed, the corresponding ___________ document is distributed to the clients.

  1. WSDL
  2. SOAP
  3. UDDI
  4. HTTP
Question 11 Multiple Choice (Single Answer)

AJAX stands for?

  1. Aysnchronous Javascript and XML
  2. Application Javascript and XML
  3. Asynchronous JDK and XML
  4. Application JDK and XML
Question 12 Multiple Choice (Single Answer)

What is the size of a .Net object ?

  1. 4 bytes
  2. 2 bytes
  3. 6 bytes
  4. 1 byte
Question 13 Multiple Choice (Single Answer)

_______________ Involves writing the executable code for an application in such a way that makes it culture-neutral and language-neutral.

  1. Localization
  2. Globalization
  3. Translate
  4. Nationalize
Question 14 Multiple Choice (Single Answer)

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

  1. Public
  2. Satellite
  3. Private
  4. None
Question 15 Multiple Choice (Single Answer)

___________ 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
Question 16 Multiple Choice (Single Answer)

Web.config files are __________. The Machine.config file is ________.

  1. Required, required
  2. Required, Optional
  3. Optional, Optional
  4. Optional, Required
Question 17 True/False

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
Question 18 True/False

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

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

Consider the following code: int x, y, z; y = 1; z = 5; x = 0 - (++y) + z++; After execution of this, what will be the values of x, y and z?

  1. x = 4, y = 1, z = 5
  2. x = -7, y = 1, z = 5
  3. x = 4, y = 2, z = 6
  4. x = 3, y = 2, z = 6