Web Backend Technologies: Hibernate, Web Services, and Database Access

Test your knowledge of backend web technologies including Hibernate ORM, web services (SOAP, REST, WSDL), XML parsing (StAX, DOM, SAX), and database access (PL/SQL, ADO.NET)

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which is the default Provider Name of the Providers used to access the DataBase?

  1. System.Data.SqlClient
  2. System.Data.OracleClient
  3. System.Data.Odbc
  4. System.Data.Oledb
Question 2 Multiple Choice (Single Answer)

Which command does not return any value?

  1. ExecuteDataSet()
  2. ExecuteScalar()
  3. ExecuteReader()
  4. ExecuteNonQuery()
Question 3 True/False

A Web service is a function/method exposed on the web

  1. True
  2. False
Question 4 True/False

It doesn't matter for the client, the technology in which the web service has been implemented

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

How many number of parts are there in a SOAP document ?

  1. 3
  2. 4
  3. 5
  4. 6
Question 6 True/False

REST webservices don't require any wrapper around Http to communicate, the way SOAP based web services do ?

  1. True
  2. False
Question 7 Multiple Choice (Multiple Answers)

A web service is called over which of the following protocols, please select the correct options

  1. SOAP
  2. Http
  3. RMI-IIOP
  4. RPC
Question 8 Multiple Choice (Single Answer)

What is WSDL

  1. Its a protocol for calling services
  2. Its a registry for discovering services
  3. Its an xml file for defining the methods that can be called over the web.
  4. None of the above
Question 9 True/False

Axis 2 can be used to generate both SOAP and REST web services

  1. True
  2. False
Question 10 Multiple Choice (Multiple Answers)

What are advantages of writing web services as compared to other native ways like EJB, COM/DCOM and CORBA.

  1. Open Standard
  2. Secure
  3. Text Based Response
  4. All of Them
Question 11 Multiple Choice (Multiple Answers)

What is Axis ?

  1. A Web service
  2. A tool to generate Web services from java classes.
  3. A tool to generate web service stubs.
  4. All of the above.
Question 12 Multiple Choice (Single Answer)

How many different types of parsers are available to parse XMLs ?

  1. 2
  2. 3
  3. 4
  4. None of the above
Question 13 True/False

SAX is an event based parser

  1. True
  2. False
Question 14 True/False

SAX can be used to modify XML

  1. True
  2. False
Question 15 True/False

DOM loads the whole xml to be parsed in the memory

  1. True
  2. False
Question 16 True/False

Stax is a push based XML Parser

  1. True
  2. False
Question 17 Multiple Choice (Multiple Answers)

PL/SQL raises an exception in which of the following scenarios

  1. When a SELECT statement returns no rows
  2. When the datatypes of SELECT clause and INTO clause do not match
  3. When INTO statement is missing in the SELECT statement
  4. When a SELECT statement returns more than one row
Question 18 Multiple Choice (Single Answer)

Does hibernate allow mixing table-per-class hierarchy and table-per-subclass strategies?

  1. Yes
  2. No
  3. Can't say
  4. None of the above
Question 19 Multiple Choice (Single Answer)

Which statement is correct ?

  1. Session.contains() method to determine if an instance belongs to the session cache.
  2. Session.contains() method to determine if an instance belongs to the data base
  3. Both are correct
  4. None of the above
Question 20 Multiple Choice (Single Answer)

What does session.evict() method do ?

  1. remove the object and its collections from the first level cache
  2. remove the object and its collections from the second level cache
  3. remove the object and its collections from the data base
  4. None of the above