0% found this document useful (0 votes)
25 views189 pages

ASP.NET Questions and Answers Guide

Uploaded by

Lim Siew Ling
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views189 pages

ASP.NET Questions and Answers Guide

Uploaded by

Lim Siew Ling
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 189

ASP.

NET

Posted Date: 18 Nov 2010 Posted By:: mughil Member Level: Silver Points: 1

Category: ASP.NET

Namespace for WCF is

Select Answer:

System.Communication

System.EnterpriseService (Your selection was wrong)

System.ComponentModel

System.Configuration

System.Servicemodel

Posted Date: 18 Nov 2010 Posted By:: mughil Member Level: Silver Points: 1

Category: ASP.NET

Code name for Windows Server 2008

Select Answer:

Longhorn

Server 2008

WS2k8

Longhouse

FrameServer

1
Posted Date: 18 Nov 2010 Posted By:: mughil Member Level: Silver Points: 1

Category: ASP.NET

WCF can be hosted in

Select Answer:

VisualStudio Setup

IIS

Web Service

both B and C (Your selection was wrong)

None of the above

Posted Date: 18 Nov 2010 Posted By:: mughil Member Level:

Silver Points: 2

Category: ASP.NET

Namespace for Unit Testing

Select Answer:

System.UnitTesting (Your selection was wrong)

Visualstudio.TestTools.UnitTesting

Microsoft.Visualstudio.TestTools.UnitTesting

Microsoft.Visualstudio.TestTools.UnitTestingFramework

2
None of the above

Posted Date: 18 Nov 2010 Posted By:: mughil Member Level: Silver Points: 1

Category: ASP.NET

Silverlight run on linux os called

Select Answer:

Moon noon

Sun Moon

Moon Light

Sun Light

Posted Date: 18 Nov 2010 Posted By:: mughil Member Level: Silver Points: 1

Category: ASP.NET

Sesssion ID store definition ASP in _____

Select Answer:

ViewState

Cookies

History

HTML

3
Posted Date: 17 Nov 2010 Posted By:: srujana Member Level: Bronze Points: 2

Category: ASP.NET

What is the difference between Server.Transfer() and Server.Execute()?

Select Answer:

There is no relation between these two

Server.Transfer() will redirect the page with out round trip to the server and Server.Execute() will

make extra round trip.

Server.Transfer() sends (transfers) all the information created in one ASP file to a

second ASP file. Server.Execute() executes an ASP file from inside another ASP file

No difference

Posted Date: 01 Nov 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 3

Category: ASP.NET

What are different ways hosting WCF services ?

Select Answer:

WAS(Windows Activation Service)

Self Hosting

IIS

All of above

None of these

4
Posted Date: 29 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 1

Category: ASP.NET

Which control has a faster performance Repeater or Datalist, Datagrid?

Select Answer:

Datalist

Repeater

Datagrid

None of these

Posted Date: 29 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 1

Category: ASP.NET

Which method is used to redirect the user to another page without performing a round trip to the client?

Select Answer:

Response.Redirect()

Server.Response()

Server.Transfer()

None of these

Posted Date: 29 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 1

Category: ASP.NET

5
What is the base class of all web forms?

Select Answer:

System .Web.UI.Page

System .Web.UI (Your selection was wrong)

System .Web

None of these

Posted Date: 29 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 1

Category: ASP.NET

What are Reference Type in .NET?

Select Answer:

String

Object

Both

None of these

Posted Date: 23 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 2

Category: ASP.NET

Which way to handle exceptions in ASP.NET?

Select Answer:

6
Try/catch/finally block:

Using Events like Page_Error and Application_Error:

Using Custom error page

All of above

Posted Date: 23 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 1

Category: ASP.NET

Which protocol is used in web-service for exchange of information in a decentralized, distributed environment.

Select Answer:

HTTP (Your selection was wrong)

TCP

SAOP

None of these

Posted Date: 23 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 1

Category: ASP.NET

AJAX Stands for

Select Answer:

Synchronous Java and XML.

Synchronous JavaScript and XML.

Asynchronous Java and XML.

7
Asynchronous JavaScript and XML.

Posted Date: 23 Oct 2010 Posted By:: Manas Mohapatra Member Level: Silver Points: 2

Category: ASP.NET

Does .NET CLR and SQL SERVER run in different process?

Select Answer:

Yes

No

Can't Say

Sometime

Posted Date: 20 Oct 2010 Posted By:: Minu Member Level: Gold Points: 3

Category: ASP.NET

Syntax of ASP.NET directive:

Select Answer:

<%@ directive [attribute=value] %>

<% directive [attribute=value] %>

<@ directive [attribute=value] >

<@ directive [attribute=value] %>

Posted Date: 20 Oct 2010 Posted By:: balu Member Level: Bronze Points: 3

8
Category: ASP.NET

What are the problems if give all permissions to for a virtual directory in IIS?

Select Answer:

User cannot access the site

User can access the site

user can run his scripts on the server and he upload the files to server

All the above

Read: User can view the site and download the files. Write: User can upload the files to the iis directories Execute

can run his/her scripts on the iis server

Posted Date: 18 Oct 2010 Posted By:: Minu Member Level: Gold Points: 2

Category: ASP.NET

What tool is used to manage the GAC ?

Select Answer:

GacSvr32.exe

RegSvr.exe

GacMgr.exe

GacUtil.exe

Posted Date: 14 Oct 2010 Posted By:: Minu Member Level: Gold Points: 2

Category: ASP.NET

9
What happens when you change the web.config file at run time?

Select Answer:

Application runs without any change.

Application automatically close

Application automatically restart

Cannot change the web.config file at run time

ASP.NET invalidates the existing cache and assembles a new cache. Then ASP.NET automatically restarts the appl

to apply the changes.

Posted Date: 09 Oct 2010 Posted By:: AjayGautam Member Level: Gold Points: 2

Category: ASP.NET

Which of the following classes interact with the file system?

Select Answer:

FileStream

MemoryStream

StringReader

SslStream

Posted Date: 08 Oct 2010 Posted By:: Rajvir Singh Mahala Member Level: Silver Points: 1

Category: ASP.NET

10
Which of the following denote the property in every validation control?

Select Answer:

• ControlToValidate property

• Text property

• Both A) and B)

• None of the Above

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

The ASP.NET pages directives are

1. @ Page,@ Control,@ Import,@ Register


2. @ Assembly, @ OutputCache
3. System.Web.UI.HtmlControls,System. Web.UI.WebControls

Select Answer:

1,2

1,2,3 (Your selection was wrong)

2,3

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

The namespaces that are automatically imported into all ASP.NET pages

1.System,System.Collections, System.IO
2.System.Web,System. Web.UI
3.System.Web.UI.HtmlControls,System. Web.UI.WebControls

11
Select Answer:

1,2,3

2,3

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

Correct syntax of ASP.NET directive:

Select Answer:

<%@ directive [attribute=value] %>.

<% directive [attribute=value] %>.

<@ directive [attribute=value] %>.

<@ directive [attribute=value] >.

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

Which of the following properties are not expose by Page Class?

Select Answer:

12
Cache, IsPostBack

ErrorPage3,IsValid, Trace, and Validators (Your selection was wrong)

Both

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

Which of the following properties are not expose by Page Class?

Select Answer:

Cache, IsPostBack

ErrorPage3,IsValid, Trace, and Validators (Your selection was wrong)

Both

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

Which is used for code-in-line model?

Select Answer:

< script runat="server">

< script javascript="server">

13
Both

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

