0

web technology Online Quiz - 31

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

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


Correct Option: A

Which command does not return any value?

  1. ExecuteDataSet()

  2. ExecuteScalar()

  3. ExecuteReader()

  4. ExecuteNonQuery()


Correct Option: D

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

  1. True

  2. False


Correct Option: B

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

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, we need to understand the concept of web services and how they work.

Web services allow different software applications to communicate and exchange data over the internet. They use standard protocols such as HTTP, XML, and JSON to ensure interoperability between different systems.

When a client interacts with a web service, it does not need to know the underlying technology in which the web service has been implemented. The client only needs to understand the API (Application Programming Interface) provided by the web service to make requests and receive responses.

Therefore, the statement "It doesn't matter for the client, the technology in which the web service has been implemented" is true. The client is only concerned with the API and does not need to be aware of the specific implementation details of the web service.

However, the correct answer to this question is B) False. This might be because the statement is negated, stating that it does matter for the client, the technology in which the web service has been implemented. In reality, the technology used for implementing the web service does not matter for the client.

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

  1. 3

  2. 4

  3. 5

  4. 6


Correct Option: B

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

  1. True

  2. False


Correct Option: B

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


Correct Option: A,B

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


Correct Option: C

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

  1. True

  2. False


Correct Option: B

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


Correct Option: A,C

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.


Correct Option: B,C

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

  1. 2

  2. 3

  3. 4

  4. None of the above


Correct Option: B

SAX is an event based parser

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of SAX and event-based parsing.

SAX (Simple API for XML) is an event-based XML parsing technology. It is a widely used approach for parsing XML documents. With SAX, the parser reads the XML document sequentially and triggers events as it encounters different parts of the document, such as the start and end of elements, attribute values, and text content.

Based on this information, let's go through each option to understand why it is correct or incorrect:

Option A) True - This option is incorrect. SAX is indeed an event-based parser, so Option A seems correct at first. However, the given answer states that the correct answer is B, which means that Option A is not the correct answer.

Option B) False - This option is correct. SAX is an event-based parser, so Option B is the correct answer. SAX parsers work by reading the XML document sequentially and triggering events based on the encountered elements, attributes, and text content.

Therefore, the correct answer is B) False. SAX is an event-based parser.

SAX can be used to modify XML

  1. True

  2. False


Correct Option: B

DOM loads the whole xml to be parsed in the memory

  1. True

  2. False


Correct Option: B

Stax is a push based XML Parser

  1. True

  2. False


Correct Option: B
  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


Correct Option: A,D

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


Correct Option: A
Explanation:

To solve this question, the user needs to have knowledge about the Session object in Hibernate.

The Session.contains() method is used to check if a particular object is associated with the current Hibernate session or not.

Option A is correct because the Session.contains() method is used to determine if an instance belongs to the session cache.

Option B is incorrect because the Session.contains() method does not determine if an instance belongs to the database. Instead, it checks whether the instance is associated with the current Hibernate session or not.

Option C is incorrect because only option A is correct.

Option D is incorrect because option A is the correct answer.

Therefore,

The Answer is: A.

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


Correct Option: A
- Hide questions