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)
Questions
Which is the default Provider Name of the Providers used to access the DataBase?
- System.Data.SqlClient
- System.Data.OracleClient
- System.Data.Odbc
- System.Data.Oledb
Which command does not return any value?
- ExecuteDataSet()
- ExecuteScalar()
- ExecuteReader()
- ExecuteNonQuery()
A Web service is a function/method exposed on the web
- True
- False
It doesn't matter for the client, the technology in which the web service has been implemented
- True
- False
How many number of parts are there in a SOAP document ?
- 3
- 4
- 5
- 6
REST webservices don't require any wrapper around Http to communicate, the way SOAP based web services do ?
- True
- False
A web service is called over which of the following protocols, please select the correct options
- SOAP
- Http
- RMI-IIOP
- RPC
What is WSDL
- Its a protocol for calling services
- Its a registry for discovering services
- Its an xml file for defining the methods that can be called over the web.
- None of the above
Axis 2 can be used to generate both SOAP and REST web services
- True
- False
What are advantages of writing web services as compared to other native ways like EJB, COM/DCOM and CORBA.
- Open Standard
- Secure
- Text Based Response
- All of Them
What is Axis ?
- A Web service
- A tool to generate Web services from java classes.
- A tool to generate web service stubs.
- All of the above.
How many different types of parsers are available to parse XMLs ?
- 2
- 3
- 4
- None of the above
SAX is an event based parser
- True
- False
SAX can be used to modify XML
- True
- False
DOM loads the whole xml to be parsed in the memory
- True
- False
Stax is a push based XML Parser
- True
- False
PL/SQL raises an exception in which of the following scenarios
- When a SELECT statement returns no rows
- When the datatypes of SELECT clause and INTO clause do not match
- When INTO statement is missing in the SELECT statement
- When a SELECT statement returns more than one row
Does hibernate allow mixing table-per-class hierarchy and table-per-subclass strategies?
- Yes
- No
- Can't say
- None of the above
Which statement is correct ?
- Session.contains() method to determine if an instance belongs to the session cache.
- Session.contains() method to determine if an instance belongs to the data base
- Both are correct
- None of the above
What does session.evict() method do ?
- remove the object and its collections from the first level cache
- remove the object and its collections from the second level cache
- remove the object and its collections from the data base
- None of the above