Which is used to add event code(on C# Code) for TextBox control in Source view ( ASP.NET)

Select Answer:

MsgSent.Text = Msg.Text;

MsgSent.Text = Msg.Text

Both (Your selection was wrong)

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level: Gold Points: 2

Category: ASP.NET

Which of the following are correct controls in ASP.NET Source View?()

Select Answer:

<asp:textbox runat="server" id="Msg" text="Hello, R4R" />

<asp:button runat="server" id="Send" text="Send" onclick="Send_Click" /> (Your selection was wrong)

None

Both

14
Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2

Category: ASP.NET

If there are 5 rows in the datatable & it is bound to the gridview then how many times item_bound event will run?

If there are 5 rows in the datatable & it is bound to the gridview then how many times item_bound event will run?

Select Answer:

for 7 times. 5 for the items, 1 for header & 1 for footer

for 5 times

for 6 times

Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2

Category: ASP.NET

Advantage of Response.WriteFile()

Advantage of Response.WriteFile()

Select Answer:

Writes the specified file directly to an ASP.NET page.

Allows you to write information into ASP.NET pages.

Allows you to send the user to a new URL.

15
Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2

Category: ASP.NET

Advantage of Response.Write()

Advantage of Response.Write()

Select Answer:

Allows you to write information into ASP.NET pages.

Allows you to send the user to a new URL.

Writes the specified file directly to an ASP.NET page.

All the aboue

Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2

Category: ASP.NET

Advantage of Response.Write()

Advantage of Response.Write()

Select Answer:

Allows you to write information into ASP.NET pages.

Allows you to send the user to a new URL.

Writes the specified file directly to an ASP.NET page.

All the aboue

16
Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2

Category: ASP.NET

Advantage of Response.Redirect()?

Advantage of Response.Redirect()?

Select Answer:

Allows you to send the user to a new URL.

Allows you to write information into ASP.NET pages.

Writes the specified file directly to an ASP.NET page

All the aboue

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level:
Gold Points: 2
Category: ASP.NET

The namespaces that are automatically imported into all ASP.NET pages

1.System,System.Collections, System.IO
2.System.Web,System. Web.UI
3.System.Web.UI.HtmlControls,System. Web.UI.WebControls

Select Answer:

1,2,3

2,3

17
None

Correct syntax of ASP.NET directive:

Select Answer:

<%@ directive [attribute=value] %>.

<% directive [attribute=value] %>.

<@ directive [attribute=value] %>.

<@ directive [attribute=value] >.

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level:
Gold Points: 2
Category: ASP.NET

Which of the following properties are not expose by Page Class?

Select Answer:

Cache, IsPostBack

ErrorPage3,IsValid, Trace, and Validators

Both

None (Your selection was wrong)

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level:
Gold Points: 2
Category: ASP.NET

Which is used for code-in-line model?

Select Answer:

18
< script runat="server">

< script javascript="server"> (Your selection was wrong)

Both

None

Posted Date: 27 Sep 2010 Posted By:: Meena Mehra Member Level:
Gold Points: 2
Category: ASP.NET

Which is used to add event code(on C# Code) for TextBox control in Source view
( ASP.NET)

Select Answer:

MsgSent.Text = Msg.Text;

MsgSent.Text = Msg.Text

Both

None

Which of the following are correct controls in ASP.NET Source View?()

Select Answer:

<asp:textbox runat="server" id="Msg" text="Hello, R4R" />

<asp:button runat="server" id="Send" text="Send" onclick="Send_Click" />

None

Both

If there are 5 rows in the datatable & it is bound to the gridview then how many
times item_bound event will run?

19
Select Answer:

for 7 times. 5 for the items, 1 for header & 1 for footer

for 5 times

for 6 times

Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2
Category: ASP.NET

Advantage of Response.WriteFile()

Select Answer:

Writes the specified file directly to an ASP.NET page.

Allows you to write information into ASP.NET pages.

Allows you to send the user to a new URL.

Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2
Category: ASP.NET

Advantage of Response.Write()

Select Answer:

Allows you to write information into ASP.NET pages.

Allows you to send the user to a new URL.

20
Writes the specified file directly to an ASP.NET page.

All the aboue

Posted Date: 27 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2
Category: ASP.NET

Advantage of Response.Redirect()?

Advantage of Response.Redirect()?

Select Answer:

Allows you to send the user to a new URL.

Allows you to write information into ASP.NET pages.

Writes the specified file directly to an ASP.NET page

All the aboue

Posted Date: 19 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points:
2
Category: ASP.NET

You are responsible for an internal database application. Your organization would
now like to selectively send information from the database to external customers
using XML documents. Currently, you have custom classes that store this
information. Which class should you use to write the XML documents?

Select Answer:

BinaryFormatter

TextWriter

21
StreamWriter (Your selection was wrong)

Posted Date: 19 Sep 2010 Posted By:: AjayGautam Member Level:


Gold Points: 2
Category: ASP.NET

You are writing an application that must perform event logging. When is the
correct time to create an event source?

Select Answer:

Before you write each event.

Before you write the first event.

During installation.

After you restart the computer.

XmlSerializer

Posted Date: 19 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points:
2
Category: ASP.NET

You are writing managed code that will be executed within a thread. What do you need
to do to enable your code to recover from a call to Thread.Sleep and a subsequent
Thread.Interrupt call?

Select Answer:

Respond to the parent process's On_Interrupt event.

Implement the IInterruptible interface.

22
Catch the ThreadInterruptedException and do whatever is appropriate to continue

working.

How can we enable smart navigation?

How can we enable smart navigation?

Select Answer:

<%Page smartNavigation="True" %> (Your selection was wrong)

it can be specified as a global setting in the web.config <pages


smartNavigation="true"/>

Both

none

What is smart navigation?

What is smart navigation?

Select Answer:

The scroll position of a Web page is maintained after postback

The URL position of a Web page is maintained after postback

None

Posted Date: 17 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

How do you turn off cookies for one page in your site?

How do you turn off cookies for one page in your site?

Select Answer:

23
You can't turn off cookies in a single page

You can turn off cookies in a single page (Your selection was wrong)

None

What is an Delegate?

what is an Delegate?

Select Answer:

A strongly typed function pointer. Delegate holds the reference of a


method.

Delegate is an event

Delegate is a key word

none

Which property to be set for avoiding validations for a button?

Which property to be set for avoiding validations for a button?

Select Answer:

CausesValidation=False

CausesValidation=True

ControltoValidate=False

ControltoValidate=True

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

Do interface have accessibility modifier?

Do interface have accessibility modifier?

24
Select Answer:

YES

All elements in Interface should be public. So by default all interface

elements are public

None

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

Can we have shared events ?

Can we have shared events ?

Select Answer:

Yes, you can have shared event's note only shared methods can raise shared
events

NO

None

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

25
Can we have shared events ?

Can we have shared events ?

Select Answer:

Yes, you can have shared event's note only shared methods can raise shared

events

NO

None

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

Do events have return type ?

Do events have return type ?

Select Answer:

NO

YES

None

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3

26
Category: ASP.NET

Is Session_End event supported in all session modes ?

Is Session_End event supported in all session modes ?

Select Answer:

YES (Your selection was wrong)

NO (only in Inproc mode)

None

Which various modes of storing ASP.NET session ?

Which various modes of storing ASP.NET session ?

Select Answer:

InProc

StateServer:

SQL SERVER

all the aboue

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

What are dependencies in cache and types of dependencies ?

What are dependencies in cache and types of dependencies ?

Select Answer:

27
File dependency

Time-based expiration

Key dependency

All of the aboue

Posted Date: 15 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3
Category: ASP.NET

Can we encript view state ?

CAN WE ENCRIPT VIEW STATE ?

Select Answer:

YES

NO

None

Posted Date: 14 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points:
2 (Rs. 2)
Category: ASP.NET

Which of the following code samples creates an application domain and launches a
process within it?

28
Select Answer:

AppDomain d = AppDomain.CreateDomain("Domain", "Assembly");

AppDomain d = AppDomain.ExecuteAssemblyByName("Domain", "Assembly");

AppDomain d =

AppDomain.CreateDomain("Domain");d.ExecuteAssemblyByName("Assembly");

AppDomain.ExecuteAssemblyByName("Assembly");

What is the purpose of a delegate?

Select Answer:

To spawn an additional thread to provide parallel processing

To copy member methods and properties from an existing class

To enable an assembly to respond to an event that occurs within a class

To provide identical member methods and properties from multiple related classes

Posted Date: 14 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 2 (Rs. 2)
Category: ASP.NET

You are creating a custom class that allocates large blocks of memory. Instead of waiting for the
runtime to automatically free the resources, you want developers who use your class to be able to free
resources on demand when an instance of the class is no longer needed. Which interface should you
implement?

Select Answer:

IComparable

ICloneable

IEquatable

29
IFormattable

IDisposable

Posted Date: 14 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 2 (Rs. 1)
Category: ASP.NET

You are creating an undo buffer that stores data modifications. You need to ensure that the undo functionality
undoes the most recent data modifications first. You also need to ensure that the undo buffer permits the
storage of strings only. Which code segment should you use?

Select Answer:

Stack<String> undoBuffer = new Stack<String>();

Stack undoBuffer = new Stack();

Queue<String> undoBuffer = new Queue<String>();

Queue undoBuffer = new Queue();

Posted Date: 14 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 2 (Rs. 2)
Category: ASP.NET

You are developing an application to assist the user in conducting electronic surveys. The survey
consists of 25 true-or-false questions. You need to perform the following tasks:
Initialize each answer to true.Minimize the amount of memory used by each survey.
Which storage option should you choose?

Select Answer:

BitVector32 answers = new BitVector32(1);

BitVector32 answers = new BitVector32(-1);

30
BitArray answers = new BitArray(1);

BitArray answers = new BitArray(-1);

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You need to write a multicast delegate that accepts a DateTime argument and returns a Boolean
value. Which code segment should you use?

Select Answer:

public delegate int PowerDeviceOn(bool, DateTime);

public delegate bool PowerDeviceOn(Object, EventArgs); (Your selection was wrong)

public delegate void PowerDeviceOn(DateTime);

public delegate bool PowerDeviceOn(DateTime);

Posted Date: 13 Sep 2010 Posted By::


AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You need to write a multicast delegate that accepts a


DateTime argument and returns a Boolean value. Which
code segment should you use?

Select Answer:

31
public delegate int PowerDeviceOn(bool,

DateTime);

public delegate bool PowerDeviceOn(Object, EventArgs);

public delegate void PowerDeviceOn(DateTime);

public delegate bool PowerDeviceOn(DateTime);

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level:


Gold Points: 3
Category: ASP.NET

You develop a service application that needs to be deployed. Your network


administrator creates a specific user account for your service application. You
need to configure your service application to run in the context of this specific
user account. What should you do?

Select Answer:

Prior to installation, set the StartType property of the ServiceInstaller class.

Prior to installation, set the Account, Username, and Password properties of

the ServiceProcessInstaller class.

Use the CONFIG option of the net.exe command-line tool to install the service.

Use the installutil.exe command-line tool to install the service.

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You need to create a method to clear a Queue named q. Which code segment should you use?

32
Select Answer:

for each (Object e in q) { q.Dequeue(); }

for each (Object e in q) { q.Enqueue(0); }

q.Clear();

q.Dequeue();

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You are developing an application that will perform mathematical calculations.


You need to ensure that the application is able to perform multiple calculations simultaneously.
What should you do?

Select Answer:

Set the IdealProcessor property of the ProcessThread object.

Set the ProcessorAffinity property of the ProcessThread object.

For each calculation, call the QueueUserWorkItem method of the ThreadPool class.

Set the Process.GetCurrentProcess().BasePriority property to High.

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You need to identify a type that meets the following criteria: ?


Is always a number.?
Is not greater than 65,535. Which type should you choose?

Select Answer:

33
System.UInt16

int (Your selection was wrong)

System.String

System.IntPtr

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You need to call an unmanaged function from your managed code by using platform invoke services. What
should you do?

Select Answer:

Create a class to hold DLL functions and then create prototype methods by using managed code.

Register your assembly by using COM and then reference your managed code from COM.

Export a type library for your managed code.

Import a type library as an assembly and then create instances of COM object. (Your selection was
wrong)

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You need to select a class that is optimized for key-based item retrieval from both small and large collections.
Which class should you choose?

Select Answer:

OrderedDictionary class

HybridDictionary class

34
ListDictionary class (Your selection was wrong)

Hashtable class

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You are developing a custom-collection class.


You need to create a method in your class. You need to ensure that the method you create in your class
returns a type that is compatible with the Foreach statement. Which criterion should the method meet?

Select Answer:

The method must return a type of either IEnumerator or IEnumerable.

The method must return a type of IComparable.

The method must explicitly contain a collection.

The method must be the only iterator in the class.

Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You write the following code. public delegate void FaxDocs(Object sender, FaxArgs args);You need to create
an event that will invoke FaxDocs. Which code segment should you use?

Select Answer:

public : static event FaxDocs Fax;

public : static event Fax FaxDocs;

public ref class FaxArgs : public EventArgs { public : String CoverPageInfo; FaxArgs (String coverInfo)
{ this.CoverPageInfo = coverInfo; }}; (Your selection was wrong)

public ref class FaxArgs : public EventArgs { public : String CoverPageInfo; };

35
Posted Date: 13 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You work as a developer at Braindumps.biz. You are creating an assembly named Braindumps1.Braindumps1
contains a public method. The global cache contains a second assembly named Braindumps2. You must
ensure that the public method is only called from Braindumps2. Which permission class should you use?

Select Answer:

GacIdentityPermission

PublisherIdentityPermission

DataProtectionPermission

StrongNameIdentityPermission

Posted Date: 11 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 2
Category: ASP.NET

You are developing a class library. Portions of your code need to access system environment variables.
You need to force a runtime SecurityException only when callers that are higher in the call stack do not have
the necessary permissions.
Which call method should you use?

Select Answer:

Set.Demant();

Set.Assert();

Set.PermitOnly(); (Your selection was wrong)

Set.Deny();

Posted Date: 11 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 2

36
Category: ASP.NET

You are working on a debug build of an application.


You need to find the line of code that caused an exception to be thrown. Which property of the Exception class
should you use to achieve this goal?

Select Answer:

Data

Message

StackTrace

Source

Posted Date: 11 Sep 2010 Posted By:: AjayGautam Member Level: Gold Points: 2
Category: ASP.NET

You use Reflection to obtain information about a method named MyMethod. You need to ascertain whether
MyMethod is accessible to a derived class. What should you do?

Select Answer:

Call the IsAssembly property of the MethodInfo class.

Call the IsVirtual property of the MethodInfo class. (Your selection was wrong)

Call the IsStatic property of the MethodInfo class.

Call the IsFamily property of the MethodInfo class.

Posted Date: 08 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2
Category: ASP.NET

What is the advantage of Response.WriteFile()

What is the advantage of Response.WriteFile()

37
Select Answer:

Writes the specified file directly to an ASP.NET page

Allows you to send the user to a new URL.

Use this when the buffer is set to true and you want to get rid of everything processed up to where the
Clear() is.

NONE

Posted Date: 08 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2
Category: ASP.NET

What is advantage of Response.End()

What is advantage of Response.End()

Select Answer:

Use this when the buffer is set to true and you want to send to the browser what you've processed up to

the point where the End() is and stop processing the page at that point.

Allows you to write information into ASP.NET pages.

Writes the specified file directly to an ASP.NET page.

NONE

Posted Date: 08 Sep 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 2
Category: ASP.NET

What is advantage of Response.Clear()

38
What is advantage of Response.Clear()

Select Answer:

Use this when the buffer is set to true and you want to get rid of everything processed up to where the

Clear() is

Use this when the buffer is set to true and you want to send to the browser what you've processed up to
the point where the Clear() is (Your selection was wrong)

Allows you to send the user to a new URL

NONE

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 3
Category: ASP.NET

_________is the process of intercepting an incoming Web request and redirecting the request to a different
resource.

Select Answer:

URI rewriting (Your selection was wrong)

URL rewriting

Both

None

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 3
Category: ASP.NET

39
Using which of the following can you maintain the state data of your web server control, even when ViewState
property is disabled for the page?

Select Answer:

Application.Start

ControlState Data

Session.Start

StateServer Mode (Your selection was wrong)

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 3
Category: ASP.NET

Identify the code line that will enable you to store a color in the Page.ViewState property in an application
being developed by C#?

Select Answer:

ViewState(color)="Red";

ViewState("color")="Red";

ViewState[color]="Red";

ViewState["color"]="Red";

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

In your web application, you need to ensure that the format of the pages that you display is supported by the
requesting browsers. Which of the following is a property that can be used to detect the type of the browser
requesting the pages, so that can be displayed accordingly?

Select Answer:

40
Request.Browser.Browser

Request.Browser.Type

Request.Browser

Response.Browser

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

Which of the following Objects is NOT a part of ASP.NET Theme?

Select Answer:

Supporting Images

XML file (Your selection was wrong)

Skin files

Style sheet

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

In which of the following directories, is the class file of composite web server controls stored to avoid repeated
manual compilations?

Select Answer:

App_Code

Bin

41
App_Controls (Your selection was wrong)

App_LocalResources.

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

In your web application, you need to store small amounts of data such as the number of times the application
has been accessed etc. Which of the following is a data repository that should be used to store such data?

Select Answer:

Session State

View State

Control State

Application State

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

Which of the following features introduced in ASP.Net 2.0 that automatically splits large amount of view-state
data into multiple hidden-form fields?

Select Answer:

InProc

HttpSessionState

View-state chunking

Control State (Your selection was wrong)

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2

42
Category: ASP.NET

You can select “Allow this precompiled site to be updateable” option, to be able to bring about in the aspz files
after publishing the site. What type of changes can you make to the aspx files on selecting this option?

Select Answer:

Changes to the code of the aspx file

Changes to the location of the aspx file (Your selection was wrong)

Changes to the layout of the aspx file

Changes to the extension of the file

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

View State is not loaded until after the _______ event

Select Answer:

Init

InitComplete

Load

LoadComplete

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

ASP.NET Framework 2.0 introduced a one of the new feature____________.


It is used to preserve only critical state information.

43
Select Answer:

View State

Control State

User State

Cookie

Posted Date: 07 Sep 2010 Posted By:: R. Anand Kumar Member Level: Bronze Points: 2
Category: ASP.NET

Asp.Net Framework Compiles with __________

Select Answer:

Accessibility standards & XHTML

Accessibility standards & DHTML

Accessibility standards & HTML

All

Posted Date: 06 Sep 2010 Posted By:: Shailesh Member Level: Gold Points: 2
Category: ASP.NET

If there are 5 folders in the application then how many web.config can we add in the application?

Select Answer:

44
5

As many as possible

Posted Date: 06 Sep 2010 Posted By:: Shailesh Member Level: Gold Points: 2
Category: ASP.NET

How many web sites we can host on the IIS?

Select Answer:

Unlimited

Depend on memory

Depend on IIS version

Posted Date: 06 Sep 2010 Posted By:: bulli guruvu setty Member Level: Gold Points: 2
Category: ASP.NET

What is the name given to the type of assembly that contains localized resources?

Select Answer:

Hub

Spoke

Satellite

Sputnik

* You can deploy your application's resources in satellite assemblies. By definition, satellite assemblies only
contain resource files. They do not contain any application code. * In the satellite assembly deployment model,
you create an application with one default assembly and several satellite assemblies. * You should create one

45
satellite assembly for each culture that the application supports. Because the satellite assemblies are not part
of the main assembly, you can easily replace or update res

Posted Date: 03 Sep 2010 Posted By:: Hariharan T G Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

Which type of class can you develop to alter SOAP messages sent to and from an XML Web Service and
Client?

Select Answer:

SOAP Messages

SOAP Alterations

SOAP Configurations

SOAP Extensions

Posted Date: 29 Aug 2010 Posted By:: AjayGautam Member Level: Gold Points: 3
Category: ASP.NET

You are writing a custom dictionary. The custom-dictionary class is named MyDictionary. You need to ensure
that the dictionary is type safe.
Which code segment should you use?

Dictionary t = new Dictionary();


MyDictionary dictionary = (MyDictionary)t;

Select Answer:

class MyDictionary : Dictionary<string, string>

46
class MyDictionary : HashTable

class MyDictionary : IDictionary

class MyDictionary { ... }

Posted Date: 27 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3
Category: ASP.NET

Which one of the following is true about indexers?

Select Answer:

Indexers do not point to memory locations directly

Indexers can be overloaded (Your selection was wrong)

Indexers can have non integer subscripts

All Of The Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

What is the use of web.config file?

Select Answer:

Stores connection strings

Stores Authentication info

Handling errors (custom errors)

All Of The Above

47
Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

Can we create a web.config file more than once in one application?

Select Answer:

yes

no

Can't say

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

Is web.config file optional in Asp.Net

Select Answer:

yes

no

Can't say

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3
Category: ASP.NET

What will happen if application configuration and server configuration have different session state value?

Select Answer:

48
Application configuration overrides Server configuration

Server configuration overrides application configuration

Error occurs

None of Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 2 (Rs. 2)
Category: ASP.NET

User Profiles in Asp.Net is used

Select Answer:

To store user info in web.config file

To store user info in web server

Both 1 & 2 (Your selection was wrong)

None of Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 2 (Rs. 2)
Category: ASP.NET

Benefits of membership features in Asp.Net

Select Answer:

Asp.Net checks for specified configured data store, if not creates a data store

Included Server Controls like login, login name, create user wizard etc

49
Provides API for programmatically managing users (Your selection was wrong)

All Of The Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

Rich Data Controls in Asp.Net

Select Answer:

GridView (Your selection was wrong)

FormView

DetailsView

All Of The Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

How to set focus on Control in Asp.Net?

Select Answer:

ControlName.Focus

Page.SetFocus (ControlName) (Your selection was wrong)

Both 1 & 2

None of Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3

50
Category: ASP.NET

What is the purpose of Server.MapPath method in Asp.Net?

Select Answer:

Maps Virtual path to Physical Path

Maps Physical Path to Virtual Path

Maps Virtual Path to Absolute Path

None of Above

Posted Date: 26 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3
Category: ASP.NET

What are the ways to manage state in Asp.Net applications?

Select Answer:

Session and Application Object

Hidden Fields, View State

Cookies, QueryString

All Of The Above

Posted Date: 24 Aug 2010 Posted By:: Christopher Member Level: Diamond Points: 3
Category: ASP.NET

Which of the Following is FALSE?

Select Answer:

51
ASP.NET Applications Runs without a WebServer

ASP+ and ASP.NET refer to the same thing

ASP.NET is a major Upgrade over ASP

None of the Above

Posted Date: 21 Aug 2010 Posted By:: Alex ;-) Member Level: Gold Points: 3
Category: ASP.NET

What is the maximum size of viewstate?

Select Answer:

10% of the page size.

25% of the page size.

50% of the page size.

Posted Date: 20 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 3
Category: ASP.NET

can we encript view state

can we encript view state

Select Answer:

YES

NO

52
None

Posted Date: 19 Aug 2010 Posted By:: Alex ;-) Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

What does WSDL stand for?

Select Answer:

Web Services Description Language.

Web Site Development Language

Web Search Description Language.

Web Services Description Language.

Posted Date: 19 Aug 2010 Posted By:: Alex ;-) Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

What data types do the RangeValidator control


support?

Select Answer:

Integer

String

Date.

53
Integer, String, and Date.

Posted Date: 19 Aug 2010 Posted By:: Alex ;-) Member Level: Gold Points: 1
Category: ASP.NET

What does WSDL stand for?

Select Answer:

Web Services Description Language.

Web Site Development Language

Web Search Description Language.

Web Services Description Language.

Posted Date: 19 Aug 2010 Posted By:: Alex ;-) Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

A Web service can only be written in .NET True or


False?

Select Answer:

true

false

no ans

Posted Date: 19 Aug 2010 Posted By:: Alex ;-) Member Level: Gold Points: 3

54
Category: ASP.NET

What is the use of Global.asax File in ASP.NET Application ?

Select Answer:

provide website configuration

to provide connectivity with web service

provides a way to respond to application or module level events in one central location.

The Global.asax file is an optional file and can be stored in root directory. This File is in accesible for web-
sites. This Global.asax file contained in HttpApplicationClass. In Global.asax file we can declare global
variables like for example the variables used in master pages because same variables can be used for
different pages right.It provides more security than others. The Global.asax file is used to handle application-
level and session-level events. we donot worry about configuring Global.

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 3
Category: ASP.NET

If we have multiple AFTER Triggers on table how can


we define the sequence of the triggers ?

If we have multiple AFTER Triggers on table how can


we define the sequence of the triggers ?

Select Answer:

sp_settriggerorder

55
sp_order

BOTH

NONE

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 1
Category: ASP.NET

If cookies are not enabled at browser end does form


Authentication work?

If cookies are not enabled at browser end does form


Authentication work?

Select Answer:

NO

YES

None

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Do events have return type ?

Do events have return type ?

Select Answer:

NO

56
YES

None

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which attribute is uesing for encript view state

WHICH ATTRIBUTE IS UESING FOR ENCRIPT VIEW STATE

Select Answer:

ViewStateEncryptionMode

ViewStateDecryptionMode

None

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 3
Category: ASP.NET

Can I make viewstate enabled for controls where Enableviewstate of the container page is set to false?

Can I make viewstate enabled for controls where Enableviewstate of the container page is set to false?

Select Answer:

NO

57
YES

None

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 1
Category: ASP.NET

What is the lifespan for items stored in view-state?

What is the lifespan for items stored in view-state?

Select Answer:

Current Page

Current Application

Current Assemble

NONE

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 3
Category: ASP.NET

Which method use to remove all items from the session

Which method use to remove all items from the session

Select Answer:

Session.Contents.RemoveAll()

Session.Clear()

58
Session.Abond()

NONE

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 3
Category: ASP.NET

Which method do you use to redirect the user to another page without performing a round trip to the client?

Which method do you use to redirect the user to another page without performing a round trip to the client?

Select Answer:

Server.transfer

Response.Redirect

Response.Write

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What is the name-space provides MVC pattern

What is the name-space provides MVC pattern

Select Answer:

System.Web.Mvc

System.Mvc

System.object

59
NONE

Posted Date: 17 Aug 2010 Posted By:: Kiran Kumar Reddy Member Level: Diamond Points: 3
Category: ASP.NET

How to avoid the tempering of your page's viewstate?

How to avoid the tempering of your page's viewstate?

Select Answer:

EnableViewStateMac="true"

EnableViewState="true"

BOTH

NONE

Posted Date: 16 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3
Category: ASP.NET

Default memory size of cache in ASP.NET?

Select Answer:

Double the RAM memory of system

Equal to RAM memory of system

Three times of the RAM memory of system

None of above

60
Posted Date: 12 Aug 2010 Posted By:: Priyanka Member Level: Bronze Points: 1
Category: ASP.NET

What is the difference between web.config and machine.config?

Select Answer:

"web.config" apply settings to each web applications and "machine.config" apply settings to all

applications

No difference

"machine.config" apply settings whereas "web.config" does not apply any setting

Posted Date: 11 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 3
Category: ASP.NET

What data types do the RangeValidator control support?

Select Answer:

Integer, String, and Date

Integer,double and string

Double,Long and date

int ,double and long

Posted Date: 11 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 3
Category: ASP.NET

Which template must you provide,in order to display data in a Repeater control?

Select Answer:

61
Edittemplate

Itemtemplate

AlternatingItemTemplate.

Page template

Posted Date: 10 Aug 2010 Posted By:: Narayana Member Level: Gold Points: 1
Category: ASP.NET

What is default way to use Sessions?

Select Answer:

Outproc

Inproc

Above all

Not Above all

Inproc is default way to use store sessions it is the fastest way to store and retrieve.

Posted Date: 10 Aug 2010 Posted By:: Narayana Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

What is Abbreviation of SAO?

Select Answer:

62
Server Activated Object

Server Aligned Object

Sever Activating Object

It is one of the remote object creation mode in .net

Posted Date: 09 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 1
Category: ASP.NET

Is the ASP.NET AJAX Control Toolkit installed in the Global Assembly Cache?

Select Answer:

yes

No

none

you copy and past in dll file in your website

Posted Date: 09 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 1
Category: ASP.NET

Can you nest Update Panel within each other?

63
Within the page can we include update panel or inside update panel is it possible?

Select Answer:

yes

no

None

Posted Date: 09 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

Can we call Server-Side code (C# or VB.NET code) from javascript?

can we call server side code in aspx page

Select Answer:

Yes

No (Your selection was wrong)

None

Yes. You can do so using PageMethods or j query in ASP.NET AJAX or using webservices.

Posted Date: 09 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

64
Can we use multiple Script Manager on a page?

Select Answer:

No

Yes

None

No. You can use only one Script Manager on a page.

Posted Date: 09 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 0
Category: ASP.NET

IS Xml is Case Sensitive?

Select Answer:

No

Yes

None

Posted Date: 09 Aug 2010 Posted By:: Suthahar Member Level: Gold Points: 3
Category: ASP.NET

When a user views a page containing a JavaScript program, which machine actually executes the script?

when user view the page containing javascript program or other and client machine or server machine excute
java script program

65
Select Answer:

The User's machine running a Web browser

The Web server

A central machine deep within Netscape's corporate offices

Above all

None of the above

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

You can have only one Global.asax file per project.

Select Answer:

Yes

No

May Be

Can't Say

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which of the following is not the way to maintain state?

Select Answer:

View state

66
Cookies

Hidden fields

Request object

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Mode of storing ASP.NET session

Select Answer:

InProc (Your selection was wrong)

StateServer

SQL Server

All of the above

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which of the following control is used to validate that two fields are equal?

Select Answer:

RegularExpressionValidator

CompareValidator

equals() method

RequiredFieldValidator

67
Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which object can help you maintain data across users?

Select Answer:

Application object

Session object

Response object

Server object

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Why is Global.asax is used?

Select Answer:

Declare Global variables

Implement application and session level events

No use

Can't Say

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3

68
Category: ASP.NET

An alternative way of displaying text on web page using

Select Answer:

asp:label

asp:listitem

asp:button

asp:textbox

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

File extension used for ASP.NET files.

Select Answer:

.Web

.ASP

.ASPX

None of the above

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

What is used to validate complex string patterns like an e-mail address?

Select Answer:

69
Extended expressions

Basic expressions

Regular expressions

Regular expressions

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Caching type supported by ASP.Net

Select Answer:

Output Caching

DataCaching

both a and b

None of the above

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

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

Select Answer:

70
ControlToValidate

ControlToBind

ValidateControl

Validate

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

We can manage states in asp.net application using

Select Answer:

Session Objects

Application Objects

Viewstate

All of the above

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which of the following tool is used to manage the GAC?

Select Answer:

RegSvr.exe

GacUtil.exe

GacSvr32.exe

71
GacMgr.exe

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Difference between Response.Write() and Response.Output.Write()

Select Answer:

Response.Output.Write() allows you to buffer output

Response.Output.Write() allows you to write formatted output

Response.Output.Write() allows you to flush output

Response.Output.Write() allows you to stream output

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

The first event triggers in an aspx page is.

Select Answer:

Page_Init( )

Page_Load( )

Page_Click( )

None of the above

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

72
Web.config file is used...

Select Answer:

Configures the time that the server-side codebehind module is called

To store the global information and variable definitions for the application

To configure the web server (Your selection was wrong)

To configure the web browser

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Choose the form in which Postback occurs.

Select Answer:

HTMLForms

WebForms

WinForms

Forms

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

You create a website which has many predefined roles and associated users that will be used for security
purposes.You need to manage these roles and user accounts.Whih tool should you use?

Select Answer:

MS .NET framework configuration tool

73
Code acccess security Policy Tool

ASP.Net IIS Registration Tool

WebSite Administration Tool

Posted Date: 06 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

You have initialized two objects System.Data.SqlClient.SqlConnection connection and


System.Data.SqlClient.SqlCommand command. How do you exectute a database query?

Select Answer:

command.CommandText = “sql text here”; command.Connection = connection; SqlDataReader dr =

command.ExecuteReader();

command.CommandText = “sql text here”; connection.Command = command; SqlDataReader dr =


connection.ExecuteReader();

command.CommandText = “sql text here”; SqlDataReader dr = connection.ExecuteReader(command);

command.CommandText = “sql text here”; connection.Connection = connection; SqlDataReader dr =


connection.ExecuteReader();

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t
execute. What could the problem be?

Select Answer:

The AutoEventWireup attribute is set to False

The AutoPostBack attribute is set to False

74
The codebehind module is not properly compiled

The ListBox must be defined WithEvents

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

The process in which a web page sends data back to the same page on the server is called?

Select Answer:

PostBack

Session

Query strings

All of the above

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which of the following is not supported for IIS?

Select Answer:

Windows XP Professional

Windows XP Home

Windows 2003 Server

Windows 2000 Server

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3

75
Category: ASP.NET

which namespace is used when we connect our asp.net page to sql server

Select Answer:

System.data.sqlclient

System.data.sql

System.sqlserver

System.url

none of these

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

What is used to validate complex string patterns like an e-mail address?

Select Answer:

Extended expressions

Regular expressions

Irregular expressions

Basic expressions

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which are the two properties of a Datagrid that has to be specified to turn on sorting and paging respectively?

Select Answer:

76
EnableSorting=”true” and EnablePaging=”true”

DisableSorting=”false” and DisablePaging=”false”

AllowSoring=”true” and allowPaging=”true”

EnableSorting=”true” and allowPaging=”true”

Sorting=”true” and Paging=”true”

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

What is the Web.config file used for?

Select Answer:

To store the global information and variable definitions for the application

Configures the time that the server-side codebehind module is called

To configure the web server (Your selection was wrong)

To configure the web browser

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which control is used to sort the data and allow paging?

Select Answer:

Datalist

Repeater Control

77
DataGrid

ListView

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

When will a session be started in an application?

Select Answer:

Before Application Started

After Application Started

When the Client first sends a request to browser

While closing the application

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which is not a validation control?

Select Answer:

Required Field Validator

Compare Validator

Error Validator

Regular expression validator

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3

78
Category: ASP.NET

You have created a new ASP.Net web application. You build the solution in Visual Studio .Net. You notice that
there is a /bin directory under the virtual directory. Which type of files should you place in this location?

Select Answer:

Assemblies that are used on only this one web application

Assemblies that are used on web sites on only this web server machine.

Assemblies that are used by web applications anywhere on the network

Assemblies that are XCOPY’d to the location.

None of the above

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Difference between response.redirect and server.transfer.

Select Answer:

both are same

response.redirect will take you to another page with out round trip

server.transfer will take the round trip from server to client

all the above

none of these

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

79
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display
data in the combo box?

Select Answer:

DataTextField property.

DataValueField Property (Your selection was wrong)

DataMember

DataSource

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which control would you use if you needed to make sure the values in two different controls matched?

Select Answer:

Required Field Validator

Custom Validator control

CompareValidator control

Regular expression validator Control

Class Validator Control

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which data control does not exist in asp.net

Select Answer:

80
GridView

DataList

Repeater

tableView

ListView

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

How do you manage states in asp.net application

Select Answer:

Session Objects

Application Objects

Viewstate

All of the above

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

How do you explicitly kill a user’s session ?

Select Answer:

Session.Close()

Session.Discard()

Session.Abandon()

81
Session.End()

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which of the following is not a valid statement in ASP.Net?

Select Answer:

Server.Transfer(“SomePage.aspx”);

Response.Redirect(“SomePage.aspx”);

Server.Redirect(“SomePage.aspx”);

Server.Execute(“SomePage.aspx”);

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which method do you invoke on the Data Adapter control to load your generated dataset?

Select Answer:

Fill( )

Read( )

ExecuteQuery( )

Load( )

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

82
What DataType is return in IsPostback property?

Select Answer:

bit

Boolean

int

string

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

The public methods and properties of a master page can be accessed in a content page by assigning a class
name to the master page. Which directive can be used to assign a class name to the master page?

Select Answer:

<%@ Control %>

<%@ Master %>

<%@ MasterType %>

<%@ Page %> (Your selection was wrong)

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

In Which Page Cycle All Controls Are Fully Loaded?

Select Answer:

Page_Load()

83
Page_Init()

Page_Render()

Page_Unload() (Your selection was wrong)

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

what is default time of expire session?

Select Answer:

20 minute

40 minute

100 minute

1200 hours

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Which of the following contains web application settings?

Select Answer:

app.config

web.config

assembly.config

machine.config

84
Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

What attribute must be set on a validator control for the validation to work?

Select Answer:

Validate

ValidateControl

ControlToBind

ControlToValidate

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

Where would you define application and session level events?

Select Answer:

Global.asax

Default.aspx

Web.Config

General.aspx

HttpModule.cs

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

85
What namespace does the Web page belong in the .NET Framework class hierarchy?

Select Answer:

System.Web.Control

System.Web.RootBuilder

System.Web.UserControl

System.Web.UI.Page

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

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

Select Answer:

Yes

No

Yes

No

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

How does ASP.NET store SessionIDs by default?

Select Answer:

In cache

86
In cookies

In a global variable

In URL strings or in a database

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

What is the last stage of the Web forms lifecycle?

Select Answer:

Event Handling

Page_Load

Validate

Page_Unload

Page_Init

Posted Date: 05 Aug 2010 Posted By:: Shital Patil Member Level: Gold Points: 3
Category: ASP.NET

A project on which you are working calls for you to store small amount of frequently changing information
about a page on the client. For this project, security is not a worry. Which is the best method to use?

Select Answer:

A cookie

A query string

87
A url

A javascript function

A hidden form field

Posted Date: 05 Aug 2010 Posted By:: Latha K Member Level: Gold Points: 3
Category: ASP.NET

Difference between Abstract Class and Interface

Select Answer:

Abstract class can have abstract methods and concrete methods but interface is pure abstract class
means all methods in an interface are abstract methods and Members in an interface are public by default;

abstract class may contain non-public members.

abstract class should have all abstract methods

abstract classes can be should have all abstract methods

Interface may contain non-public members.

Posted Date: 05 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3
Category: ASP.NET

What layout mode is the default when a new Web Form is created?

Select Answer:

GridBagLayout

GridLayout

FlowLayout

None of Above

88
Posted Date: 05 Aug 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 3
Category: ASP.NET

Session_End event is supported in _________ session state Management

Select Answer:

InProc

StateServer

SqlServer

All Of The Above

Posted Date: 03 Aug 2010 Posted By:: macxima Member Level: Gold Points: 3
Category: ASP.NET

What is a user control?

This is the most basic question for interview

Select Answer:

An ASP.NET user control is a group of one or more server controls or static HTML elements

HTML elements exposed to the server so you can program them

Controls that incorporate logic to allow you to test a user's input

Ensures that the user does not skip an entry

An ASP.NET user control is a group of one or more server controls or static HTML elements that encapsulate
a piece of functionality. A user control could simply be an extension of the functionality of an existing server

89
control(s) (such as an image control that can be rotated or a calendar control that stores the date in a text box).
Or, it could consist of several elements that work and interact together to get a job done

Posted Date: 31 Jul 2010 Posted By:: Alex Kumar Member Level: Gold Points: 1
Category: ASP.NET

CAML Stands For

CAML Stands For

Select Answer:

Collective Application Markup Language

Collaborative Application Markup Language

Collaborative AppDomain Markup Language

None of the Above

Posted Date: 26 Jul 2010 Posted By:: channakeshav Member Level: Silver Points: 3 (Rs. 1)
Category: ASP.NET

what do u mean by GAC?Why its used?

Select Answer:

Global application class and used for implementing Shared assemblies

Global assembly class and used for private assembly

Global apps class and used for implementing satellite assembly

Global code class and used for coding

90
Posted Date: 26 Jul 2010 Posted By:: channakeshav Member Level: Silver Points: 3 (Rs. 1)
Category: ASP.NET

In what all files we can mention connection string property?

Select Answer:

Web.config

machine.config

administrative tool

app.config

All the above

we can use any one of the above for mentioning the connection string property

Posted Date: 25 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

The method in c# can be overloaded in which of the following ways.

Select Answer:

by having the same method name and specifying different no. of parameter.

by giving different methods names and same no. of parameter.

by having the same method name and specifying different type of parameter.

None of these

91
Ans 1 should be.

Posted Date: 25 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

A new server side control can be created by implementing the class-

Select Answer:

System.Web.WebControl

System.Web.UI.WebControls.WebControl (Your selection was wrong)

System.Web.UI.WebControls

None of these

Posted Date: 25 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What namespace are necessary to create a localized application?

Select Answer:

System.Globalization & System.Resources

System.Globalization

System.Resources

None of these

Posted Date: 25 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

92
Event in web forms are processed before the "Page Load" events

Select Answer:

true

false

none of these

Both

Posted Date: 25 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

The equivalent html control for the

Select Answer:

<HtmlSelectInput> (Your selection was wrong)

<HtmlSelect>

<Select>

None of these

Posted Date: 24 Jul 2010 Posted By:: kalyanakumar Member Level: Bronze Points: 3 (Rs. 1)
Category: ASP.NET

Given the sample code below, what is the console output?

class CSharpA
{
private static int i = 1;

93
static void Main(){
int i = 5;
Multiply(i);
Increment(i);
Reset();
Console.WriteLine(i);
}
private static void Reset() {
i = 0;
}
private static void Multiply(int i) {
i *= 2;
}
public static void Increment(int i) {
i++;
}
}

Select Answer:

11

12

value of i won't change because.only value of i is passed as parameter to function

Posted Date: 21 Jul 2010 Posted By:: Alex Kumar Member Level: Gold Points: 3 (Rs. 1)

94
Category: ASP.NET

Can we have more than one Web.Config in a Single Application ?

Can we have more than one Web.Config in a Single Application ?

Select Answer:

Yes

No

Not Sure

We can have more than one web.config in Single application but different folders.

Posted Date: 20 Jul 2010 Posted By:: Narayana Member Level: Gold Points: 2 (Rs. 1)
Category: ASP.NET

What is URI

Select Answer:

its a unique identifier and a namespace

its a address locator (Your selection was wrong)

it tells address of a web page

it is a part of URL

Posted Date: 20 Jul 2010 Posted By:: Narayana Member Level: Gold Points: 2 (Rs. 1)

95
Category: ASP.NET

What is URL(Uniform Resource Locator)?

Select Answer:

it is a name sapce

it is a important class

address of some resources on the web

address of site on the web

A URL (Uniform Resource Locator) is the address of some resource on the Web. A resource is nothing but a
page of a site. There are other type of resources than Web pages, but that's the easiest conceptually

Posted Date: 17 Jul 2010 Posted By:: Narayana Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

Which dll handles the request of aspx page?

Select Answer:

AntiXss.dll

ISAPI dll

ISAP dll

Above all Wrong

When the Internet Information Service process (inetinfo.exe) receives an HTTP request, it uses the filename

96
extension of the requested resource to determine which Internet Server Application Programming Interface
(ISAPI) program to run to process the request. When the request is for an ASP.NET page (.aspx file), IIS
passes the request to the ISAPI DLL capable of handling the request for ASP.NET pages, which is
aspnet_isapi.dll.

Posted Date: 17 Jul 2010 Posted By:: Narayana Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

What is session?

Select Answer:

Session is a cookie

Session is basically is the duration between user login and logout time

session is a server side variable

session usually is non persistent cookie

Normally session is basically maintain data while user login and till logout for that purpose storing memory
values we are using sessions.

Posted Date: 10 Jul 2010 Posted By:: Manju Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

Which one of the following is true about interface indexers?

Select Answer:

97
There can only be a get accessors defined.

Multiple indexers in the same interface can have the same signature.

The indexer must define a return type equal to the interface.

The accessors do not use modifiers.

Posted Date: 10 Jul 2010 Posted By:: Manju Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

Given the sample code below, what is the console output?

class CSharpA
{
private static int i = 1;
static void Main(){
int i = 5;
Multiply(i);
Increment(i);
Reset();
Console.WriteLine(i);
}
private static void Reset() {
i = 0;
}
private static void Multiply(int i) {
i *= 2;
}
public static void Increment(int i) {
i++;
}
}

98
Select Answer:

5 (Your selection was wrong)

11

12

Posted Date: 10 Jul 2010 Posted By:: Manju Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

To determine the number of dimensions of an array at runtime, which one of the following properties do you
use?

Select Answer:

Size

UBound

Rank

Length

Posted Date: 08 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which of the following is a property of GtmlForm control.

Select Answer:

href

99
Title (Your selection was wrong)

value

Target

Posted Date: 08 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which of the following is not a property of RegionInfo?

Select Answer:

Displayname

NativeName

Name (Your selection was wrong)

None of these

Posted Date: 08 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which of the following is not a property of CultureInfo?

Select Answer:

Calender (Your selection was wrong)

CurrentCulture

CurrentURLCulture

None of these

100
Posted Date: 08 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which namespace are required for using SOAP header to access services.

Select Answer:

System.Web.Service (Your selection was wrong)

System.Web.Services.Protocol

Both

None of these

Posted Date: 08 Jul 2010 Posted By:: Santosh Kumar Singh Member Level: Diamond Points: 3 (Rs. 1)
Category: ASP.NET

If Cookies are not enable at browser end does form authentication work?

Select Answer:

yes

no

none of these

Both

Posted Date: 06 Jul 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

101
can u write a class without specifying name-space?

Select Answer:

yes

no (Your selection was wrong)

Can't say

yes we can do which belongs to global name-space

Posted Date: 06 Jul 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

If a base class has a bunch of overloaded constructors ,an inherited class has another bunch of overloaded
constructors.can u enforce a call from an inherited constructor to an arbitary base constructor?

Select Answer:

yes

no

Can't say

Posted Date: 06 Jul 2010 Posted By:: krishnavenikaladi Member Level: Gold Points: 1 (Rs. 1)
Category: ASP.NET

102
can u turn off session state in web.config file?

Select Answer:

yes

no

Can't say

Posted Date: 05 Jul 2010 Posted By:: bulli guruvu setty Member Level: Gold Points: 3 (Rs. 1)
Category: ASP.NET

By default,a .Net Website is configured with which of the following authentication types?

Select Answer:

Basic (Your selection was wrong)

Anonymous

Integrated windows authentication.

Digest

Both 2 & 3

v
Posted Date: 05 Jul 2010 Posted By:: bulli guruvu setty Member Level:
Gold Points: 3 (Rs. 1)
Category: ASP.NET

Last stage of Web forms Life Cycle?

Select Answer:

103
Validate

Page_Init

Page_Unload

Validate

Page_Load

Posted Date: 05 Jul 2010 Posted By:: Narayana Member Level: Gold Points:
1 (Rs. 1)
Category: ASP.NET

For Page transfer in Asp.net which one is best

Select Answer:

Using Hyperlink

respone.redirect()

server.transfer()

Above all

server.transfer is the best because it reduces the round trips to the server.

Posted Date: 05 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How do i sign out in Forma Authentication?

Select Answer:

104
FormAuthentication.SignOut()

FormAuthentication.signout()

SignOut()

None of these

Posted Date: 05 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How can you kill a user session?

Select Answer:

Session.Clear

Session.delete

Session.terminate

Session.abondon

Posted Date: 05 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

you can use Server.CreateObject to create business object created in the .net
framework?

Select Answer:

105
yes

no

none of these

Both

Posted Date: 05 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What does XML DOM stands for

Select Answer:

Extensible Markup Language Document object model

Extensible Markup Language Document object model (Your selection was wrong)

Extensible Markup Language Data object model

Extensible markup Language Data object method

Posted Date: 05 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which is not the member od oleDbDataAdapter object?

Select Answer:

Update Command

106
Insert Command

TableMapping (Your selection was wrong)

None of these

Posted Date: 04 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which of the following object need to be closed explicitly?

Select Answer:

oleDbReader

oleDbConnection (Your selection was wrong)

both

oleDbCommand

Posted Date: 04 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Does the Datalist control support paging

Select Answer:

yes (Your selection was wrong)

No

Both

107
None of these

Posted Date: 04 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What does ODBC stands for

Select Answer:

Open DB connectivity

Open DB Connection

Open DB Connecting

None of these

Posted Date: 04 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

is event in web form are processed before the page-load

Select Answer:

Yes (Your selection was wrong)

No

Both

None of these

Posted Date: 04 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)

108
Category: ASP.NET

What is true regarding programmatic improvement of asp.net over asp?

Select Answer:

Ease of deployment

Improved session state

Use of code declaration block

All of the above

Posted Date: 03 Jul 2010 Posted By:: Narayana Member Level: Gold Points:
1 (Rs. 1)
Category: ASP.NET

Which one is correct about asp.net Life Cycle?

Select Answer:

Request -->Start -->Init -->Load -->Rendering -->PostBack -->Unload

Request -->Start -->Init -->Load -->Rendering -->PostBack

Request -->Start -->Load -->Inid -->Rendering -->PostBack -->Unload

Request -->Start -->Init -->Load -->PostBack-->Rendering -->Unload

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are the New Data types introduced in SQL Server 2005?

109
SQL Server 2005 has added some new data types to its existing data types.
XML Data type
VARCHAR (MAX)
NVARCHAR (MAX)
VARBINARY (MAX

Select Answer:

XML Data type

VARCHAR (MAX)

NVARCHAR (MAX)

VARBINARY (MAX)

All

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are different variants of SQL Server 2005?

There are different variants of SQL Server 2005 commercially available.


Express – Free and only for one user
Enterprise – 5 users apart from server
Workgroup – 10 users apart from server
Standard – 25 users apart from server

Select Answer:

110
Express

Enterprise

Workgroup

Standard

All

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Is ViewState supported in classic ASP?

No,ViewState is introduced in asp.net, it was not in classic asp.

Select Answer:

No

Yes

I dont know

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can you make HTML controls retain State accross postbacks?

111
Yes, HTML controls can retain State accross postbacks, if you convert HTML controls to
Server Controls. There are 2 ways to convert HTML control to Server Controls.

1. Right click on the HTML Control and then click "Run As Server Control"
Or
2. Set runat="server" attribute for the Control.

Select Answer:

No

Yes

I dont know

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can a DropDownList fire validation controls?

Yes, DropDownList control can also fire validation if the control's CausesValidation
property is set to true and the AutoPostBack property is set to true.

Select Answer:

No

Yes

I dont know

112
Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Are the validation controls fired on the client side if javascript is disabled on the client
browser?

No, validation controls are not fired on the client side if javascript is disabled on the
client browser.

Select Answer:

No

Yes

I dont know

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are the 3 types of transaction objects available in ADO.NET?

As we have 3 types of database connections in ADO.NET, there are also 3 types of


transaction objects:
SqlTransaction
OracleTransaction
OleDbTransaction

113
Select Answer:

SqlTransaction

OracleTransaction

OleDbTransaction

All

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

List the steps in order to process a transaction?

Select Answer:

Begin a transaction

Process database commands.

Check for errors.

If errors occurred, restore the database to its state at the beginning of the
transaction. If no errors occurred, commit the transaction to the database.

All

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are the four LINQ Providers that .NET Framework ships?

Select Answer:

114
LINQ to Objects - Executes a LINQ query against a collection of objects

LINQ to XML - Executes an XPATH query against XML documents

LINQ to SQL - Executes LINQ queries against Microsoft SQL Server.

LINQ to DataSets - Executes LINQ queries against ADO.NET DataSets.

All

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are the four LINQ Providers that .NET Framework ships?

Select Answer:

LINQ to Objects - Executes a LINQ query against a collection of objects

LINQ to XML - Executes an XPATH query against XML documents

LINQ to SQL - Executes LINQ queries against Microsoft SQL Server.

LINQ to DataSets - Executes LINQ queries against ADO.NET DataSets.

All

Posted Date: 02 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are the main components of LINQ or Language INtegrated Query?

Select Answer:

115
Standard Query Operators

Language Extensions

LINQ Providers

All

Posted Date: 02 Jul 2010 Posted By:: Narayana Member Level: Gold Points:
3 (Rs. 1)
Category: ASP.NET

Difference between System & Application Exceptions

Select Answer:

All Exceptions comes from thenException Base Class

Application Exceptions are userdefined and System Exception are by .net

System Exceptions are .net and Applications Exceptions are userdefined

Above all (Your selection was wrong)

Posted Date: 02 Jul 2010 Posted By:: Karthika Member Level: Bronze Points:
3 (Rs. 1)
Category: ASP.NET

.net questions collection----Which is true ?

Select Answer:

1. Page Class is a derivative of the Control class.

2. Page Class inherits all properties, methods, and events exposed by the Control
class.

116
3.Both

4.none

Posted Date: 01 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

The load control method can be used to load a custom control dynamically

Select Answer:

Yes (Your selection was wrong)

No

Both

None of these

Posted Date: 01 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How many validation control in asp.net

Select Answer:

6 (Your selection was wrong)

117
5

Posted Date: 01 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How many namespace automatically imported into every asp.net page

Select Answer:

10

Posted Date: 01 Jul 2010 Posted By:: Santosh Kumar Singh Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

A few of the Name Space that get imported by default in aspx file are:

Select Answer:

System,System.Data,System.Drawing

System,System,IO,System.Management

System,System.Collection,System.Text,System.Web

118
None of these

Posted Date: 01 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What is the difference between server side and client side code?

Select Answer:

Server side code execute on server side and client side code execute on client's

browser

Both are execute on server side

Both are execute on Client side

Posted Date: 01 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What is HiddenField web server control ?

HiddenField is used to store information in the page without displaying it.


Although the information is not displayed when browser renders the page but users can
see it in page's source. Therefore do not store sensitive information in a HiddenField
control.
To put information into a HiddenField control, set it in the Value property of the control.

Select Answer:

119
This control is used to store the information in the page without displaying it

This control is used to store the information in the database

This control is used to store the information in the xml

All

Posted Date: 01 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What is the Main role of MSIL ?

The main role of MSIL is to make .Net applications platform independent.Expansion of


MSIL is MicroSoft Intermediate Language.

Select Answer:

To make .Net applications platform independent. (Your selection was wrong)

To make .Net applications platform dependent.

Both

Posted Date: 01 Jul 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What are the different code models available in ASP.NET 2.0?

There are 2 code models available in ASP.NET 2.0.


First one is single-file page

120
The second one is the code behind page.

Select Answer:

single-file page

code behind page.

Both

none

Posted Date: 01 Jul 2010 Posted By:: Manju Member Level: Gold Points: 3 (Rs.
1)
Category: ASP.NET

Why does the below code does not compile?

class Csharp {
public static readonly int instanceCount;
static void Main() {
instanceCount = 1;
}
}

Select Answer:

The static "Main" method is required to accept a parameter array.

A readonly field can only be initialized when declared or in a static constructor

121
A class constructor cannot be private.

A readonly field can only be initialized when declared.

A class is required to have at least one public constructor.

Posted Date: 01 Jul 2010 Posted By:: Manju Member Level: Gold Points: 3 (Rs.
1)
Category: ASP.NET

Within an instance constructor of a struct type, which one of the following key words
behaves exactly as an output parameter of the struct type?

Select Answer:

value

object

ref (Your selection was wrong)

base

this

Posted Date: 01 Jul 2010 Posted By:: Manju Member Level: Gold Points: 3 (Rs.
1)
Category: ASP.NET

Where is a single instance of each unique string constant declared in a program


maintained?

Select Answer:

binding table

string builder

122
AssemblyRef table

paged address pool

intern pool

Posted Date: 30 Jun 2010 Posted By:: krishnavenikaladi Member Level:


Gold Points: 3 (Rs. 1)
Category: ASP.NET

The @ register is used for

Select Answer:

Registering the web user control in page

Registering server control in page

Both 1 & 2 (Your selection was wrong)

None of Above

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can I upgrade my existing ASP.NET 1.x website to ASP.NET 2.0?

Select Answer:

Yes

No

I dont know

123
Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can I have VS.NET and the Visual Studio 6.0 installed on the same machine?

Select Answer:

No

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Is overloading possible in web services?

Select Answer:

No

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Name the ASP Objects?

124
Select Answer:

Session and Application Object

Server and Request Object

Response and Object Context

Error Object

All

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Web service support?

Web service support Data Set and not support data reader

Select Answer:

Data set

dataReader

both of above

none of above

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which name-space is used for event log support?

125
Select Answer:

Using System.xml

using System.Diagnostics;

using System.Diag.

using System.Data

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What is the maximum number of cookies that can be allowed to a web site

Select Answer:

25

24

23

22 (Your selection was wrong)

20

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Is there any limit for query string? if means what is the maximum size?.

Select Answer:

126
254 Bytes

255 Bytes

256 Bytes (Your selection was wrong)

355 Bytes

455 Bytes

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

How many types of cookies are available in asp?

Select Answer:

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What tag do you use to add a hyperlink column to the DataGrid?

Select Answer:

HyperLink Column

Template column

127
Both

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can a .NET web application consume Java web service ?

Select Answer:

Yes

No

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What is name space for xml in asp.net

Select Answer:

system.xmls

system.net.xml

system.xml

128
Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can I use the Win32 API from a .NET Framework program?

Select Answer:

No

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can .NET Framework components be used from a COM program?

Select Answer:

No (Your selection was wrong)

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:

129
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can .NET Framework components be used from a COM program?

Select Answer:

No (Your selection was wrong)

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Once i have developed the COM wrapper do i have to still register theCOM in registry?

Select Answer:

Yes

Not possible

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

130
How many types of caching in asp.net

Select Answer:

4 (Your selection was wrong)

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What base class do all Web Forms inherit from?

Select Answer:

Windows class

The Page class.

Both

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can you change the value of a variable while debugging a C# application?

Select Answer:

131
No

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What's the difference between // comments, /* */ comments and /// comments?

Select Answer:

Single-line

multi-line

Both

Single-line, multi-line and XML documentation comments.

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Will finally block get executed if the exception had not occurred?

Select Answer:

No

Yes

I dont know

132
Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

How can you sort the elements of the array in descending order?

Select Answer:

By calling Asc() and then Reverse() methods. (Your selection was wrong)

By calling Desc() and then Reverse() methods.

By calling Sort() and then Reverse() methods.

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can you create enumerated data types in C#?

Select Answer:

Yes

No

May be Yes

133
Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Can you declare a C++ type destructor in C# like ~MyClass()?

Select Answer:

Yes

No (Your selection was wrong)

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

134
How do you convert a string into an integer in .NET?

Select Answer:

Int32(string)

Integer.Parse(string) (Your selection was wrong)

Int32.Parse(string)

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What type of code (server or client) is found in a Code-Behind class?

Select Answer:

C#

Java Script

VB Script

All

135
Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can you create an app domain?

Select Answer:

No

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can we handle the error and redirect to some pages using web.config?

136
Select Answer:

No

Yes

I dont know

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Is it possible to pass a querystring from an .asp page to aspx page?

Select Answer:

Yes

No

I dont know

137
Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

In order to get assembly info whcih namespace we should import?

Select Answer:

System.Drawing

System.Net

System.Data.Sqlclient

System.Data

system.reflection

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

ColumnMapping belongs to which namespaces?

138
Select Answer:

System.Drawing

System.Wind.Clipboard

System.Data.Sqlclient

System.Data

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

When was ASP.NET released?

Select Answer:

2009

2008 (Your selection was wrong)

2007

2005

2002

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)

139
Category: ASP.NET

What is the transport protocol you use to call a Web service SOAP ?

Select Answer:

TCP

Http

Both

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Expansion of DBCC?

Select Answer:

database consistency Count

140
database Control Checker

database consistency checker

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can we use Truncate command on a table which is referenced by FOREIGN KEY?

We cannot use Truncate command on a table with Foreign Key because of referential
integrity

Select Answer:

Yes

No

I dont know

141
Posted Date: 29 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What was the code name for WCF?

What was the code name for WCF?

Select Answer:

Indigo

Services

None

142
Posted Date: 29 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which namespace is used to access WCF service?

Which namespace is used to access WCF service?

Select Answer:

System.ServiceModel

System.Service

System.Data

System.Web

Posted Date: 29 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

143
Which property need in the email functionality to set to send the content as HTML?

Select Answer:

IsBodyHTML=True

IsBodyHTML=False

Both

Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which name-space does the Color class comes under ?

Select Answer:

System.Drawings

System.Net

System.Drawing

144
Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What are the types for floating numbers ?

Select Answer:

Single (for 32 bit)

Double (for 64 bit) (Your selection was wrong)

Both

Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

145
What is the root class of the object hierarchy ?

Select Answer:

System

Web

Object

Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What is the class for getting the information that is on Clipboard of your system in
windows app ?

Select Answer:

System.Windows.Clipboard

System.Wind.Clipboard

System.Window.Clipboard (Your selection was wrong)

None

146
Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

A query fetched 10 records How many times does a PRE-QUERY Trigger and POST-
QUERY Trigger will get executed ?

Select Answer:

Pre_Query fires 2 times post_Query fires 1 time

Pre_Query fires 10 times post_Query fires once

Pre_Query fires 2 times post_Query fires 10times

Pre_Query fires once post_Query fires 10times

Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

147
Why edit is not possible in repeater??

Select Answer:

Repeater Control just reads the information from the database,so edit is not

possible.

It will get the values from database as a read-write manner so edit is not possible.

Both

Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

How to find the given query is optimized one or not?

Select Answer:

Using SQL Profiler

Using SQL Query

Using View

148
Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What is the default size of .NET object?

Select Answer:

16 bytes

4 bytes

2 bytes (Your selection was wrong)

8 bytes

Posted Date: 28 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What is the base class of .net?

149
Select Answer:

System.Object is the base class of .NET

System is the base class of .NET

System.Object.Data is the base class of .NET

Posted Date: 28 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can you Assign Null to datetime ??

Select Answer:

Yes (Your selection was wrong)

No

Can't Say

150
Posted Date: 28 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How Many Times Event will be called?

A table has 10 records,each column has proper header and footer, if table will bind with
gridview then how many times rowDataBound event will be called?

Select Answer:

10 times

12 times

1 times (Your selection was wrong)

not called

151
Posted Date: 27 Jun 2010 Posted By:: dhara Member Level: Bronze Points:
2 (Rs. 1)
Category: ASP.NET

Which is code allows the modification of the head tag at runtime?

Select Answer:

< script javascript="server">

< head runat="server">

Both

None

head must be modified at runtime b'coz if we use master page then same content must
be applied to every page .Header of every page is also changed according to master
page's head tag.

152
Posted Date: 25 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

In global.asax on which sessionstate mode Session_End event will fire?

In global.asax on which sessionstate mode Session_End event will fire?

Select Answer:

InProc

State server

Database server

None

153
Posted Date: 24 Jun 2010 Posted By:: UltimateRengan Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

If a users has disabled cookies in his browsers, what can be done to enable forms
authentication?

Select Answer:

Use the AutoDetect Folder.

Use the Detect setting.

Use the AutoDetect setting.

Posted Date: 24 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Maximum number of parameters you can pass in a Store procedure in SQL Server
2005?

154
Select Answer:

21010

21036

2100

2568 (Your selection was wrong)

Posted Date: 24 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

How can we copy the file from one location to other?

Select Answer:

Using File.Copy Method

Using File.Copy Location Method

Using Copy Method

None

Posted Date: 24 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)

155
Category: ASP.NET

Which attribute is used to apply the skin to a control of that type

Select Answer:

theme

Skinid

Class

Posted Date: 24 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 1 (Rs. 1)
Category: ASP.NET

What are the fundamental objects in ado.net?

Select Answer:

Data reader

156
Dataset

Data reader and Dataset

none

Posted Date: 22 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which method is found with Dataset?

Select Answer:

ReadXML()

WriteXML()

Update()

All of the above

157
Posted Date: 22 Jun 2010 Posted By:: vijetha Member Level: Gold Points: 1 (Rs.
1)
Category: ASP.NET

Sqlconnection belongs to which assembly

Select Answer:

System.data.sqlclient

System.Text

System.Collections

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

The Main component of WCF is

Select Answer:

158
Service class

Hosting Environment

End Point

All of the above

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which Authentication mode is not found?

Select Answer:

Windows (Your selection was wrong)

Web

Forms

Passport

159
Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which is not feature of static class?

Select Answer:

It can not be instantiated

It Can not be inherited

It Has only static members

It has public constuctor

it has only static constructor

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which one is not a property of OOP?

160
Select Answer:

Static Polymorphism

Modularity

Emphasis on Procedure

Data Hiding

Inheritance

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which is used to maintain client side state?

Select Answer:

Query String

Hiddenfield

Cookies

View State

All of the above

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:

161
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Scavenging is a concept ?

Select Answer:

To remove items from the cache when low memory found

To remove items from the hard disk when low memory found

To remove items from the RAM when low memory found

Can Not say

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

In Which namesapce caching is found?

162
Select Answer:

System.Runtime.Caching

System.Web.Runtime.Caching

System.Cachinng

System.Web.Caching

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which one can not return by Web services?

