1. Question:Define Interfaces. 

    Answer
    An interface is similar to a class, but it provides a specification rather than an implementation for its members. An interface contains definitions for a group of related functionalities that aclass or a struct can implement.

    1. Report
  2. Question:Define Delegates and Events. Define Func and Action Delegates. 

    Answer
    Delegates: A delegate dynamically wires up a method caller to its target method. There  are two aspects to a delegate: type and instance.Events: Events are pairs of methods, appropriately decorated in IL to tie them together and let languages know that the methods represent events. The methods correspond to add and remove operations.

    1. Report
  3. Question:Static vs Non static members. 

    Answer
    1. static members are one per class but non-static members are one per instance.
    2. static members are accessed by their class name which encapsulates them, but non-static members are accessed by object reference.
    3. static members can't use non-static methods without instantiating an object, but non-static members can use static members directly.
    4. static constructor is used to initialize static fields, but for non-static fields normal instance constructor is used.

    1. Report
  4. Question:Define collection in c#. 

    Answer
    A collection is a set of similarly typed objects that are grouped together. The .NET Framework provides a standard set of types for storing and managing collection of objects.

    1. Report
  5. Question:Define Generics and Type Parameters? 

    Answer
    Generics type Parameter
    In a generic type or method definition, a type parameters is a placeholder for a specific type that a client specifies when they instantiate a variable of the generic type
    GenericList<float> list1 = new GenericList<float>();

    1. Report
  6. Question:Define Fluent syntax and query expression. 

    Answer
    Fluent Syntax: Fluent syntax relates to an implementation of an object oriented API that aims to provide more readable code.Fluent syntax in the most flexible and fundamental.Query expression:A query expression is a query expressed in query syntax. A query expression is a first-class language construct.A query expression consists of a set of clauses written in a declarative syntax similar to SQL or XQuery.

    1. Report
  7. Question:Write down the different Method to Navigate Pages. 

    Answer
    	Client-side navigation : Client-side code or markup allows a user to request a new webpage. 
    	Cross-page posting :  A control and form are configured to post back to a webpage that is different than the one that made the original request.
    	Client-side browser redirect  Server-side code sends a message to the browser,informing the browser to request a different webpage from the server.
    	server-side transfer:  Server-side code transfers control of a request to a different webpage.

    1. Report
  8. Question:What do you mean by master pages? How can we change the master pages programmatically? 

    Answer
    [strong]Master Page:[/strong] An ASP.NET master page defines the common layout of the pages in your site. A master page is defined with the file extension .master.
    We can change Master Page programmatically using MasterPageFile property.

    1. Report
  9. Question:Explain the usages of Copy Web Tool? 

    Answer
    The Copy Web tool can copy individual files or an entire website. You can select a source and a remote site and move files between them. You can also use the tool to synchronize files.

    1. Report
  10. Question:What do you mean by master pages? How can we change the master pages programmatically? 

    Answer
    [a]Master Page:[\a] An ASP.NET master page defines the common layout of the pages in your site. A master page is defined with the file extension .master.
    We can change Master Page programmatically using MasterPageFile property.

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd