Question:



Question:

1) Which is the most appropriate place to install a Strong-Named assembly that is intended for use among several web applications?

Select Answer:

• 1. GAC on the local area network Primary Domain Controller (PDC) server.

2. The Global Assembly Cache on the Web Server. [pic]

• 3. The solution's /bin directory

• 4. The Virtual Directory of the Web Application

2) How to create a class that calls the XML Web service.?

Select Answer:

• 1. Select Add Web Service from the Project menu in Visual Studio .NET and browse to the XML Web service

• 2. Select Add Reference from the Project menu in Visual Studio .NET and browse to the XML Web service.

• 3. Select Add Web Reference from the Project menu in Visual Studio .NET and browse to the XML Web servi[pic]

• 4. Run the Type Library Importer (Tlbimp.exe) and provide it with the URL for the XML Web service.

• 5. Run the Web Services Discover tool (Disco.exe) and provide it with the URL for the XML Web service.

3) what is interface?

Select Answer:

• 1. Valuetype

• 2. Referencetype[pic]

• 3. pointer

• 4. both 1 &2

• 5. none

4) What is the difference between a Visual Studio .NET solution and a Visual  Studio .NET project?

Select Answer:

• 1. A Solution can’t be created from menu File->New but Project can.

• 2. The solution is just a development tool for organizing projects. The project is the actual Web app[pic]

• 3. Both a and b are true

• 4. There is no difference between them

5) Who is the author of the Book "THE ROAD AHEAD" ?

Select Answer:

• 1. Charles Babbage.

• 2. Bill Gates.[pic]

• 3. Narayan Murty.

• 4. None of abov

6) What is the difference between a class module and a code module?

Select Answer:

• 1. Code modules are instantiated at runtime and class modules are instantiated at the time of design.

• 2. Class modules are instantiated at runtime to create objects and code modules do not have instances.[pic]

• 3. None

7) What is the difference between ADO command object   AND Command object

Select Answer:

• 1. No difference

• 2. ADO command Object return recordset object and command objcet return DataReader object[pic]

• 3. Both Return Recordset objcet.

• 4. command Object return Dataset object and command objcet return recordset object

8) Which of the following are the valid ways of using DDE for communication in ?

Select Answer:

• 1. use the DDERef class

• 2. use the iDDERef class

• 3. use the DDEcall class

• 4. use the DDEinv class

• 5. None of the above choices.

9) During the Development phase, to improve  the performance of your application,Which guidelines should you keep in mind?

Select Answer:

• 1. Cache the data when necessary.

• 2. Always Use SQL Server stored procedures to retieve data.

• 3. Always disable View State and Session State

• 4. Enable View State only when it is necessary.[pic]

• 5. Answer 2 & Answer 3

10) Which of the following is an authentication method for an web application?

Select Answer:

• 1. Custom [pic]

• 2. None

• 3. Anonymous Authorization

• 4. Authorization

11) Clone method can create which type of objects in ?

Select Answer:

• 1. shallow copy

• 2. deep copy

• 3. either shallow copy or deep copy[pic]

• 4. none

12) Choose the best choice for satellite assembly

Select Answer:

• 1. COM+ component

• 2. A .Net DLL

• 3. .Net executable file

• 4. contains user interface text information.[pic]

13) Which control is used to display the advertisements in

Select Answer:

• 1. DataGrid

2. ADRotator & XML[pic]

• 3. XML

• 4. Adrotator

• 5. Panel

14) Which is the correct statement in the following to set the alias name for namespace in C#?

Select Answer:

• 1. using System Data.OracleClient = aliasName;

• 2. using aliasName = System.Data.OracleClient;[pic]

• 3. string aliasName = using.System.Data.OracleClient;

• 4. both 1 & 2

• 5. both 2 & 3

15) The .NET class Global is derived from which of the following classes ?

Select Answer:

• 1. System.Web.UI.PageParser

• 2. System.Web.HttpApplicationState

• 3. System.Web.UI.Page

• 4. System.Web.HttpApplication[pic]

• 5. None of the above.

16) What’s a strong name?

A strong name includes the name of

Select Answer:

• 1. The Assembly

• 2. Version number

• 3. Culture Identity

• 4. Public Key Token

• 5. All[pic]

17) How many Nesting Levels are allowed in Triggers

Select Answer:

• 1. 12

• 2. 24

• 3. 32[pic]

• 4. None

18) What can be achieved in IL which is not possible in C# ?

Select Answer:

• 1. Creation of an ArrayList

• 2. Creation of a Dictionary

• 3. Creation of a two dimensinal array

• 4. Creation of a non-zero based array[pic]

19) Why we are use Tlimp (Type library Checker)?

Select Answer:

• 1. The COM Contains Metadata. So, the Metadata Converted to equivalent .Net Metadat By using Tlimp[pic]

• 2. Tlimp used to Call The EXE

• 3. The COM Contains Metadata. So, the Metadata Converted to equivalent .Net Metadat By using Tlimp

• 4. call the metood

20) What is the output of the following snippet in C# ?

using System;

class main

{

static long afield=123;

static main()

{

Console.WriteLine(afield);

}

main()

{

afield=1000;

Console.WriteLine(afield);

}

static void Main(String[] args)

{

main obj=new main();

}

}

Select Answer:

• 1. 1000 123

• 2. 123

• 3. No output

• 4. 123 1000[pic]

21) You are developing a Microsoft(R) Visual Basic(R) .NET Windows(R) application for a client. In your program logic, you want to remove a specific control from a collection of controls.

Which ControlCollection method should you use?

Select Answer:

• 1. Clear

• 2. Contains

• 3. Remove

• 4. RemoveAt[pic]

22) Which OS comes along with Dotnet Framework ?

Select Answer:

• 1. Windows 95

• 2. Windows 2000 Professional

• 3. Windows 2003 Server[pic]

• 4. Windows NT

23) What can be achieved in IL which is not possible in C# ?

Select Answer:

• 1. Creation of an ArrayList

• 2. Creation of a Dictionary

• 3. Creation of a two dimensinal array

• 4. Creation of a non-zero based array[pic]

24) How do you debug  in-process components?

Select Answer:

• 1. Set the debug property of the component to true

• 2. Set the Enable property of the component to true

• 3. Load a Test project & the component Project into a project group[pic]

• 4. Load a Test project in one instance of VB & the component Project in another instance

• 5. None of the above

25) What is Base Class In .NET?

Select Answer:

• 1. system

2. syetem.object[pic]

• 3. system.data

• 4. system.Type

26) Which is the correct statement in the following to set the alias name for namespace in C#?

Select Answer:

• 1. using System Data.OracleClient = aliasName;

• 2. using aliasName = System.Data.OracleClient;[pic]

• 3. string aliasName = using.System.Data.OracleClient;

• 4. both 1 & 2

• 5. both 2 & 3

27) You are designing n-tier architecture application with four layers.Which layer should handle security issues   send back to the  user interface ?

Select Answer:

• 1. DataBase

• 2. Data ObjectsClass Base

• 3. Client objects

• 4. Bussiness Objects

• 5. All of the above

 27)  Public Shared Sub F()

   End Sub

End Class

Class MyDerived

   Inherits Base

   Private Shared Shadows Sub F()

   End Sub

End Class

Class MyMoreDerived

   Inherits MyDerived

   Shared Sub G()

       F()  ' Will call which method here ?

   End Sub

End Class

In the above sample which class' F() method will be called from MyMoreDerived class ?

Select Answer:

1. Base class' F() method.[pic]

• 2. MyDerived class' F() method

• 3. Ambiguty occurs

• 4. Generates other exception.

28) You are developing a Microsoft(R) Windows(R) Forms application that will accommodate different languages. You are preparing different versions of the application, and you want to ensure that users load the appropriate version specific to their regional settings.

What should you do to enforce this?

Select Answer:

• 1. Set the TextAlign property for all controls on Form1.vb.

• 2. Set the RTL property on Form1.vb to true.

• 3. Set the CurrentUICulture property of the main thread in the form's code.[pic]

• 4. Set the Form's language property.

• 5. Set the Localizable property of Form1.vb to true.

29) you have created  a form  with name  FORM 1.this form contains three textboxes& three command Buttons.Examine this Procedure of Form 1

private sub command1_click()

dim iCnt as integer

for iCnt=0 to 3

controls(iCnt).fontBold=True

Next iCnt

End Sub

Which action will this procedure perform when the command1 command button clicked?    

Select Answer:

• 1. The Procedure will change the font to bold for the first 4 controls in the controls collection[pic]

• 2. The Procedure will change the bolded fonts to normal for all controls in the controls collection

• 3. The procedure will change the font to bold for the first 3 controls in the controls collection

• 4. Thye procedure will change the bolded font to normal for only the first 3 commandbutton controls

• 5. None of the above

30) Which Class can not be Inherited?

Select Answer:

1. Virtual Class

• 2. Sealed Class[pic]

• 3. Abstruct Class

• 4. Final Class

31) What is the function of Response.End?

Select Answer:

• 1. it will stop the server process[pic]

• 2. it will stop the client process

• 3. or both

• 4. or none

32) In Web Application the class "WebForm1" inherits from

Select Answer:

• 1. System.Web.Page

• 2. System.Page.Web.WebForm

• 3. System.Web.UI.WebForm

• 4. System.Web.UI.Page[pic]

• 5. None

33) What is the output of following C# code ?

class AClass

{

sbyte aField;

public AClass(sbyte aField)

{

this.aField = aField;

System.Console.Write(aField);

}

}

class MainClass

{

static void Main(){ }

static MainClass()

{

First = new AClass(5);

}

AClass Third = new AClass(9);

static AClass First = null;

static AClass Second = new AClass(-2);

}

Select Answer:

• 1. 5-2

• 2. 5-29

• 3. -25[pic]

• 4. -259

• 5. –295

34) In windows application the class "Form1" inherited from

Select Answer:

• 1. System.Wndows.Form

• 2. System.Windows.Forms.Form[pic]

• 3. System.Windows.Forms.Form1

• 4. System.Forms.Window.Form

• 5. none

35) In the Web Service the class 'Service1' inherits from

Select Answer:

• 1. System.WebServices.Service

• 2. System.WebServices.WebService

• 3. System.Web.Services.WebService[pic]

• 4. System.Web.Services.Service

• 5. none

36) How to identify memory spaces in Array?

Select Answer:

• 1. FindMemory

• 2. MemorySpace

• 3. Capacity[pic]

• 4. ArrayMemory

• 5. Value

37) How many Non-Clustered indexes can be created?

Select Answer:

• 1. only 1

• 2. 248

• 3. 246

4. 249[pic]

• 5. any number

38) offers two types of Data Adapters: SqlDataAdapter and OleDbDataAdapter. You are connecting to a SQL Server 2000 database and you choose to use the SqlDataAdapter.

Referring to the scenario above, why do you make this choice?

Select Answer:

• 1. The OleDbDataAdapter is older technology kept in for backward compatibility.

• 2. The OleDbDataAdapter is a sockets-based adapter for databases that are not specific to the machine.

• 3. The OleDbDataAdapter is mainly designed for older, less efficient MS Access databases.

• 4. As SqlDataAdapter does not have to go through an OLE DB layer,it is faster than the OleDbDataAdapter[pic]

• 5. The SqlDataAdapter object is specific to SQL Server, the OleDbDataAdapter is for MYSQL

39) How to display the structure of the Table in SQL Server?

Select Answer:

• 1. sp_TableName

• 2. sp_help TableName[pic]

• 3. sturct TableName

• 4. structure TableName

• 5. none of the above

40) Which operating system has the .NET Framework and Common Language Runtime (CLR) natively installed?

Select Answer:

• 1. Windows .NET Enterprise Servers

• 2. Windows XP Professional[pic]

• 3. Windows XP Home Edition

• 4. Windows 9x

• 5. Windows 2000

41) What is the output of following C# code ?

using System;

class AClass

{

ushort aField;

public AClass( ushort aField )

{

Console.Write( this.aField = aField );

}

}

class MainClass

{

static void Main(  )

{

AnObj = new AClass( 44 );

}

AClass AnObj = new AClass( 33 );

}

Select Answer:

• 1. 33

• 2. Syntax Error [ Cannot access 'AnObj' in 'static void Main( )' ][pic]

• 3. 44

• 4. 3344

• 5. 4433

42) Which operating system has the .NET Framework and Common Language Runtime (CLR) natively installed?

Select Answer:

• 1. Windows .NET Enterprise Servers

2. Windows XP Professional[pic]

• 3. Windows XP Home Edition

• 4. Windows 9x

• 5. Windows 2000

43) What is the output of following C# code ?

class AClass

{

sbyte aField;

public AClass(sbyte aField)

{

this.aField = aField;

System.Console.Write(aField);

}

}

class MainClass

{

AClass Third = new AClass(8);

static void Main()

{

}

static AClass Second = new AClass(7);

}

Select Answer:

• 1. 7[pic]

• 2. 8

• 3. 78

• 4. 87

• 5. No output

44) sudhakar wants to read a very large XML document. She wants to use a fast, noncached, forward-only stream to access the data

Given the above scenario, which class from the System.XML namespace should sudhakar use?

Select Answer:

• 1. XmlDocument

• 2. XmlText

• 3. XmlTextReader[pic]

• 4. XmlTextWriter

• 5. XmlElement

45) which of  the following are/is  value type datatypes of C#?

Select Answer:

• 1. String

• 2. Object

• 3. Struct[pic]

• 4. 1 & 2

• 5. All

45) Stacy wants to populate a select dropdown combo box with data in a data store. Stacy wants a fast, forward only, read-only database connection using .

Given the above scenario, which one of the following objects should Stacy use?