Select Answer:

Dataset

Data Reader

String

Value

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

163
Which One is not access specifiers in VB.net?

Select Answer:

Private

Protected

Friend

Internal

Protected Friend

Posted Date: 21 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 1 (Rs. 1)
Category: ASP.NET

Which one is special folder not found in ASP.Net

Select Answer:

App_WebReference

App_Thems

App_Localisation

App_Code

App_Data

164
Posted Date: 20 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

which one selector not Found in JQuery?

which one selector not Found in JQery?

Select Answer:

CSS Selector

Control Selector

XPath Selector

Custom Selector (Your selection was wrong)

Posted Date: 20 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

165
Which one can be more than one times in JQuery?

Select Answer:

body.onload()

document.ready()

Both (Your selection was wrong)

Answer1

Answer2

Posted Date: 20 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which One Control Not Found In AJAX

Which One Control Not Found In AJAX

Select Answer:

Timmer Control (Your selection was wrong)

Script Manager

Update Pannel Progress

166
Update Control

Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which tool available to debug AJAX?

Which tool available to debug AJAX?

Select Answer:

Ajax can not be debuged

Fidller (Your selection was wrong)

Firebug

Bugzilla

Answer 1 and 2

167
Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which one Contract not found in WCF

Which one Contract not found in WCF

Select Answer:

Data Contract

Service Contract

Method Contract

Message Contract

168
Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

A Seesion value can be stored in :

A Seesion value can be stored in :

Select Answer:

In Process

State Server

Sql Server

All of the above

Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

169
Which one is not a type of Serialization?

Which one is not a type of Serialization?

Select Answer:

Binary

Unary

SOAP

XML

Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which one parameter is not found in OutPut Directive ?

Which one parameter is not found in OutPut Directive

Select Answer:

VaryByParam

VaryByHeader

170
VayByCostum

VaryByQueryString

Non of The Above

Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

WCF Suppots

WCF Supports

Select Answer:

Distributed Computing

Broad Interoperability

Direct service

All

Non of the Above

Posted Date: 19 Jun 2010 Posted By:: rajesh kumar parbat Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

171
WCF consists

WCF consists

Select Answer:

Web Services

Remoting

COM+

MSMQ

All

Posted Date: 18 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can we throw exception from catch block ?

Select Answer:

No

May be

Yes

172
I dont know

Posted Date: 18 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

If i will write a piece of code in finaly block, will it execute if there is an exception in try
block.

Select Answer:

No

Yes

I dont know

Posted Date: 18 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Can we use Page.PreviousPage to get the value of controls of the previous page in

173
case of response.Redirect ?

Select Answer:

Yes

No

I dont know

Posted Date: 16 Jun 2010 Posted By:: vijetha Member Level: Gold Points: 2 (Rs.
1)
Category: ASP.NET

How can we Filter rows in a Datatable ?

Select Answer:

datatable = datatable.CreateDataReader()

datatable = datatable.select("Condition");

datatable = datatable.Clone()

datatable = datatable.Compute()

174
Posted Date: 16 Jun 2010 Posted By:: vijetha Member Level: Gold Points: 2 (Rs.
1)
Category: ASP.NET

Explain the difference between cache and application object.

Select Answer:

Application object stores an Object with a scope of availability of the entire


Application unless explicitly destroyed.There as the lifetime of cache is throughout the

lifetime of an application or is based upon timeouts

Application object stores an Object through the lifetime of an application.Where as


There as the lifetime of cache object is with the scope of availability of the entire
application

Application object stores an Object based on the expiry time .Where as There as
the lifetime of cache object is with the scope of availability of the entire application

175
Posted Date: 16 Jun 2010 Posted By:: vijetha Member Level: Gold Points: 2 (Rs.
1)
Category: ASP.NET

What is the extension of the file, when LINQ to SQL is used

Select Answer:

.asmx

.dbml

aspx

Posted Date: 16 Jun 2010 Posted By:: vijetha Member Level: Gold Points: 2 (Rs.
1)
Category: ASP.NET

Which assembly represents the core LINQ API?

Select Answer:

176
System.Query

System.Data.DLinq

System.Data.DLinq

Posted Date: 16 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which exe we can use for create proxy class for the WCF service ?

Which exe we can use for create proxy class for the WCF service ?

Select Answer:

SvcUtil.exe

wsdl.exe

both

none

177
Posted Date: 16 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

What is default timeout property can be set for the WCF Service client call ?

What is default timeout property can be set for the WCF Service client call ?

Select Answer:

1 minute

2 minute

5 minute

Posted Date: 16 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

we can achive overload in WCF ?

we can achive overload in WCF ?

178
Select Answer:

Yes

No

we cant say

Posted Date: 16 Jun 2010 Posted By:: Kiran Kumar Reddy Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

What are the types of caching in ASP.NET?

What are the types of caching in ASP.NET?

Select Answer:

Output Caching

Fragment Caching

Data Caching

None

all the aboue

Posted Date: 15 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Can I upgrade my existing ASP.NET 1.x website to ASP.NET 2.0?

Select Answer:

179
No

Yes

I dont know

Posted Date: 15 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Expansion of CLI?

Select Answer:

Common language Integer

ommon language infra

Common language infrastructure

Compiler Language linfrastructure

Posted Date: 15 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 2 (Rs. 1)
Category: ASP.NET

A Web service can only be written in .NET ?

Select Answer:

No (Your selection was wrong)

180
Yes

I dont know

Posted Date: 15 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 2 (Rs. 1)
Category: ASP.NET

How many types of cookies are there?

Select Answer:

Posted Date: 15 Jun 2010 Posted By:: D.Jeya kumar(JK) Member Level:
Diamond Points: 2 (Rs. 1)
Category: ASP.NET

Which is the correct syntax of Date object in JavaScript?

Select Answer:

dateObjectName Date([parameters])

dateObjectName := new Date([parameters])

dateObjectName = new Date([parameters])

dateObjectName.new Date([parameters])

Posted Date: 15 Jun 2010 Posted By:: Arulmozhi Member Level: Gold Points:

181
2 (Rs. 1)
Category: ASP.NET

Explain the Client side State Management Techniques in ASP.NET ?

Select Answer:

Cookies, Querystring,Hidden fields,viewstate

Session variable

Application variable

Cookies, Querystring,Hidden fields,viewstate. They are used to store the information


only in the client side

Posted Date: 15 Jun 2010 Posted By:: Abhishek Member Level: Gold Points:
2 (Rs. 1)
Category: ASP.NET

Which of the following tool is used to manage the GAC?

Select Answer:

RegSvr.exe

GacUtil.exe

GacSvr32.exe

GacMgr.exe

Posted Date: 15 Jun 2010 Posted By:: Abhishek Member Level: Gold Points:
2 (Rs. 1)
Category: ASP.NET

182
The first event triggers in an aspx page is

Select Answer:

Page_Init()

Page_Load()

Page_click()

Posted Date: 15 Jun 2010 Posted By:: Abhishek Member Level: Gold Points:
2 (Rs. 1)
Category: ASP.NET

Choose the form in which Postback occurs

Select Answer:

HTMLForms

Webforms

Winforms

Posted Date: 15 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 2 (Rs. 1)
Category: ASP.NET

What is the default language of SSIS Script Task?

Select Answer:

C# (Your selection was wrong)

VB.Net

183
J#

other

Posted Date: 10 Jun 2010 Posted By:: Damodharan V.M Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What is the purpose of Connection pooling?

While adding the connection string sometimes the pooling property is set to true. Why
we set this property and what is the purpose?

Select Answer:

Maintains number of opened connections

Reduce the performance of web applications

Maintains number of closed connections

Both A and B (Your selection was wrong)

Both A and C

The main purpose of the connection pooling is, each and every request to open the
database connection the pool manager checks if the pool contains any unused
connections and returns the connections.

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How many types of catching in asp.net?

Select Answer:

184
7

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How do you run Garbage collection in .Net ?

Select Answer:

System.GC.Collect( )

System.AC.Collect( )

GC.Collect(

System.GC.Collect( run)

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

How many controls can be placed in a cell of tableLayoutPanel control ?

Select Answer:

185
1

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Does System.Array supports multiple data types?

Select Answer:

I dont know

Yes

May be

No

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Is it possible to have a static indexer in C# ?

Select Answer:

Yes

No

I dont know

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Is class a reference type or Value type ?

Select Answer:

Value type

186
reference type

None

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Expansion of ACL?

Select Answer:

Access Count List

Access Control Label

Access Control Listbox

Access Control List

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Which keyword is used if want that our class can't be inherited

Select Answer:

sealed

Return

void

set

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

which web server controls which can generate dynamic content on an output-
cached Page ?

Select Answer:

Substitution control (Your selection was wrong)

AdRotator control

Both

Other

187
Posted Date: 10 Jun 2010 Posted By:: D.Jeya kumar(JK) Member Level:
Diamond Points: 3 (Rs. 1)
Category: ASP.NET

What is the advantage of jQuery?

Select Answer:

JQuery will not support AJAX

Client side Animation is not possible

JavaScript enhancement with the overhead of learning new syntax

Ability to keep the code simple, clear, readable and reusable

Posted Date: 10 Jun 2010 Posted By:: pawan kumar Member Level:
Silver Points: 3 (Rs. 1)
Category: ASP.NET

what is master page?

Select Answer:

home page of website

common template for all pages

global file

none of above

Posted Date: 10 Jun 2010 Posted By:: pawan kumar Member Level:
Silver Points: 3 (Rs. 1)
Category: ASP.NET

Which of the following method must be overridden in a custom control

Select Answer:

The Render() method

The Paint() method

The Control_Build() method

The default constructor

Posted Date: 10 Jun 2010 Posted By:: pawan kumar Member Level:
Silver Points: 3 (Rs. 1)
Category: ASP.NET

188
The first event triggers in an aspx page is

Select Answer:

Page_Init()

Page_load()

Page_click()

none of above

Posted Date: 10 Jun 2010 Posted By:: pawan kumar Member Level:
Silver Points: 3 (Rs. 1)
Category: ASP.NET

Choose the form in which Postback occurs.

Select Answer:

html form

web form

win form

all of above

Posted Date: 10 Jun 2010 Posted By:: UltimateRengan Member Level:


Diamond Points: 3 (Rs. 1)
Category: ASP.NET

Expansion of UDDI?

Select Answer:

Universal Description, Discount and Integration

Unit escription, Discovery and Integration

Universal Description, Discovery and Integer

Universal Description, Discovery and Integration

189

You might also like