Asp .Net Interview Question and Answer | Web Application | Session 06

51. What’s a Windows process?
Ans: It’s an application that’s running and had been allocated memory.

52. What is SOAP and how does it relate to XML?
Ans: The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments. SOAP consists of three components: an envelope, a set of encoding rules, and a convention for representing remote procedure calls. Unless experience with SOAP is a direct requirement for the open position, knowing the specifics of the protocol, or how it can be used in conjunction with HTTP, is not as important as identifying it as a natural application of XML.

53. What is main difference between Global.asax and Web.Config?
Ans:ASP.NET uses the global.asax to establish any global objects that your Web application uses. The .asax extension denotes an application file rather than .aspx for a page file. Each ASP.NET application can contain at most one global.asax file.
Where as Web.config , it is applicable to only one application. i.e each ASP.NET web application will contain at least web.config file. We can also write the connection string in web .config.

54. What is the difference between the value-type and reference-type?
Ans: Value Type: bool, byte, char, int, double, flot , long, sbyte, short, decimal, strut, uint etc.
Value Types are stored in the stack.
Value Types are those data type which size are fix, such as integer, float…..etc
Reference Type: class, object, Delegate, interface, String etc
Refence Type are stored in the Heap.
Reference Type are those data type which size are not fix, such as string,object…..it use heap to store the address first variable value.

55. What’s the difference between struct and class in C#?
Ans: 1. Structs are value type. They are stored as a stack on memory.
              Class is reference type. They are stored as a Heap on memory
          2. Structs constructor must contain a parameter and can not have default constructor.
              Class constructor may contain no parameter.
          3. Structs can not inherite from a structure.
              Class can inherita from class.
          4. Structs can not declare destructor.
              Class Can declare destructor.

56. To test a Web service you must create a windows application or Web application to consume this service?
Ans: The webservice comes with a test page and it provides HTTP-GET method to test. 

57. What is the transport protocol you use to call a Web service?
Ans: SOAP is the preferred protocol.

58. Can you give an example of what might be best suited to place in the Application Start and Session Start subroutines?
Ans: This is where you can set the specific variables for the Application and Session objects.

59. Where do you store the information about the user’s locale?
Ans: System.Web.UI.Page.Culture

60. Where does the Web page belong in the .NET Framework class hierarchy?
Ans: System.Web.UI.Page



Previous Next


:: Click the links below for similar type Questions and answers ::

0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes