0

web technology Online Quiz - 26

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

What is the last stage of the Web forms lifecycle?

  1. Init

  2. PreRender

  3. InitComplete

  4. Page_unload

  5. LoadComplete


Correct Option: D

How does ASP.NET stores SessionID's default?

  1. In Cache

  2. In Cookies

  3. In A Global Variable

  4. In URL


Correct Option: B

Do i need IIS to develop a Web application in ASP.NET 2.0?

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, you need to understand the requirements for developing a web application in ASP.NET 2.0.

Option A) True - This option is incorrect because you do not need IIS (Internet Information Services) to develop a web application in ASP.NET 2.0.

Option B) False - This option is correct because you do not need IIS to develop a web application in ASP.NET 2.0. ASP.NET 2.0 includes a built-in web server called "Cassini" or "ASP.NET Development Server" that can be used for development and testing purposes without the need for IIS.

The correct answer is B. This option is correct because you do not need IIS to develop a web application in ASP.NET 2.0.

What namespaces does the Web Page belong in the .NET Framework class hierarchy?

  1. System.Web.Control

  2. System.Web.RootBuilder

  3. System.Web.UserControl

  4. System.Web.UI.Page


Correct Option: D
  1. Interger,String and Date

  2. Interger,String and float

  3. Interger,String and bool

  4. Decimal,String and Date


Correct Option: A

What base class do all Web Forms Inherit from?

  1. Window class

  2. Web class

  3. Form class

  4. Page class


Correct Option: D
Explanation:

To solve this question, the user needs to have knowledge about the basic concepts of web forms and their inheritance in ASP.NET.

The correct answer is:

The Answer is: D

Explanation:

All web forms in ASP.NET inherit from the Page class. This class provides a set of methods, properties, and events that are used to build and interact with web pages. The Page class is defined in the System.Web.UI namespace, and it is the base class for all web forms in ASP.NET. The Page class provides a number of important features, such as the ability to handle user input, display dynamic content, and manage state information. Therefore, option D is the correct answer.

Option A is incorrect because the Window class is not related to web forms in ASP.NET.

Option B is also incorrect because there is no such thing as a Web class in ASP.NET.

Option C is incorrect because the Form class is not the base class for web forms in ASP.NET. It is used to create Windows Forms applications, not web forms.

What DataType is returned in IsPostback property?

  1. bit

  2. boolean

  3. int

  4. string


Correct Option: D

AI Explanation

To answer this question, let's understand the IsPostBack property in the context of web development.

The IsPostBack property is commonly used in web development frameworks, such as ASP.NET, to determine whether a web page is being loaded for the first time or if it is a postback (i.e., a form submission or a server-side event triggered by a control).

The IsPostBack property returns a boolean value indicating whether the current request is a postback or not. In other words, it returns true if the page is being loaded as a result of a postback and false if it is the initial page load.

Now, let's go through each option to understand why it is correct or incorrect:

Option A) bit - This option is incorrect because the IsPostBack property does not return a bit data type. It returns a boolean value.

Option B) boolean - This option is correct because the IsPostBack property returns a boolean value indicating whether the current request is a postback or not.

Option C) int - This option is incorrect because the IsPostBack property does not return an int data type. It returns a boolean value.

Option D) string - This option is incorrect because the correct answer is not string. The IsPostBack property does not return a string data type.

Therefore, the correct answer is B) boolean. This option is correct because the IsPostBack property returns a boolean value indicating whether the current request is a postback or not.

What is the extension of a web user control file?

  1. .Asmx

  2. .Ascx

  3. .Aspx

  4. .Aucx


Correct Option: B

How do you register a user control?

  1. Add Tag prefix, Tag name

  2. Add Source, Tag prefix

  3. Add Src, Tagprefix, Tagname

  4. None of these


Correct Option: B

AI Explanation

To register a user control in ASP.NET, you need to add the source and tag prefix. Let's go through each option to understand why it is correct or incorrect:

Option A) Add Tag prefix, Tag name - This option is incorrect because it does not include the source attribute, which is necessary to specify the location of the user control.

Option B) Add Source, Tag prefix - This option is correct because it includes both the source attribute and the tag prefix. The source attribute specifies the location of the user control, and the tag prefix allows you to use the user control in your markup.

Option C) Add Src, Tagprefix, Tagname - This option is incorrect because it uses "Src" instead of "Source" to specify the location of the user control. The correct attribute name is "Source".

Option D) None of these - This option is incorrect because the correct answer is option B, which includes the source and tag prefix.

The correct answer is B. This option is correct because it includes both the source attribute and the tag prefix, which are required to register a user control in ASP.NET.

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

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

  1. 3

  2. 4

  3. 5

  4. 6


Correct Option: B

AI Explanation

To answer this question, you need to understand the structure of a SOAP document.

A SOAP (Simple Object Access Protocol) document consists of four main parts:

  1. Envelope: The envelope is the root element of a SOAP message and contains the entire SOAP message. It defines the XML namespace and the encoding style used in the message.

  2. Header: The header is an optional part of a SOAP message and contains additional information about the message, such as authentication credentials or transaction information.

  3. Body: The body is a required part of a SOAP message and contains the actual data being sent or requested. It typically includes the method or operation to be performed and any parameters or arguments.

  4. Fault: The fault is an optional part of a SOAP message and is used to indicate an error or exception that occurred during the processing of the message. It provides details about the error, such as an error code or error message.

Let's go through each option to understand why it is correct or incorrect:

Option A) 3 - This option is incorrect because a SOAP document consists of four parts: envelope, header, body, and fault.

Option B) 4 - This option is correct because a SOAP document consists of four parts: envelope, header, body, and fault.

Option C) 5 - This option is incorrect because a SOAP document consists of four parts, not five.

Option D) 6 - This option is incorrect because a SOAP document consists of four parts, not six.

The correct answer is B) 4. This option is correct because a SOAP document consists of four parts: envelope, header, body, and fault.

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

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of a web service.

A web service is a software system designed to support interoperable machine-to-machine interaction over a network. It is a collection of functions or methods that can be accessed remotely over the internet using standard protocols such as HTTP.

The statement "A Web service is a function/method exposed on the web" is incorrect. A web service is not just a single function or method. It is a collection of functions or methods that can be accessed remotely.

Therefore, the correct answer is B) False.

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

  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

AI Explanation

To answer this question, we need to understand the different protocols used for calling web services.

Option A) SOAP - This option is correct. SOAP (Simple Object Access Protocol) is a protocol used for exchanging structured information in web services using XML. It allows applications to communicate and invoke methods remotely.

Option B) HTTP - This option is correct. HTTP (Hypertext Transfer Protocol) is the primary protocol used for communication between a client and a server over the internet. It is widely used to call web services as it allows for the exchange of data between the client and the server.

Option C) RMI-IIOP - This option is incorrect. RMI-IIOP (Remote Method Invocation over Internet Inter-ORB Protocol) is a protocol that allows objects in different Java Virtual Machines to communicate with each other. It is not specifically used for calling web services.

Option D) RPC - This option is incorrect. RPC (Remote Procedure Call) is a protocol that allows a program running on one computer to execute code on a remote computer. While it can be used for distributed computing, it is not commonly used for calling web services.

The correct answer is A, B. Web services can be called over the SOAP and HTTP protocols. SOAP is used for structured communication between applications, while HTTP is the primary protocol for communication over the internet.

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

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

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

AI Explanation

To answer this question, we need to understand what an "axis" is in the context of web services.

Option A) A Web service - This option is incorrect because an "axis" is not a web service itself. Instead, it is a tool or framework used to work with web services.

Option B) A tool to generate Web services from java classes - This option is correct. Axis is a widely used tool in the Java ecosystem that allows developers to generate web services from Java classes. It provides the necessary infrastructure and functionality to expose Java classes as web services.

Option C) A tool to generate web service stubs - This option is also correct. Axis can generate web service stubs, which are client-side code that allows applications to interact with web services.

Option D) All of the above - This option is incorrect. While Axis can generate web services from Java classes and web service stubs, it is not a web service itself.

Therefore, the correct answer is B, C. Axis is a tool to generate web services from Java classes and also generate web service stubs.

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

  1. True

  2. False


Correct Option: B

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
- Hide questions