Select Answer:

• 1. A DataAdapter object

• 2. A Command object

• 3. A DataReader object[pic]

• 4. A Recordset object

• 5. A Connection object

46) While using  C#  language in .Net Framework which of the following datatype is valid?

Select Answer:

• 1. String

• 2. string

• 3. both 1 & 2[pic]

• 4. none

• 5. all

47) From which one of the following locations does the garbage collector remove objects?

Select Answer:

• 1. The download cache

• 2. The global assembly cache

• 3. The thread stack

• 4. The managed heap[pic]

• 5. The system registry

48) Which of these tasks requires you to use imperative security rather than declarative security?

Select Answer:

• 1. Refusing dangerous permissions such as Registry permission

• 2. Ensuring that your application has access to an environment variable whose name is not known until r[pic]

• 3. Ensuring that your application has access to a specific file whose name is known at design time

• 4. Ensuring that your application has access to a Jet database as a specific user.

49) In , what is the keyword used to declare abstract members?

Select Answer:

• 1. Abstract

• 2. Override

• 3. MustOverride[pic]

• 4. Implements

• 5. None

50) In your .NET application, you use a DataSet object containing a single DataTable object named Customers. The Customers DataTable has all the rows and columns from the Customers table in your database. You would like to bind only selected columns from the Customers table to a DataGrid control. You want a solution that requires minimum programming, and you want to have minimum impact on the functionality and performance of other applications accessing the same SQL Server database. How should you proceed?

Select Answer:

• 1. A. Create a second DataTable object in the DataSet object. Copy the desired data to the second DataT

• 2. Create a Command object to retrieve the desired columns from the DataTable object. Bind the Command

• 3. Delete the undesired columns from the DataTable object.

• 4. Create a DataView object that retrieves only the desired columns from the DataTable object. Bind the[pic]

51) In which of these situations should you use tlbimp, the Type Library Importer tool? (Select two.)

Select Answer:

• 1. When you must call a COM component that you wrote from Visual C# .NET code.[pic]

• 2. When you must produce a strong-named assembly that calls methods from one of your company's OM comp

• 3. When you require objects from Microsoft Word in your .NET application.

• 4. When you need to be able to call Windows API functions in kernel.dll from your .NET code.

52) When a control is created at runtime where would it be saved so that it is available between requests to a web form?

Select Answer:

• 1. Application State

• 2. Session State

• 3. Page Object's View State[pic]

• 4. Web State

• 5. None

53) Which of the following statements is an example for typed refernce to a table's particular column?

Select Answer:

• 1. DataSet1.Customers.CityColumn.Caption="@City"[pic]

• 2. DataSet1.Tables("Customers").Colums("City").Caption="@City"

• 3. DataSet1.Tables.Customers.Columns.City.Caption="@City"

• 4. DataSet1.Tables("Customers").CityCOlumn.Caption="@City"

• 5. None

54) What is SIngle SIgn-On ?

Select Answer:

• 1. User can login different application domain with same credential.[pic]

• 2. User can not login different application domain with same credential.

• 3. User can login different application domain with different credentials.

• 4. User can login different applications with different credential.

• 5. None of Above

55) Which of the following argument prevents the View from being published as a part of SQL Server replication?

Select Answer:

• 1. WITH CHECK OPTION

• 2. ENCRYPTION[pic]

• 3. SCHEMABINDING

• 4. VIEW_METADATA

56) .NET Garbedge Collector (GC) mark object as ?

Select Answer:

• 1. 0 sate , 1 sate , 2 state[pic]

• 2. 1 sate , 2 state, 3 state

• 3. A sate , B sate , C state

• 4. B sate , C state , D state

• 5. None

57) How many Parameters per stored procedure can have ?

Select Answer:

• 1. 32

• 2. 1024[pic]

• 3. 250

• 4. 8060

58) What is the difference between passing a reference type(object type)  by ByVal and ByRef??

Select Answer:

• 1. ByRef has a advantage that the passed object can be assigned to another reference type or set to nul[pic]

• 2. No Difference since both will refer to the address of the variable only

• 3. No difference since only a copy of the reference is sent to the calling function

• 4. 2 and 3

59) How HR can "Help" to resolve any .NET developer is professional or pirated software user ?

.NET released on 15 Jan 2002.All those having experiance more than 3 years are pirated software user ( in Yr - Dec 2004)

Select Answer:

• 1. All those having experiance more than 3 years are pirated software user ( in Yr - Dec 2004)[pic]

• 2. All those having experiance more than 3 years are pirated software user ( in Yr - Dec 2004)

• 3. All those having experiance more than 3 years are pirated software user ( in Yr - Dec 2004)

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download