ASP.NET Sample Papers

Q.- Which of the following is not a core layer in Web Service Protocol Stack?

    1. 1. Service Transport
    2. 2. XML Messaging
    3. 3. Service Description
    4. 4. Service Locator

4

Q.- Which among the following is NOT considered as .NET Exception class?

    1. 1. Exception
    2. 2. StackUnderflow Exception
    3. 3. File Found Exception
    4. 4. Divide By zero Exception

2,3

Q.- Among the given collections which is the I/O index based?

    1. 1. ArrayList
    2. 2. BitArray
    3. 3. Stack
    4. 4. Queue

Both 1 and 2

Q.- Attribute must be set on a validator control for the validation to work.

    1. 1. ControlToValidate
    2. 2. ControlToBind
    3. 3. ValidateControl
    4. 4. Validate

1

Q.- Which of the following class/classes supports the task of uploading and downloading the file:

    1. 1. WebRequest
    2. 2. WebResponse
    3. 3. WebClient
    4. 4. All of the above

3

Q.- Which of the following is the way to monitor the web application?

    1. 1. MMC Event viewers
    2. 2. Performance logs
    3. 3. Alerts Snap-ins
    4. 4. All of the above

4

Q.- Which of the following is not the member of class?

    1. 1. Static function
    2. 2. Friend function
    3. 3. Const function
    4. 4. Virtual function

2

Q.- The correct about a HashTable collection is?

    1. 1. It is a keyed collection
    2. 2. It is a ordered collection
    3. 3. It is an indexed collection
    4. 4. It implements a IDictionaryEnumerator interface in its inner class

Both 1 and 2

Q.- The GridView control in ASP.NET has which of the following features

    1. 1. Automatic data binding
    2. 2. Automatic paging
    3. 3. Both 1 and 2
    4. 4. None of the above

3

Q.- Which of the following is the necessary condition for implementing delegates?

    1. 1. Class declaration
    2. 2. Inheritance
    3. 3. Run-time Polymorphism
    4. 4. Exceptions

1

Q.- What are the client-side state management options that ASP.NET supports?

    1. 1. Application
    2. 2. Session
    3. 3. Querystring
    4. 4. Both 1 and 2

3

Q.- Which control is required for every page that have AJAX Extensions for ASP.NET?

    1. 1. UpdatePanel
    2. 2. ScriptManager
    3. 3. ContentPanel
    4. 4. None of the above

2

Q.- Which of the following jQuery method filter out elements from a set of matched elements?

    1. 1. filter( selector )
    2. 2. setFilter( selector )
    3. 3. putFilter( selector )
    4. 4. None of the above

1

Q.- Select the relevant output for the following set of code: static void Main(string[] args) { int a = 4; int b = 5; int c = 6; int d = 8; if (((a * b / c) + d) >= ((b * c + d ) / a)) { Console.WriteLine("Line 1 - a is greater to b"); Console.WriteLine((a * b / c) + d); } else { Console.WriteLine("Line 1 - a is not greater to b"); Console.WriteLine((b * c + d )/ a); } }

    1. 1. �Line 1 � a is greater to b� 11
    2. 2. �Line 1 � a is not greater to b� 9
    3. 3. Both are equal
    4. 4. None of the above

1

Q.- What is/are true about master page? Choose the correct option.

    1. 1. You can add more than one master page in a website.
    2. 2. Master page can be nested.
    3. 3. ContentPlaceHolder control is required on a content page.
    4. 4. Both 1 and 2

4

Q.- How many types of parameter supported by OutputCache?

    1. 1. VaryByParam
    2. 2. VaryByControl
    3. 3. VaryByHeader
    4. 4. VaryByCustom

All of the above

Q.- Which is the subset of SQL commands used to manipulate Oracle Database structures

    1. 1. Data Definition Language (DDL)
    2. 2. Data Manipulation Language (DML)
    3. 3. Both 1 and 2
    4. 4. None

1

Q.- When do LINQ queries actually run?

    1. 1. When they are iterated over in a foreachloop
    2. 2. When calling the ToArray() method on the range variable
    3. 3. When calling the ToList() method on the range variable
    4. 4. All of the above

4

Q.- You can define one namespace inside another namespace.

    1. 1. TRUE
    2. 2. FALSE
    3. 3. 1
    4. 4.

Q.- An alternative way of displaying text on web page is using

    1. 1. asp:label
    2. 2. asp:listitem
    3. 3. asp:button
    4. 4. 1

Q.- Select the correct statement about an Exception

    1. 1. It occurs during loading of program
    2. 2. It occurs during Just-In-Time compilation
    3. 3. It occurs at run time
    4. 4. All of the above

3

Q.- Which control is required inside a content page to reference ContentPlaceHolder control inside the master page?

    1. 1. Content control on a content page
    2. 2. ContentPlaceHolder on a content page.
    3. 3. PlaceHolder control is required on content page
    4. 4. None of the above

1

Q.- Which of the following are the interfaces defined by the namespace System.Net?

    1. 1. IAuthenticationModule
    2. 2. WebRequestCreate
    3. 3. WebProxy
    4. 4. HttpResponseHeader

1,2

Q.- What type of authentication accepts login credentials that will be checked against the domain or local server and are sent in a hashed format?

    1. 1. Basic authentication
    2. 2. Digest authentication
    3. 3. Forms authentication
    4. 4. Windows authentication

2

Q.- Which of these data source controls do not implement Caching?

    1. 1. LinqDataSource
    2. 2. ObjectDataSource
    3. 3. SqlDataSource
    4. 4. XmlDataSource

1

Q.- Which of the following concepts means determining at runtime what method to invoke?

    1. 1. Data hiding
    2. 2. Dynamic Typing
    3. 3. Dynamic binding
    4. 4. Dynamic loading

3

Q.- Which among the following is correct way to find out the number of elements currently present in an ArrayListCollection called arr?

    1. 1. arr.Capacity
    2. 2. arr.Count
    3. 3. arr.MaxIndex
    4. 4. arr.UpperBound

2

Q.- In ASP.NET in form page the object which contains the user name is ______ ?

    1. 1. Page.User.Identity
    2. 2. Page.User.IsInRole
    3. 3. Page.User.Name
    4. 4. None of the Above

1

Q.- When a User's Session times out which event should you respond to?

    1. 1. Application_Start
    2. 2. Session_End
    3. 3. Session_Start
    4. 4. Application_End

2

Q.- Which control can be used to update only the portion of the page?

    1. 1. UpdatePanel
    2. 2. ScriptManager
    3. 3. AsyncPostBackTrigger
    4. 4. None of the above.

1

Q.- Which of the following jQuery method can be used to attach a function to be executed whenever an AJAX request fails?

    1. 1. ajaxStart( callback )
    2. 2. ajaxComplete( callback )
    3. 3. ajaxSend( callback )
    4. 4. ajaxError(callback)

4

Q.- Which of the following property specifies the right padding of an element?

    1. 1. padding-bottom
    2. 2. padding-top
    3. 3. padding-left
    4. 4. padding-right

4

Q.- Choose the statements which makes delegate in C#.NET different from a normal class?

    1. 1. Delegates in C#.NET is a base class for all delegates type
    2. 2. Delegates created in C#.NET are further not allowed to derive from the delegate types that are created
    3. 3. Only system and compilers can derive explicitly from the Delegate or MulticasteDelegate class
    4. 4. All of the mentioned

4

Q.- Choose the correct option.

    1. 1. Dynamic type is non - static type.
    2. 2. Dynamic type is static type.
    3. 3. Implicit conversion does not work with type dynamic.
    4. 4. None of the above

2

Q.- Value type variables in C# are derived from the class System.ValueType?

    1. 1. True
    2. 2. FALSE
    3. 3. 1
    4. 4.

Q.- How many types of Cache Dependencies are available in ASP.NET?

    1. 1. File based dependencies
    2. 2. Key-based dependencies
    3. 3. Time-based dependencies
    4. 4. All of the above

4

Q.- Which form of inheritance is not supported directly by C# .NET?

    1. 1. Multiple inheritance
    2. 2. Multilevel inheritance
    3. 3. Single inheritance
    4. 4. Hierarchical inheritance

1

Q.- A web service takes the help of XML to transfer a message.

    1. 1. True
    2. 2. FALSE
    3. 3. 2
    4. 4.