PRN292_hoccainaydi

¡Supera tus tareas y exámenes ahora con Quizwiz!

What error does the following code generates when compiled?1.abstract class Class2.{3.public void getNumber();4.}5.class ClassA:Class6.{}

'Class.getNumber()' must declare a body because it is not marked abstract.

# Display of Animal class

(Display of animal class)x2

We have two sentences: ADO.NET provides a single set of types that communicate with multiple database management systems (DBMSs). ADO.NET supports multiple data providers, each of which is optimized to interact with a specific DBMS

(a) incorrect, (b) correct

# We have two sentences: a. ADO.NET provides a single set of types that communicate with multiple database management systems (DBMSs). b. ADO.NET supports multiple data providers, each of which is optimized to interact with a specific DBMS.

(a) incorrect, (b) correct.

# which extention of file can be a code library?

*.exe

System.Data.SqlClient.SqlCommand cmd = cn.CreateCommand(); string query = "Select * From Customers";

-1

class Test{ static void Main() { int[] Array1= {3,2,1}; int i=Array.IndexOf(Array1,3); Console.WriteLine(i);} } What will be the output of above code

0

datatable dt = new datatable()

0

For decimal, the default value is

0.0m.

If you run the following program what lines would be included in its output? class A { public static void Main () { int i=0; switch (i) { default: System.Console.Write (i); break; case 1: System.Console.Write ("{0}",1); goto default; case 0: System.Console.Write ("{0}",0); goto case 1; } } }

010

student s = new student()

01234

# How many Page directives an ASP.NET page can include?

1

# the number of forms that can be add to an ASPX page is:

1

31. The number of forms that can be added to a aspx page isSkill/Topic: Intermediate

1

Console.WriteLine(o1.ToString());

1

How many Page directives an ASP.NET page can include?

1

The number of forms that can be added to a aspx page isSkill/Topic: Intermediate

1

int number1 = 3;

1

the number of forms that can be add to an ASPX page is:

1

What output does the code below generate when compiled/run? 1. class Employee{ 2. public int EmployeeId; 3. public static Employee getEmpId(int EmpId){ 4. Employee emp=new Employee(); 5. emp.EmployeeId=EmpId; 6. return(emp); 7. } 8. } 9. class Test{ 10. public static void Main(){ 11. Employee[] emps=new Employee[2]; 12. emps[0]=Employee.getEmpId(1); 13. emps[1]=Employee.getEmpId(2); 14. foreach(Employee e in emps) 15. System.Console.WriteLine(e.EmployeeId); 16. } }

1 2

1.Place the assembly in the global assembly cache.2.Sign the assembly with the key pair.3.Create a key pair.Which of the following is a correct sequence to convert a Private assembly to a Shared assembly.

3,2,1

7. The Asp.net server control, which provides an alternative way of displaying text on web page, isSkill/Topic: Beginner

< asp:label >

The Asp.net server control, which provides an alternative way of displaying text on web page, isSkill/Topic: Beginner

< asp:label >

Version number of an assembly are stored in the following format:

<Major version>.< Minor version >.<Revision>.<Build Number>

# what is the standard format of .net assembly's servion number?

<major version>.<minor version>.<build number>.<revision>

int myVar=3; if (myVar<5) if(myVar<3) Console.WriteLine("<3"); else if (myVar>2) Console.WriteLine(">2"); else Console.WriteLine("Other"); What will appear on the standard output?

>2

# The prefix ______ enables the use of keywords as identifiers, which is useful when interfacing with other programming languages.

@

The prefix ______ enables the use of keywords as identifiers, which is useful when interfacing with other programming languages.

@

# the...directive is used to set the caching duration of the output for a page

@OutputCache

the ... directive is used to set the Caching duration of the output for a page

@cacheOutput

Which of the following are valid identifiers?

@void va _void va _var

Select right statements:

A .NET process ,Each AppDomain

# Which element of a.Net assembly defines numerous flags that enable the runtime to understand the layout of managed file?

A CLR file header

# which sentence about DataSet is Correct?

A DataSet is an in-memory representation of external data

Which sentence about DataSet is correct

A DataSet is an in-memory representation of external data

# When we changes data in a DataSet, this change is automatically updated to the data source.

A DataSet is an in-memory representation of external data.

42. Who can access Session state variablesSkill/Topic: Intermediate

A Single session

Who can access Session state variablesSkill/Topic: Intermediate

A Single session

# How many times the .NET programs are compiled?

2

How many times the .NET programs are compiled?

2

hoe many time the .NET programs are compiled?

2

# What is output of the following code? class Fraction

2/4

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

20

50. What is the maximum number of cookies that can be allowed to a web siteSkill/Topic: Intermediate

20

What is the maximum number of cookies that can be allowed to a web siteSkill/Topic: Intermediate

20

28. What is the default session out timeSkill/Topic: Beginner

20 Min

What is the default session out timeSkill/Topic: Beginner

20 Min

What is the default session time out?

20 Min

# What is default session time out?

20 min

# what is default session time out?

20 minute

what is default session time out?

20 minute

what is default session time out?

20 minutes

Determine the output of the following code segment intx = 2009: inty = 2010; System.Console.WriteLine ("The value of x & y is : {0}". (x & y));

2008

Determine the output of the following code segment...System.Console.WriteLine ("The value of x & y is : {0}". (x & y));

2008

System.Console.WriteLine ("The value of x & y is : {0}". (x & y));

2008

# Console.WriteLine(v1.ToString());

2010

display<system.int32>(2010)

2010

14. How do you register a user control?Skill/Topic: Beginner

Add Src, Tagprefix, Tagname

How do you register a user control?

Add Src, Tagprefix, Tagname

How do you register a user control?Skill/Topic: Beginner

Add Src, Tagprefix, Tagname

# How do you add ASP.Net 3rd party component

Add reference of dll file and place the code where ever required

99. How do you add ASP.Net 3rd party componentSkill/Topic: Advanced

Add reference of dll file and place the code where ever required

How do you add ASP.Net 3rd party componentSkill/Topic: Advanced

Add reference of dll file and place the code where ever required

# What is the significance of Response.AddHeaders( )

Adds HTTP Headers to output stream

91. What is the significance of Response.AddHeaders( )Skill/Topic: Advanced

Adds HTTP Headers to output stream

What is the significance of Response.AddHeaders( )Skill/Topic: Advanced

Adds HTTP Headers to output stream

# When is the user controls code is executed

After the webform loads

95. When is the user controls code is executedSkill/Topic: Advanced

After the webform loads

When is the user controls code is executedSkill/Topic: Advanced

After the webform loads

# To add a custom control to a Web form we have to register with

All of the above

# Which Language can Support SOAP

All of the above

19. To add a custom control to a Web form we have to register with Skill/Topic: Beginner

All of the above

32. How do you manage states in asp.net applicationSkill/Topic: Intermediate

All of the above

73. Which Language can Support SOAPSkill/Topic: Advanced

All of the above

82. What data types do a Rangevalidator supportsSkill/Topic: Advanced

All of the above

How do you manage states in asp.net applicationSkill/Topic: Intermediate

All of the above

In Winfroms, ___ property is used to get or set value that is returned to the parent from when the button is clicked

DialogResult

Which of the following statement with respect to Data Grid control are True? (Choose all correct answers)

Each field in the...,The DataGrid control...

To add a custom control to a Web form we have to register with Skill/Topic: Beginner

All of the above

Which Language can Support SOAP ?

All of the above

Which Language can Support SOAPSkill/Topic: Advanced

All of the above

Which of the following can be defined as generic? (Choose one answer)

All of the others

# .NET Remoting can be applied to two objects communicating in any of the following manners:

All of the others.

# Data encapsulation can be implemented using:

All of the others.

# Which method help protect against SQL injection attacks:

All of the others.

.NET Remoting can be applied to two objects communicating in any of the following manners:

All of the others.

Data encapsulation can be implemented using:

All of the others.

Which method help protect against SQL injection attacks:

All of the others.

# A delegate type maintains three important pieces of information:

All of the otherss

Within the namespace we can declare following:

All the options mentioned

Within the namespace we can declare following: -

All the options mentioned

The___event of the Form control is used to perform tasks such as allocating resources used by the form

Allocate

Which of the following features are right to Value Types:

Allocated on the stack.

Imagine that you have two .cs files. The alpha.cs file contains a class called Alpha that contains an internal method called Method. The beta.cs file contains a class called Beta that also contains an internal method called Method. Can Alpha.Method be called from Beta.Method and vice versa?

Alpha.Method and Beta.Method can call each other only if Alpha and Beta are located in the same assembly.

# A .NET process hosts one to many application domains.

Each AppDomain is able to host any number of related .NET assemblies

with respect to Data Grid control are True

Each Field , The DataGrid

# Elements of a List<T> variable cannot have different type.

Elements of a List<T> variable cannot have different type.

# Hiding the implementation and exposing the interface is a concept of OOP called:

Encapsulation

# Enumerations are a handy programming construct that allow you to group name/value pairs.

Enumerations are a hand

# Which sentence about enumerations is correct?

Enumerations are a handy programming construct that allow you to group name/value pairs.

Which sentence about enumerations is correct?

Enumerations are a handy programming construct that allow you to group name/value pairs.

What are enumerations?

Enumerations are a handy programming construct that allows to group name/value pairs.

# What are enumerations?

Enumerations are composed of any number of member...

What is the lifespan for items stored in ViewState?

Exists for the Life of the current page

what are new language enhancements in Visual Studio 2008?

Extension methods | Automatic properties

# Which of the following information is not included in a strong name of a .NET assembly?

External assemblies of the assembly.

# Which is return value of ExecuteNonQuery() method of a Command object?

An integer is number of affected rows

Which is return value of ExecuteNonQuery() method of a Command object

An integer is number of affected rows

What is return value of ExecuteNonQueryO method of a Command object?

An integer is number of affected rows.

# An interface is name collection of semantically related abstract member.

An interface is name collection of semantically related abstract member.

# An object is the implementation of a class.

An object is the implementation of a class.

# Which of the following statements is true?

An object is the instantiation of a class

Which of the following statements is true?

An object is the instantiation of a class.

# In Windows Forms application, which property is used to get or set the edges of the control is anchoredto the edges of its container

Anchor

In Windows Form application,. which property is used to get or set the edges of the control is anchored to the edges of its container?

Anchor

___ property is used to get or set the edges of the control are anchored to the edges of its container

Anchor

_____property is used to get or set the edges of the control are anchored to the edges of its

Anchor

property is used to get or set the edges of the control are anchored to the edges of its container

Anchor

# Which property of Control type is used to define a relative fixed position in which the control should always be rendered?

Anchor.

_property is used to get or set the edges of the control are anchored to the edges of its container.

Anchor.

48. What is the default authentication mode for IISSkill/Topic: Intermediate

Anonymous

What is the default authentication mode for IISSkill/Topic: Intermediate

Anonymous

# If maximize and minimize buttons are displayed then the HelpButton property is ignored.

F

# The value of the HelpButton property is ignored if the maximize of minimize boxes are shown.

F

# A DataSet object is one of the components of the data provider.

FALSE

A DataSet object is one of the components of the data provider.

FALSE

DataSet object is one of the components of the data provider.

FALSE.

interface IMethods { void F(); void G(); } abstract class C: IMethods { void IMethods.F() { FF(); } void IMethods.G() { GG(); } protected abstract void FF(); protected abstract void GG(); } Consider the above code. The non-abstract that derive from C will have to implement:

FF(),GG()

15. How do you post the current page to a different aspx page ?Skill/Topic: Beginner

FORM ACTION="actiopage.aspx" RUNAT="server" method="post"

How do you post the current page to a different aspx page ?Skill/Topic: Beginner

FORM ACTION="actiopage.aspx" RUNAT="server" method="post"

# .NET is a whole new platform centered around the Intranet

False

# An assembly cannot be used in more than one application at a time

False

# An early binding is a binding between a function call and a function definition that is defined at runtime.

False

# An instance of a delegate type encapsulates one or more callable entities.

False

# Indexers can have user-defined names.

False

# Manual memory management needs to be done in C#

False

# Private assemblies have no versioning policy.

False

.NET is a whole new platform centered around the Intranet

False

A C# program can have only one using directive

False

An instance of a delegate type encapsulates one or more callable entities.

False

C# program can have only one using directive

False

If maximize and minimize buttons are displayed then the HelpButton property is ignored.

False

Manual memory management needs to be done in C#

False

Private assemblies have no versioning policy.

False

The value of the HelpButton property is ignored if the maximize of minimize boxes are shown

False

77. What is the purpose of Reflection

For Reading metadata at runtime

78. What is the purpose of Reflection?Skill/Topic: Advanced

For Reading metadata at runtime

What is the purpose of Reflection?

For Reading metadata at runtime

What is the purpose of Reflection?Skill/Topic: Advanced

For Reading metadata at runtime

Which of the following are true with respect to delegates?

For static methods, a callable entity consists of just a method. va Delegate types are implicitly sealed va It is not permissible to derive any type from a delegate type.

In ASP.NET application, and _____ variables can be accessed by all the pages in the application.

Global, Session

# Values of each GUI widget on the page are stored in a server-side variable.

False Values of each GUI widget on the page are stored in a hidden form field.

class Room{ int number=0; public bool isEmpty(){ return (number>0); } } class StaffRoom: Room{ int number=10; public new bool isEmpty(){ return (number>0); } public static void Main() { Room R1=new StaffRoom(); System.Console.WriteLine(R1.isEmpty()); StaffRoom R2=new StaffRoom(); System.Console.WriteLine(R2.isEmpty()); } } The output of above code will be:

False, True

A C# program can have only one using directive

False.

Indexers can have user-defined names.

Fasle

What is output when request the page that contains the code bellow? protected void Page_Load(object sender, EventArgs e){ Response.Write("<h1>Hello world!</h1>"); }

Hello world!

# which method of the control classconceals the control from the user?

Hide

The method ___ of the Control class conceals the control from the user

Hide

IntelliSence pops up a list of ___ that can be called on an onject

Hints + Properties

What is the property of ASP.NET DropDownList control can make change events cause a postback?

AutoPostBack

C) Cannot add 3rd party component to asp.net

B

# Which class enables you to share global information across all users (and all pages)?

HttpApplicationState

Which class enables you to share global information across all users (and all pages)?

HttpApplicationState

# What is the difference between HTTP handlers & HTTP modules

Httphandler is an class and Httpmodule is an assembly

92. What is the difference between HTTP handlers & HTTP modulesSkill/Topic: Advanced

Httphandler is an class and Httpmodule is an assembly

What is the difference between HTTP handlers & HTTP modulesSkill/Topic: Advanced

Httphandler is an class and Httpmodule is an assembly

An object that supports the ____ interface stores state information for an asynchronous operation, and provides a synchronization object to allow threads to be signaled when the operation completes.

IAsyncResult

3. Which is internal access modifier?

B. Marks a member as accessible limited to the current assembly, but not outside the assembly

4. Which sentence is correct?

B. Marks a member as accessible limited to the current assembly, but not outside the assembly.

Which is internal access modifier?

B. Marks a member as accessible limited to the current assembly, but not outside the assembly.

9. Which sentence is correct?

B. Override method and overridden base method must have the same return type.

6. Does destructor of a class impact to garbage collection?

B. Yes

# interface stores state information for an asynchronous

IAsyncResult Interface

# What are required services in an ASP.NET Web server?

IIS Admin and World Wide Web Publishing

What are required services in an ASP.NET Web server?

IIS Admin and World Wide Web Publishing

# What is the output format of the file the C# compiler produces?

IL

What is the output format of the file the C# compiler produces?

IL

# An assembly consists of Assembly Metadata. Type Metadata. _ and

IL Code and Resources

An assembly consists of Assembly Metadata. Type Metadata. _ and

IL Code and Resources

# Select the Interface which provides Fast, connected forward-only access to data

IdataReader

67. Select the Interface which provides Fast, connected forward-only access to dataSkill/Topic: Advanced

IdataReader

Select the Interface which provides Fast, connected forward-only access to dataSkill/Topic:

IdataReader

# which sentence about single-file assemblies is correct?

If an assembly is composed of a single module,you have a single -file assembly

Given these class definitions:class Superclass { }class Subclass1 extends Superclass { }and these objects:Superclass a = new Superclass();Subclass1 b = new Subclass1();which of the following explains the result of the statement:b = a;Select the correct statement.

Illegal at compile time

which of the following explains the result of the statement: b = a; Select the correct statement.

Illegal at compile time

# Why is Global.asax is used

Implement application and session level events

25. Why is Global.asax is used

Implement application and session level events

25. Why is Global.asax is used Skill/Topic: Beginner

Implement application and session level events

Why is Global.asax is used ?

Implement application and session level events

Why is Global.asax is used Skill/Topic: Beginner

Implement application and session level events

abstract class Class{ public abstract void getNumber(); public abstract void getHeight(); public bool isEmpty(){return (true);} } abstract class ClassA:Class{ public abstract void getWidth(); } class ClassB:ClassA { } What changes should be done in the above code so that the code does not generate any error at compile time?

Implement the methods getNumber(),getHeight(), getWidth() in the class ClassB

Which kind of threads is automatically killed when the application domain unloads?

Background threads

which sentence about background threads is correct?

Background threads are viewed by the CLR as expendable paths of execution that can be ignored at any point in time

# which sentence about background threads is correct?

Background threads are viewed by the CLR as expendable paths of execution that can be ignored at any point in time.

# The library provides shelter from the complexities of raw API calls and offers a consistent object model used by all .NET-aware languages.

Base class

The library provides shelter from the complexities of raw API calls and offers a consistent object model used by all .NET-aware languages

Base class

What are formatters you can choose when serialization an object?

BinaryFormater, SoapFormater and XMLSerializer.

Which format can be used to serialize Objects:

BinaryFormatter,SoapFormatter,XmlSerializer

# We can use ... and ... methods to ensure that application-level variables are not updated by more than one user simultaneously.

Block and Unblock

We can use ... and ... methods to ensure that application-level variables are not updated by more than one user simultaneously.

Block and Unblock

# Is postback is read only property of system.web.UI.page class

Is postback is read only property of system.web.UI.page class

which is the following sentence is true

Is postback is read only property of system.web.UI.page class

Which of the following properties does the Type class have?

IsCLass va IsPublic va IsCOMObject

Which of the following properties does the Type class have?

IsCLass, IsCOMObject ,IsPublic

Which of the following languages can be used to write server side scripting in ASP.NET

Both A and C (C# va Visual Basic)

# Which of the following properties does the Type class have?

IsCLassIsPublicIsCOMObject

The ____property of the Form control is used to determine whether there are any MDI child forms open in your MDI application.

IsMdiChild

It is possible to check whether an .aspx page is posted back to the server with the help of the ... property of the page.

IsPostBack

What mode is VS.NET allow you create a portable exe(EXE) file?

Both Debug Mode and Release Mode

36. Select the caching type supported by ASP.NetSkill/Topic: Intermediate

Both a & b

What statement in the followings is correct I. The instance properties and methods are those, which are common to all the instances of the class. II. The shared properties and methods are those, which are specific to a particular instance.

Both of I and II statements are correct

What statement in the followings is correct The instance properties and methods are those, which are common to all the instances of the class.

Both of I and II statements are correct

# Statement I: The sealed modifiers are not permitted in an enum

Both the statements are true

Statement I: The sealed modifiers are not permitted in an enum declaration. Statement II: Delegate types are implicitly sealed

Both the statements are true.

public delegate bool DelegateName(param1,param2) Statement I: When the compiler compiles the statement above, it internally generates a new class type. Statement II: When compiler compiles the statement above, it internally generates DelegateName class.

Both the statements are true.

29. Which of the following is true

IsPostBack is a readonly property of System.Web.UI.Page class

29. Which of the following is true ?Skill/Topic: Beginner

IsPostBack is a readonly property of System.Web.UI.Page class

What does the "EnableViewState" property do

It allows the page to save the users input on a form across postbacks

# What does the "EnableViewState" property do?

It allows the page to save the users input on a form across postbacks.

What does the "EnableViewState" property do?

It allows the page to save the users input on a form across postbacks.

A thread object will change to "Blocked" state, when ...

It issues an I/O request

# Which of the following must be true for the object thrown by a throw statement

It must be assignable to the Exception type.

Which of the following must be true for the object thrown by a throw statement

It must be assignable to the Exception type.

# When is the garbage collector invoked?

It s invoked when the stack does not have sufficient memory to allocate a requested object

When is the garbage collector invoked?

It s invoked when the stack does not have sufficient memory to allocate a requested object

for(i=0,,j=0; ++i,j+=i; i<10,++i;) k+=i*j+j*j;

It uses more than one loop index.

54. What does Response.End will do?Skill/Topic: Intermediate

It will stop the server process

What does Response.End will do?

It will stop the server process

What does Response.End will do?Skill/Topic: Intermediate

It will stop the server process

# in simple terms is nothing but conversion of a value type into a reference type.

Boxing

__________in simple terms is nothing but conversion of a value type into a reference type

Boxing

in simple terms is nothing but conversion of a value type into a reference type.

Boxing

# what is boxing?

Boxing is conversion form an object to a value type.

what is boxing

Boxing is conversion form an object to a value type.

# Which sentence about BufferedStream is correct

BufferedStream Provides temporary storage for a stream of bytes that may be committed to storage at a later time

Which sentence about BufferedStream is correct?

BufferedStream provides temporary storage for a stream of bytes that may be committed to storage at a later time.

Which of the following types are of control?

Button,Textbox

# Which of the following types are of control?

ButtonTextbox

How can we create the object dynamically in C#?

By using the System.Activator .CreateInstance()

85. What is the out put of Following codeString a="Hello";String b="World"String c= a+bResponse.Write ( "C ");Skill/Topic: Advanced

C

C# is considered as a modern replacement for the language/s like (Choose all that apply)

C

What is the out put of Following codeString a="Hello";String b="World"String c= a+bResponse.Write ( "C ");Skill/Topic: Advanced

C

62. Which method do you invoke on the DataAdapter control to load your generated dataset

Fill

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

Fill ( )

12. Which method do you invoke on the Data Adapter control to load your generated datasetSkill/Topic: Beginner

Fill ( )

Which method do you invoke on the Data Adapter control to load your generated datasetSkill/Topic: Beginner

Fill ( )

Which of the following are true with respect to delegates? //MSDN

For static methods, a callable entity consists of just a method. va Delegate types are implicitly sealed va It is not permissible to derive any type from a delegate type.

Which sentence about foreground threads is correct?

Foreground threads have the ability to prevent the current application from terminating.

# Which of the following type is different from the others?

Form

Which of the following type is different from the others?

Form

___is the easiest way to allow the user to interact with the application.

Form

is the easiest way to allow the user to interact with the application

Form

What of the followings are data validation mode in WinForms?(Choose all correct answers)

Form-Level,Control-Level ,Field-Level

What is method of form to transmit the form data back to web server for processing? (Choose 2)

Get

89. What is the Server.MachineName doesSkill/Topic: Advanced

Gets the Server's Machine Name

# What is the type of processing model in Web applications?

Liner

The ____ property of the LinkLabel control is used to specity the text, which has to be displayed

LinkArea

the ___ property of the Linklable control is used to specify the text, which has to be display as a link

LinkArea

The types of list box supported in Winforms are(Choose all correct answers)

ListBox

What control support us to display the list items in different types as text only, text with small icons, text with large icons and report views?

ListView

# What is the first event is raised when the form has been allocated on the managed heap?

Load

The ____ event of the Form control is used to perform tasks such as allocating resources used by the form

Load

What is the first event is raised when the form has been allocated on the managed heap

Load

# What are responsibilities of CLR?

Loading the type into memory and compiling CIL into platform-specific instruction.

What are responsibilities of CLR?

Loading the type into memory and compiling CIL into platform-specific instruction.

A command builder is only able to autogenerate SQL commands for use by a data adapter, if

Longest answer

# Compile error at line: Animal a = new Mammal();

Mammal

What is output of the following code? ...using System: interface Animal

Mammal

What is output of the following code? using System: interface Animal { void DisplayO; } class Mammal: Animal { public void DisplayO { Console.WriteLine("Mammal"); } } class Program { static void MainO { Animal a = new Mammal(); a.DisplayO: } }

Mammal

class Mammal : Animal

Mammal

# The .NET platform is built on the following features of the Windows 2000 server family

Manageability ReliabilitySecurity

# The term used to describe the code targeting the .NET runtime is

Managed code

C# code can be classified into types:

Managed code , Unmanaged code

# C# code can be classified into types

Managed code Unmanaged code

What is the role of the CLR (Select all that apply)

Manages memory va Compile once and run on any CPU & OS that supports the runtime.

# How many interfaces a class can implement?

Many

# A class can have....

Many contructor and only one destructor

# How many namespaces can be included in an assembly?

Many.

# Whats the significance of Request.MapPath( )

Maps the specified virtual path to a physical path

86. Whats the significance of Request.MapPath( )Skill/Topic: Advanced

Maps the specified virtual path to a physical path

Whats the significance of Request.MapPath( )Skill/Topic: Advanced

Maps the specified virtual path to a physical path

# Which is internal access modifier?

Marks a member as accessible limited to the current assembly, but not outside the assembly.

What is protected access modifier?

Marks a member as accessible only by the class or any derived classes.

The ____feature of Windows Installer provider a standard method for distributing components and ensures that the installed component is of the correct version.

Merge Modules

Which property of the Exception class specifiles textual information that indicates the reason for the error and provides possible resolutions?

Message

what is the most important component of ASP.NET AJAX Client Framework?

Microsoft Ajax library

# The Web page opens without error, but no customer names are displayed. What is the problem?

Miss calling the DataBind() method of the page.

Assume that a method named DataLoad is defined to makes a list of suppliers available by returning an ICollection interface. A Web page has a ListBox control named

Miss calling the DataBind() method of the page.

What are the types of Dialog boxes

Modeless , Modal

What are the types of Dialog boxes?(choose all correct answers)

Modeless,Modal

# An assembly can consist of one or more files. Code files are called:

Modules

# Which type of the System. Threading namespace can be used to resolve the issue of concurrency?

Monitor

Which type of the System. Threading namespace can be used to resolve the issue of concurrency?

Monitor

Assuming that I have several clients who would like to receive notification when a particular event occurs. Putting all of them in a ______ type of delegate can help call all the clients when a particular event occurs.

Multi Cast delegate.

# The unique feature of .NET is the ___________support that it provides

Multi-language

The unique feature of .NET is the ___________support that it provides

Multi-language

# Which sentence about multifile assemblies is correct?

Multifile assemblies are composed of numerous .NET binaries.

What is name of this web service

My Webservice

What is name of this web service? [WebService(Namespace = "http://tempuri.org/",

My Webservice

# What is a third-party data provider?

MySQL

What is a third-party data provider

MySQL

NET Framework has two main components, are

NET Framework &Common Language Runtime.

# .NET Framework has two main components, are

NET Framework class library , Common Language Runtime

.NET Framework has two main components, are

NET Framework class library , Common Language Runtime

# NET Framework has two main components, are

NET Framework class libraryCommon Language Runtime

# Microsoft .Net was formerly known as ___

NGWS (Next Generation Windows Services)

Microsoft .Net was formerly known as __________

NGWS (Next Generation Windows Services)

Microsoft .Net was formerly known as _

NGWS (Next Generation Windows Services).

Which information is included in a connection string

Name of machine, name of the database on that machine, required

# Which information is included in a connection string?

Name of machine, name of the database on that machine, required security settings and other data provider-specific information.

System.Windows.Forms is an important____of the class libraries in .NET framework?

Namespace

# Classes in the Base Class Library are categorized into ______ based on their functionality.

Namespaces

Classes in the Base Class Library are categorized into ______ based on their functionality.

Namespaces

# .Net assemblies export methods to facilitate communication with the Com runtime

Net assemblies take the same file extension as Com Servers

# The ___ keyword is in charge of calculating the correct number of bytes for the specified object and acquiring sufficient memory from the managed heap.

New

# A C# class can be inherited from multi other classes

No

# By default can we delete a folder that contains subdirectories and files?

No

# Can a dll run as stand alone application ?

No

# Can namespace be resided into many assemblies

No

# Is it possible edit data in a repeater control

No

# We CANNOT use methods that have some arguments for a delegate?

No

1. A C# class can be inherited from multi other classes?

No

18. Can a dll run as stand alone application ?Skill/Topic: Beginner

No

77. Is it possible edit data in a repeater controlSkill/Topic: Advanced

No

78. Is it possible edit data in a repeater controlSkill

No

A C# class can be inherited from multi interfaces?

No

By default can we delete a folder that contains subdirectories and files?

No

Can a dll run as stand alone application ?Skill/Topic: Beginner

No

Do we have to set value for a variable before using?

No

Is it possible edit data in a repeater controlSkill/Topic: Advanced

No

We CANNOT use methods that have some arguments for a delegate?

No

# Which parameter modifier marks a parameter as passed by value?

None

Which parameter modifier marks a parameter as passed by value

None

ADO.NET provides features for accessing traditional databases like SQL Server as well as databases, which are accessed using ____.(choose all correct answers)

ODBC

Name the .NET data providers which are available is VS.NET?(Choose all correct answers)

ODBC.NET ,OLEDB.NET ,Oracle.NET

ADO.Net.Provider features for accessing traditional database like SQL Server as well as databases , which are accessed using ___

OLEDB + XML

# C# provides an Unified Type System, which means that all data types are derived from __________ class.

Object

# The _______class is the ultimate base class for all data types

Object

C# provides an Unified Type System, which means that all data types are derived from __________ class.

Object

The _______class is the ultimate base class for all data types.

Object

# Which utility allows you to investigate the set of referenced assemblies within your current project?

Object Browser Utility

What is utility shows all of the types in your current project from an object-oriented perspective?

Object Browser.

To get values of the columns of the i-th row in a DataTable object named datatable. what of the followings is correct?

Object Q array = datatable.Rows[i].ltemArray;

# To get values of the columns of the i-th row in a DataTable object named datatable. what of the followings is correct?

Object [] array = datatable.Rows[i].ltemArray;

"Object" that is used to create an object?

Object(){}

Which of the following methods can act as a constructor for the class "Object" that is used to create an object?

Object(){}

Which of the following statements best illustrates the use of the Reflection API.

Obtains Class and Type Information from an Assembly

When a Data Form is created using the Data Form Wizard, which of the following classes are used by default?(Choose all correct answers)

OleDbDataReader,OleDbConnection,OleDbCommand

You need to get access to an Microsoft Excel 2003 file. Which data adapter would you see?

OleDdDataAdapter

13. How many configuration files can an ASP.NET projects have?Skill/Topic: Beginner

One

How many configuration files can an ASP.NET projects have?Skill/Topic: Beginner

One

33. what is the difference between user control and custom controlSkill/Topic: Intermediate

One Custom Control can be use in different project but not the same with User control

what is the difference between user control and custom controlSkill/Topic: Intermediate

One Custom Control can be use in different project but not the same with User control

# which sentence about the C# class types is correct?

C# classes can define some contructor

# Which sentence is correct about C# language?

C# language dose not full support for interface-based programming techniques

which sentence is correct about C# language?

C# language dose not full support for interface-based programming techniques

.NET-Aware Programming Languages are:

C#,VB.NET,Managed Extensions for C++.

# .NET-Aware Programming Languages are:

C#VB.NETManaged Extensions for C++.

# C# is considered as a modern replacement for the language/s like

C++ C

9. Which information is included in a connection string?

C. Name of machine, name of the database on that machine, required security settings and other data provider-specific information.

5. Which parameter modifier marks a parameter as passed by value?

C. None

# The primary role of the _____ is to locate, load, and manage .NET types on your behalf.

CLR

# Under which of the following environments does your programs execution code run?

CLR

Under which of the following environments does your programs execution code run?

CLR

# What is CLR?

CLR is a set of rules provided to ensure that products of compilers will work properly in .Net environment.

what is CLR?

CLR is a set of rules provided to ensure that products of compilers will work properly in .net

# CLR does not compile the associated CIL into platform-specific instructions.

CLR is the entity in charge of resolving the location of an assembly.

# Building Blocks of the .NET Platform includes:

CLR,CTS,CLS

# ____is the collection of the rules and constraints that every language (that seeks to achieve .NET compatibility) must follow

CLS.

# Which building block is a formal specification that describes how types must be defined in order to be hosted by CLR?

CTS

# What is CTS?

CTS is a formal specification that documents how types must be defined in order to be hosted by the CLR

Select the service, which allows users to maintain their schedules thus facilitating timely and manageable interactions with other users.

Calendar

# Core Microsoft .NET building block services

Calendar Dynamic delivery Notification

Core Microsoft .NET building block services

Calendar,Dynamic delivery ,Notification

# A delegate instance encapsulates one or more methods, each of which is referred to as a

Callable entity

A delegate instance encapsulates one or more methods, each of which is referred to as a _________

Callable entity //MSDN

# What is the default session out time

Can not be done

40. How do you trace the application_End event on runtime?Skill/Topic: Intermediate

Can not be done

How do you trace the application_End event on runtime?Skill/Topic: Intermediate

Can not be done

# What is component is used to fetch the values from the data source to DataSet and also update the data source with data in the DataSet?

DataAdapter

What is component is used to fetch the values from the data source to DataSet and also update the data source with data in the DataSet?

DataAdapter

the___component is used to fetch the values from the data source to the DataSet and also to update the data source with the DataSet data

DataAdapter

# What object would you set the properties on to create a primary key for a DataTable?

DataColumn

What object would you set the properties on to create a primary key for a DataTable?

DataColumn

# Presents a logical view of our work using an Explorer-like view of the classes, methods and properties.

Class View

Presents a logical view of our work using an Explorer-like view of the classes, methods and properties

Class View

65. Which objects is used to create foreign key between tables?Skill/Topic: Advanced

DataRelation

Which objects is used to create foreign key between tables?Skill/Topic: Advanced

DataRelation

# what object is used to get data from a Data table object?

DataRow

To get values of the colums of the i-th row in a DataTable object named datatable, what of the followings is correct?

DataRow array = datatable. Rows[i].ItemArray;

... are used to retrieve values in the DataTable

DataRow objects

... is an object in which the data retrieved from the database can be stored.

DataSet

The____property of a DataGrid control, allow filling various kinds of data in a DataGrid including data from a DataSet, DataViewManager, Arrays, Lists etc.

DataSource

# Which class is used to insert, remove, evaluate and manipulate the values in a table of one DataSet?

DataTable

Assume you wish show data of Customers table in a DataGridView control. What is the most suitable object to set to the DataSource property?

DataTable

Which class is used to insert, remove, evaluate and manipulate the values in a table of one DataSet

DataTable

# What are the three main objects when working with a DataSet?

DataTable, DataColumn, and DataRelation

What are the three main objects when working with a DataSet?

DataTable, DataColumn, and DataRelation

# The syntax for declaring array is:

DataType[] arrayname;

The syntax for declaring array is:

DataType[] arrayname;

# In Visual Studio .NET 2008, ____ utility presents a logical view of our work using an Explorer-like view of the classes, methods and properties.

Class View.

# ______are the collection of reusable classes or types

Class libraries

# are the collection of reusable classes or types

Class libraries

______are the collection of reusable classes or types

Class libraries

____are the collection of reusable classes or types

Class libraries

are the collection of reusable classes or types

Class libraries

_are the collection of reusable classes or types

Class libraries.

55. Which control supports paging

Datagrid

55. Which control supports pagingSkill/Topic: Intermediate

Datagrid

Which control supports paging ?

Datagrid

Which control supports pagingSkill/Topic: Intermediate

Datagrid

# Which of the following is a valid variable in C#?

Class_Class@class

What mode is VS.NET allow you to step through each line of code and trace the execution of your application?

Debug Mode

To preserve screen space on the monitor, VS.NET provides us with (Choose all answers)

Command Window,Solution Explorer Window,Auto-Hide Window,Properties Window

# Select the core .NET Enterprise Servers

Commerce Server 2000 Exchange 2000 Server

Select the core .NET Enterprise Servers

Commerce Server 2000,Exchange 2000 Server

Building Blocks of the .NET Platform includes:

Common Language ,Common Type, (CLS).

# The Following are the minimum requirement to run Asp.net

Common Language Runtime

2. The Following are the minimum requirement to run Asp.net

Common Language Runtime

The Following are the minimum requirement to run Asp.net

Common Language Runtime

........................is a set of rules that describe in vivid detail the minimal and complete set of features a given .NET-aware compiler must support to produce code that can be hosted by the CLR.

Common Language Specification

84. What is the out put of the following codebyte a=200;byte b=100;byte c=a+b;Response.Write ( C );Skill/Topic: Advanced

Compile Time error

What is the out put of the following codebyte a=200;byte b=100;byte c=a+b;Response.Write ( C );Skill/Topic: Advanced

Compile Time error

# Nguyen Van A

Compile error

# No errors, but there are some warnings

Compile error

# You entered an invalid value

Compile error

System.Console.WriteLine("Hello {0}". yourName):

Compile error

System.Console.WriteLine("Number 1 is 1");

Compile error

What is output of this code? interface Class1 { public void SayHello(string yourName); } class Class2:Class1 public override void SayHello(string yourName);

Compile error

What is output of this code? interface Classl { public void SayHello(string yourName); } class Class2: Classl { public override void SayHello(string yourName) { System.Console.WriteLine("Hello {0}". yourName): } } class Program { static void Main(stringQ args) { Class2 obj = new Class2(); obj.SayHello('Visual C#"); } }

Compile error

What is output of this code? static void MainO { intnumberl = 1; switch (number"!) { case 1: System.Console.WriteLine("Number 1 is 1"); case 2: System.Console.WriteLine("Number 1 is 2"); break; default break; } }

Compile error

What is output of this code? static void Main{ intnumberl = 1; switch (number"!) { case 1: System.Console.WriteLine("Number 1 is 1"); case 2: System.Console.WriteLine("Number 1 is 2"); break; default break; } }

Compile error

What is output of this code?...System.Console.WriteLine("Hello {0}". yourName):

Compile error

# What is the role of the CLR

Compile once and run on any CPU & OS that supports the runtime.

What is the role of the CLR (Select all that apply)

Compile once and run on any CPU & OS that supports the runtime.

# Connection object is used to obtain information from a data source.

Connection object is used to establish a session with the data source.

# Which sentence about Connection object is correct?

Connection object is used to establish a session with the data source.

Which sentence about Connection object is correct?

Connection object is used to establish a session with the data source.

What are the main objects that make up a DataAdapter?

Connection,Command

# What are the main objects that make up a DataAdapter?

ConnectionCommand

____property of a connection object is used to get or set the string used to open a database

ConnectionString

property of a connection object is used to get or set the string used to open a database

ConnectionString

_property of a connection object is used to get or set the string used to open a database

ConnectionString.

Unboxing is

Convert an object to a value type

# Which category of System.Windows.Forms namespace contains types that facilitate interoperability with legacy ActiveX controls?

Cor infrastructure.

# User and Custom controls are displayed correctly in the Visual Studio .NET Designer.

Custom controls are displayed correctly in VS.Net Designer

17. Which of the following is true

Custom controls are displayed correctly in VS.Net Designer

17. Which of the following is true ?Skill/Topic: Beginner

Custom controls are displayed correctly in VS.Net Designer

Which of the following is true ?

Custom controls are displayed correctly in VS.Net Designer

Which of the following is true ?Skill/Topic: Beginner

Custom controls are displayed correctly in VS.Net Designer

7. Which class is used to insert, remove, evaluate and manipulate the values in a table of one DataSet?

D. DataTable

10. What is result of the following SQL command?

D. Return records that have StudentNo, LastName, FirstName from Students table and ClassName from Classes table.

2. A command builder is only able to autogenerate SQL commands for use by a data adapter, if

D. The SELECT command interacts with only asingle table, the single table has been attributed with a primary key, and the column(s) representing the primary key is accounted for in your SQL statement.

# A namespace is a logical compile-time mechanism.

A namespace is a logical compile-time mechanism.

11. what is boxing?

A. Boxing is conversion form an object to a value type.

11. Which sentence about Connection object is correct?

A. Connection object is used to establish a session with the data source

6. What is a third-party data provider?

A. MySQL

C# class can be inherited from multi other classes?

A. No

# What of the following is correct if we want to set the AChild form as a child form of the parent form named TheParent?

Achild.MdiParent= theParent

What are properties of [WebMethod] attribute?

Description, MessageName and EnableSession.

# What are properties of [WebService] attribute?

Description. Name and Namespace.

What are properties of [WebService] attribute?

Description. Name and Namespace.

66. Which one of the following namespaces contains the definition for IdbConnectionSkill/Topic: Advanced

System.Data

Which one of the following namespaces contains the definition for IdbConnectionSkill/Topic: Advanced

System.Data

# A delegate is a class derived from

System.Delegate

A delegate is a class derived from _________

System.Delegate

GDI + resides in _____ assembly

System.Drawing

GDI + resides in _____ assembly.

System.Drawing

The Pen class belongs to the ____namespace and cannot be inherited

System.Drawing

GDI + resides in _____ assembly.

System.Drawing.

# Which of these namespaces used for FileAccess

System.IO

16. Which of these namespaces used for FileAccessSkill/Topic: Beginner

System.IO

Which of these namespaces used for FileAccessSkill/Topic: Beginner

System.IO

# Which class is at the top of.NET class hierarchy?

System.Object

Which class is at the top of.NET class hierarchy?

System.Object

Which class is at the top of.NET class hierarchy?

System.Object.

The _______________ namespace contains classes useful for synchronization.

System.Thread

# Which delegate of System.Threading namespace points to any methods that take no argument and returns int?

System.Threading namespace does not contain this delegate.

Which delegate of System.Threading namespace points to any methods that take no argument and returns int?

System.Threading namespace does not contain this delegate.

34. The interface used by ASP.Net to create Unique Id's?Skill/Topic: Intermediate

System.UI.Naming.Container

The interface used by ASP.Net to create Unique Id's?Skill/Topic: Intermediate

System.UI.Naming.Container

Which namespace is VS.NET contains classes that help in constructing and sending emails?

System.Web.Mail

# Which namespace allows us to formauthentication ?

System.Web.Security

93. Which namespace allows us to formauthentication ?Skill/Topic: Advanced

System.Web.Security

Which namespace allows us to formauthentication ?Skill/Topic: Advanced

System.Web.Security

# To declare a web service the class must inherit from

System.Web.Service

To declare a web service the class must inherit from

System.Web.Service

To declare a web service the class must inherit from __________

System.Web.Service

46. Session Object classes are defined in which of the following namespace?Skill/Topic:

System.Web.SessionState

Session Object classes are defined in which of the following namespace?Skill/Topic: Intermediate

System.Web.SessionState

# Custom Controls are derived from which of the classes

System.Web.UI.Customcontrols.Webcontrol

20. Custom Controls are derived from which of the classesSkill/Topic: Beginner

System.Web.UI.Customcontrols.Webcontrol

Custom Controls are derived from which of the classesSkill/Topic: Beginner

System.Web.UI.Customcontrols.Webcontrol

56. Where do you store the information about the user localeSkill/Topic: Intermediate

System.Web.UI.Page.Culture

Where do you store the information about the user localeSkill/Topic: Intermediate

System.Web.UI.Page.Culture

Which namespace does the class ListView belong to?

System.Windows.Forms

# what namespace does the Web page belong in the .NET Framework class hierarchy

System.web.UI.Page

11. what namespace does the Web page belong in the .NET Framework class

System.web.UI.Page

what namespace does the Web page belong in the .NET Framework class hierarchy?Skill/Topic: Beginner

System.web.UI.Page

# Can the errors be displayed in a pop-up message box?

T

# Does the "EnableViewState" allows the page to save the users input on a form

T

# For testing and development does website have to be hosted under IIS?

T

# It is possible to set Maximum length for a text box through code

T

# The runtime will automatically assign a new session ID for user when he/she logs on to an ASP.NET web application.

T

# When an MDI parent form is closed, the Closing event of all MDI child forms are raised before the MDI parent form's Closing event is raised

T

The .NET platform is built on Internet Protocols such as _______ and _______

TCP /IP ,HTTP

# The .NET platform is built on Internet Protocols such as

TCP /IP HTTP

Which of the following is a legal constructor for the class Test.

Test() { } ,public Test(int a, int b){} , Test(int a, int b){}

public class Q12{ static Test t1 = new Test(1); Test t2 = new Test(2); static Test t3 = new Test(3); public static void Main(){ Q12 Q = new Q12(); } }

Test(1) Test(3) Test(2)

What is the output of the following code?public Test(int i){System.Console.WriteLine("Test(" +i +")");}}public class Q12{static Test t1 = new Test(1);Test t2 = new Test(2);static Test t3 = new Test(3);public static void Main(){Q12 Q = new Q12();}}

Test(1)Test(3)Test(2)

Brushes can be created using one of the following classe(Choose all correct answers)

TextureBrush,SolidBrush,LinearGradientBrush

To help optimize the garbage collection process, each object in the heap is assigned to a specific generation. If an object is marked as Generation 0, it means:

That object is a newly allocated object and has never been marked for collection.

abstract class Class{private abstract void getNumber();}class ClassA:Class{ }What error does the following code generates when compiled?

The abstract member cannotbe private.

What is the base keyword?

The base keyword is used to access members of a base class from within a derived class

# What is the base keyword?

The base keyword is used to access members of a base class from within a derived class.

What is the base keyword?

The base keyword is used to access members of a base class from within a derived class.

Statement I: The new modifier is only permitted on delegates declared within another type Statement II: The new modifier applied on delegate overrides the method for which the delegate is being used. Statement III: The new modifier applied on delegates hides inherited member by the same name.

Only statement II is true.

# Override method and overriden base method don't have the same declared accessibility

Override method and overriden base method have to have the same return type

Class Book { int num1=1; int num2; public static void Main(){ int num3=3; Console.WriteLine(num1+num2+num3r); } }

The code does not compile because static method cannot access nonstatic variables Var1 and var2

Which property of TextBox control in Windows Forms application is used to create password input box?

PasswordChar

_______ service allows users to handle their own rules for handling

Personalization

messages and notifications

Personalization

service allows users to handle their own rules for handling

Personalization

__ service allows users to handle their own rules for handling

Personalization.

_property is used to get or set the shortcut menu associated with the control.

PopUpMenu.

property is used to get or set the shortcut menu associated with the control

Popup Menu

# What is method of form to transmit the form data back to web server for processing?

Post,get

# Which access modifier marks a member as accessible only by the class or any derived classes?

Protected

List the advantages of DCOM

Provides ,Fully,Supports

List the advantages of DCOM (Choose all correct answers)

Provides ,Fully,Supports

List the advantages of DCOM (Choose all correct answers)

Provides Location Transparency(Distributed Architecture) va Fully Language Independent va Supports version compatibility

The ... method of the ... object is used to redirect the user to another page.

Redirect, Response

The...method of the ...object is used to redirect the user to another page.

Redirect, Response

# The information about a class can be found out using ____

Reflection

The information about a class can be found out using ________

Reflection

the...directive is used to consume a created custom control

Register

# Assume you wish to check validation of E-mail data. Which validation control is the most suitable to do it?

RegularExpressionValidator

# Select the validation control used for "PatternMatching"

RegularExpressionValidator

39. Select the validation control used for "PatternMatching"Skill/Topic: Intermediate

RegularExpressionValidator

Assume you wish to check validation of E-mail data. Which validation control is the most suitable to do it?

RegularExpressionValidator

Select the validation control used for "PatternMatching"Skill/Topic: Intermediate

RegularExpressionValidator

The .NET platform is built on the following features of the Windows 2000 server family.(Select all that apply)

Reliability,Security, Manageability

# Which method displays the custom control

Render

94. Which method displays the custom controlSkill/Topic: Advanced

Render

Which method displays the custom controlSkill/Topic: Advanced

Render

# Select the control which does not have any visible interface

Repeater

51. Select the control which does not have any visible interfaceSkill/Topic: Intermediate

Repeater

Select the control which does not have any visible interfaceSkill/Topic: Intermediate

Repeater

The view types supported in Winforms are (choose all correct answers)

Report view

# Client Sertificate is a collection of

Request

96. Client Sertificate is a collection ofSkill/Topic: Advanced

Request

Client Sertificate is a collection ofSkill/Topic: Advanced

Request

# The_control is used when a field must not be left blank

RequiredFieldValidator

# Cookies can be accessed through

Response Request

# Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

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

24. What's the difference between Response.Write() andResponse.Output.Write()?Skill/Topic:

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

What's the difference between Response.Write() and Response.Output.Write()?

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

What's the difference between Response.Write() andResponse.Output.Write()?Skill/Topic: Beginner

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

# What is the difference between Server.Transfer & Response.Redirect

Response.Redirect needs roundtrip, Server.Transfer does not

72. What is the difference between Server.Transfer & Response.RedirectSkill/Topic: Advanced

Response.Redirect needs roundtrip, Server.Transfer does not

What is the difference between Server.Transfer & Response.RedirectSkill/Topic: Advanced

Response.Redirect needs roundtrip, Server.Transfer does not

# C# allows _______ use of native pointers

Restricted

Select Students.StudentNo, Students.LastName

Return records that have StudentNo, LastName, FirstName from Students table and ClassName from Classes table

In ASP.NET application, and ________ variables can be accessed by all the pages in the application.

Session, Application

# in ASP.Net application,.....and..... variables can be accessed by all the pages in the application:

Session,Application

52. How do you explicitly kill a user's session ?Skill/Topic: Intermediate

Session.Abandon

How do you explicitly kill a user's session?

Session.Abandon()

# You need to write data to a database before a user's session times out. Which event should you respond to?

Session_End

You need to write data to a database before a user's session times out. Which event should you respond to?

Session_Start

# Which event handler is fierd when a new user logs on to your application?

Session_Start()

What is result of the following SQL command?Select Students.StudentNo, Students.LastName, Students.FirstName, Classes.ClassNameFrom Students Inner Join Classes On Students.ClassID = Classes.ClassID

Return records that have StudentNo, LastName, FirstName from Students table and ClassName from Classes table

# What is result of the following SQL command?

Return records that have StudentNo, LastName, FirstName from Students table and ClassName from Classes table.

# What is the significance of Server .MapPath

Returns the physical file path that corresponds to virtual specified path

88. What is the significance of Server .MapPathSkill/Topic: Advanced

Returns the physical file path that corresponds to virtual specified path

What is the significance of Server .MapPathSkill/Topic: Advanced

Returns the physical file path that corresponds to virtual specified path

# What is the transport protocol used to call a webservice

SOAP

22. What is the transport protocol used to call a webserviceSkill/Topic: Beginner

SOAP

What is the transport protocol used to call a webserviceSkill/Topic: Beginner

SOAP

Which of the following objects can we use to read data from a Micorosoft SQL Server 2000 database? (choose all correct answers)

SQLDataAdapter,OleDb,ADO

47. Which DLL translate XML to SQL in IISSkill/Topic: Intermediate

SQLISAPI.dll

Which DLL translate XML to SQL in IISSkill/Topic: Intermediate

SQLISAPI.dll

60. The object used by SQL connection to make Security DemandsSkill/Topic: Advanced

SQLPermission

The object used by SQL connection to make Security DemandsSkill/Topic: Advanced

SQLPermission

# How to hide maximize and minimize boxes of a form?

Set controlBox property of this form is false

What is described in "Win32 process " term

Set of resource , necessary memory

What is described in "Win32 process " term? (choose 2)

Set of resource, such as external code libraries and the primary thread | Necessary memory allocations used by a running application

6. What is described in "Win32 process " term? (choose 2)

Set of resource, such as external code libraries and the primary thread, Necessary memory allocations used by a running application

# What is described in "Win32 process " term?

Set of resource,Necessary memory

How do you execute multiple SQL statements using a DataReader?

Set the Command.CommandText property to multiple SQL statements delimited by a semicolon.

# How do you disable client side validation

Set the inherits property to codeb

38. How do you disable client side validation ?Skill/Topic: Intermediate

Set the inherits property to codeb

How do you disable client side validation ?Skill/Topic: Intermediate

Set the inherits property to codeb

in Winfroms, specify method used to specify the next control to be navigated according to the tab order

SetNextControl

namespace Outer.Inner{class Wibble { }}namespace Test{using Outer.Inner;class SpecialWibble: Inner.Wibble { }}Which of the following statements are true about the above code?

The code generates a compile time error the code will compile successfully as the using-namespace-directive does not bring the name Inner itself into scope.

# Which thing is not included in a .NET PE file?

Source code

Which thing is not included in a .NET PE file?

Source code

namespace Space1{ namespace Space2{ class MyClass{ } }} The fully qualified name of class MyClass is :

Space1.Space2.MyClass

# You need to get access to a database that is stored on a server running Microsoft SQL Server 2000. Which data adapter would you use?

SqIDataAdapter

You need to get access to a database that is stored on a server running Microsoft SQL Server 2000. Which data adapter would you use?

SqIDataAdapter

Microsoft SQL Server 2000. Which data adapter would you use?

SqIDataAdapter.

which object is used to automatically generate commands

SqlCommandBuilder

What of the following are correct for creating a connection object to database named MyDB

SqlConnection con = new SqlConnection("Data Source=myserver;

for creating a connection object to database named MyDB

SqlConnection con = new SqlConnection("Data Source=myserver;Integrated Sercurity=SSPI; Initial Catalog=MyDB");

# Which collection in System.Collections.Generic can be described as 'last-infirst-out'?

Stack

# What kind of memory where an object is allocated?

Stack area

What kind of memory where an object is allocated?

Stack area

# You must specify total elements of an ArrayList variable before declaring it.

Stack is a first-in, first-out queue

Statement I: A property can be a static member, whereas an indexer is always an instance member. Statement II: A get accessor of an indexer corresponds to a method with no parameters. Which of the above statements are true?

Statement II is true.

Statement I: Indexers should be used only in situations where the abstraction makes sense. Statement II: Indexers should have both a getter and setter, as arrays are read/write objects.

Statement II is true.

indexer is always an instance member.Statement II: A get accessor of an indexer corresponds to a method with no parameters.Which of the above statements are true?

Statement II is true.

# Console.ReadLine() returns the input as a ___

String

Console.ReadLine() returns the input as a ________

String

Console.ReadLine() returns the input as a __

String.

# Which sentence about strong name is correct?

Strong name includes no more than 128-bit numbers

Which sentence about strong name is correct

Strong name is used to uniquely identify the publisher of a .NET library

Which of the following are value types?

Struct va Union

Which of the following are value types?

Struct, Union

# Which of the following can be defined as generic? (Choose one answer)

Structures Delegates Methods. Classes. Interfaces

# What are access modifiers for variables in C#?

internal, protected internal and protected.

override method

is an instance method declaration includes an override modifier

a delegate object

is create with the new operator

# What is not a characteristic of Web Service

is registered with operating system of client

what is WSDL?

is used to describe information about web service

# validity a page can be checked using the ... propertied

is valid

validity a page can be checked using the ... propertied

is valid

where is a protected class-level variable available?

it is available to any sub-class derived from base class

what are advantage of code-behind page model?

it is possible to have designers working on the markup while programmers author the C# code

what is managed code?

it is the code targeting the .NET runtime

which control is not used to receice information?

lable

in windows form, ___is a command type control

linklable

which control is a kind of value setting controls?

listbox

we can use...and...methods to ensure that application level variables are not update more than one user simultaneously

lock and unlock

The ............... documents each module within the assembly, establishes the version of the assembly, and also documents any external assemblies referenced by the current assembly

manifest

a class can have

many constructor | only one destructor

how many namespaces can be included in an assembly?

many.

An assembly contains ............ that completely describes the format of the contained types as well as the format of external types referenced by this assembly.

metadata

# A constructor is a special type of a _______ in a class.

method

A constructor is a special type of a _______ in a class.

method

Which of the following statements correctly declares a namespace?

namespace Namespacename{ ----- ----}

which sentence abour namespace is correct?

namespace are physical mechanism

# The keyword is in charge of calculating the correct number of bytes for the specified object and acquiring sufficient memory from the managed heap.

new

# The method that overrides a method in the base class must be prefixed with the ____ keyword.

new

The method that overrides a method in the base class must be prefixed with the ____ keyword.

new

# Assume that you create a web service by Visual C# language. Can you somsume this Web service by a client that is written in Java language?

no

# Static constructor has _______ parameter/s.

no

Static constructor has _______ parameter/s.

no

assume that you create a web service by visual C# language. can you consume this web service by a client that is write in java language?

no

Which of the following is a legal loop construction?

nt j=0; for(int k=0;j+k!=10;j++,k++) { Console.WriteLine("j= {0} k={1}",j,k); }

arraylist arr1 = new arraylist();

output of this code is 0

# The code will be executed successfully and will print the content of the Inventory table.

The code has a compile error

# What base class do all web forms inherit from?

page class

Which statement is true about the following code fragment? 1. int j=2,a=1; 2. switch(j){ 3. case 2: Console.WriteLine("Two");break; 4. case 1+a: Console.WriteLine("Two Two"); break; 5. default: Console.WriteLine(j); 6. }

The code is illegal because of expression at line 4.

class Question{delegate void Delegate();static void Foo() {System.Console.WriteLine("Hello");}static void Main() {Delegate d = new Delegate(Foo);Question t=new Question();t.MultiCall(d,3);}void MultiCall(Delegate d, int count) {for (int i = 0; i < count; i++)d();}}What will be the output of above code when compiled/run?

The code will compile successfully and display following lines on the standard output: Hello Hello Hello

# Which of the following sentences are true about Constructors?

The constructor must have the same name as that of the name of its class

Which of the following sentences are true about Constructors?

The constructor must have the same name as that of the name of its class.

Why does the data not display using the following code?

The dataset has not been populated.

Why does the data not display using the following code? studentConnection.OpenO: studentCommand = studentConnection.CreateCommand(); studentCommand.CommandType = CommandType.Text studentCommand.CommandText = "SELECT * FROM Student"; studentAdapter = new SqIDataAdapter (studentCommand): studentSet = new DataSetO; this.txtFirstName.DataBindings.Add ("Text". studentSet "FirstName");

The dataset has not been populated.

Assume that BaseClass is a class. IFacel and IFace2 is interface Which of the following declarations is INVALID/"Line 1*/ class ImplDerivedClass: IFace2. BaseClass. IFacel { } /"Line 27class ImplClass: IFacel. IFace2 { } /"Line 37 class DerivedClass: BaseClass. IFacel { } /•Line 47 class DerivedClass: IFace2. IFacel. BaseClass { }

The lines 1 and 4

# What does the keyword "virtual" declare for a method?

The method can be overridden.

What does the keyword "virtual" declare for a method?

The method can be overridden.

# Can we add a control at runtime?

Yes

# Does .NET Framework support to monitor the modification of a given external file?

Yes

# Does DataTable class support a method that allows obtaining the data reader-like navigation scheme?

Yes

# Does Microsoft supply data provider for Oracle database?

Yes

# Does destructor of a class impact to garbage collection?

Yes

# Server side code is excuted at the server side on IIS in ASP.NET framework, and client side code is executed on the browser.

Yes

# can multiple versions of the name .NET assembly be installed on a single machine?

Yes

44. Does the "EnableViewState" allows the page to save the users input on a formSkill/Topic:

Yes

70. Is it Possible to Serialize HashTable with XMLSerializerSkill/Topic: Advanced

Yes

Can the errors be displayed in a pop-up message box?

Yes

Can we use methods that have some arguments for a delegate?

Yes

Does NET Framework support to monitor the modification of a given external file?

Yes

Does destructor of a class impact to garbage collection

Yes

Does the "EnableViewState" allows the page to save the users input on a form?

Yes

Does the "EnableViewState" allows the page to save the users input on a formSkill/Topic: Intermediate

Yes

For testing and development does website have to be hosted under IIS?

Yes

Is it Possible to Serialize HashTable with XMLSerializerSkill/Topic: Advanced

Yes

Does C# support multi inherritance?(Choose the most correct answer)

Yes, but only for inheritance from many interfaces.

Array X and Y have integer data types. If these arrays are initialized properly, what is wrong with the following statement? for(int var=0;var<0;++var){ if(x[var]>100) break; if(x[var]<0) continue; x[var+1]=x[var]+y[var]; }

There is nothing wrong with the statement.

# can we draw a hexagonal with GDI+?

Yes, by using DrawPolygon method of Graphics object

an we draw a hexagonal with GDI+

Yes, by using DrawPolygon method of Graphics object

can we draw a hexagonal with GDI+

Yes, by using DrawPolygon method of Graphics object

# can we cancel closing a form?

Yes, by using FormClosing event

can we cancel closing a form

Yes, by using FormClosing event

What is wrong with the following for statement? for(i=0;j=0, i<10; ++i,j+=i){ k+=i*j+j*j; }

There should be comma between i=0 and j=0. , There should be a semicolon between j=0 and I<10.

# HTTP is a stateless protocol?

Yes.

an we add a control at runtime?

Yes.

# Which keyword is used when you wish to explicitly reference the fields and members of the current object?

This

# Which member of System.Threading namespace is an enumeration?

ThreadPriority

Which member of System.Threading namespace is an enumeration?

ThreadPriority

by setting the Text property on the form, you will cause the value of the Textproperty to display on which part of the form?

Title bar

79. Why is Global.asax is used for

To implement application & Session level events

79. Why is Global.asax is used for ?Skill/Topic: Advanced

To implement application & Session level events

Why is Global.asax is used for ?

To implement application & Session level events

Why is Global.asax is used for ?Skill/Topic: Advanced

To implement application & Session level events

57. What is the purpose of code behind ?Skill/Topic: Intermediate

To separate HTML Layout and code to different file

What is the purpose of code behind ?

To separate HTML Layout and code to different file

What is the purpose of code behind ?Skill/Topic: Intermediate

To separate HTML Layout and code to different file

# What is one of major reasons to use client-side scripting?

To validate user input (or )To interact with the Document

# Which element that may be contained within a MenuStrip?

ToolStrip TextBox

# In windows Form application , which control is used to display text when the mouse points particular control?

ToolTip

In Windows Form application, which control is used to display text when the mouse points to a particular control?

ToolTip

The ___ control is used to display text when the mouse points to a particular control

ToolTip

The____ control is used to display text when the mouse points to a particular control

ToolTip

Which control is used to display a short, customized help message for individual controls on a form?

ToolTip

String cnnString = @"Data Source=localhost\SQLExpress;Initial Catalog=Northwind;Integrated Security=True"; (Assume that connection string and table name is correct.)

Total rows of Products table

Can we connect to SQL Server Database without using SqIConnection?

Yes. we can connect to SQL Server Database using OleDbConnection

# Can we connect to SQL Server Database without using SqIConnection?

Yes. we can connect to SQL Server Database using OleDbConnection.

# Which of the following server-side methods can be used on the HttpServerUtility to navigate to a different Web page without requiring a round trip to the client?

Transfer

Which of the following server-side methods can be used on the HttpServerUtility to navigate to a different Web page without requiring a round trip to the client?

Transfer

83. Select the output of the statement < form method=post action="test.aspx" > Skill/Topic: Advanced

Transfers all the form data to test.aspx with HTTP headers

Select the output of the statement < form method=post action="test.aspx" > Skill/Topic: Advanced

Transfers all the form data to test.aspx with HTTP headers

# .NET is said to accelerate the next generation of the Internet

True

# Abstract class cannot be directly instantiated but it can be used to

True

# An interface is a pure abstract class.

True

# Data reader represents a read-only, forward-only cursor.

True

# Delegates help to call a method at runtime?

True

# For versioning the private assemblies, the CLR simply loads the newest assemblies found in the application directory.

True

# In C# array elements are automatically assigned default values

True

# In C#, an underscore is allowed as an initial character of a variable

True

# Item stored in ViewState exist for the life of the current page?

True

# Microsoft .NET allows developers to develop applications using different languages, which run on the Unix platform

True

# Properties provide the opportunity to protect a field in a class by reading and writing to it using accessors.

True

# Subscribing an object to an event depends on whether the event exists or not.

True

# The "using" alias directives can be used to pull out and bring into scope one component from a namespace.

True

# The object invokes the default constructor when no parameters were passed to it.

True

# The object that notifies the other objects, about events is known as the publisher.

True

# The public keyword can be ignored for the Main function in C#

True

# There can be more than 1 machine.config file in a system

True

# Using directives are provided to facilitate the use of namespaces.

True

# Value types can be null

True

# a class library that is written by C# can be used in any other .NET programming language

True

-Microsoft Windows Installer is shipped alog with Windows 2000, windows ME

True

.NET is said to accelerate the next generation of the Internet

True

In C#, it is possible to define a type (enum, class, interface, struct, or delegate)directly within the scope of a class or structure.

True

It is possible to set Maximum length for a text box through codeSkill/Topic: Intermediate

True

Item stored in ViewState exist for the life of the current page?

True

Marks a member as accessible limited to the current assembly, but not outside the assembly

True

Microsoft .NET allows developers to develop applications using different languages, which run on the Unix platform

True

Microsoft Windows Installer is shipped alog with Windows 2000, windows ME and Windows XP as an installtion and configuration sevice.

True

Miss calling the DataBind() method of the page.

True

Object graph is a set of related object of serialized object

True

Output of this code is "Nguyen Van A".

True

Properties provide the opportunity to protect a field in a class by reading and writing to it using accessors.

True

Stack is a first-in, first-out queue

True

Strong name is used to uniquely identify the publisher of a .NET library

True

Subscribing an object to an event depends on whether the event exists or not.

True

System built on ADO.NET are intrinsically highly scaleable

True

The "using" alias directives can be used to pull out and bring into scope one component from a namespace.

True

The base keyword is used to access members of a base class from within a derived class.

True

The dataset has not been populated.

True

The object invokes the default constructor when no parameters were passed to it.

True

The object that notifies the other objects, about events is known as the publisher.

True

The public keyword can be ignored for the Main function in C#.

True

The runtime will automatically assign a new session ID for user when he/she logs on to an ASP.NET web application.

True

The term packaging imliesbunding up all the files in the application into a single file called a Distribution Until

True

There can be more than 1 machine.config file in a systemSkill/Topic: Beginner

True

Using directives are provided to facilitate the use of namespaces.

True

Web Controls Supports CSS

True

Web Controls Supports CSSSkill/Topic: Intermediate

True

What will be the output of the code below? class Room{ public bool isEmpty(){ return (true); } } class StaffRoom: Room{ public new bool isEmpty(){ return false; } public static void Main() { Room R1 = new StaffRoom(); System.Console.WriteLine(R1.isEmpty()); } }

True

When an MDI parent form is closed, the Closing event of all MDI child forms are raised before the MDI parent form's Closing event is raised

True

a class library that is written by C# can be used in any other .NET programming language

True

default context is used to group together .NET object

True

The code has a compile error

True string strSQL

A .NET assembly contains the following elements:

Type metadata.,An assembly manifest.,CIL code.

# Method ,fieds ,contructor....are called

Types

what is UDDI?

UDDI is a language is used to describe a xml web service

# What is UDDI?

UDDI is a language used to describe a XML web service

# Which method is fired lastly during the page load?

UnLoad()

Which method is fired lastly during the page load?

UnLoad()

# is all about converting a reference type into a value type

Unboxing

What is term for conversion from an object to a value type?

Unboxing

__________is all about converting a reference type into a value type.

Unboxing

is all about converting a reference type into a value type.

Unboxing

What is unboxing?

Unboxing is conversion from a value type to an object.

Server side code is excuted at the server side on IIS in ASP.NET framework, and client side code is executed on the browser.

Yes

can multiple versions of the name .NET assembly be installed on a single machine

Yes

can we add a control at runtime

Yes

# Which sentence about Session variables is correct?

You cannot change value of a session variable

(line 12), if you want to build an in-house XML

[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1,

# Which is the most suitable statement to fill the missing code (line 12), if you want to build an in-house XML Web service?

[WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1, EmitConformanceClaims = false)]

Which of the following is a valid variable in C#?

_Class va @class va Class

what is WCF?

Unified framework for rapidly building service-oriented application

# When a class is used inside its namespace, the _______ of that class is used.

Unqualified name

When a class is used inside its namespace, the _______ of that class is used.

Unqualified name

# What is state of a thread after creating a Thread object?

Unstarted

What is state of a thread after creating a Thread object?

Unstarted

How to use a checkbox in a data grid(in WebFroms)?

Use DataBound Fields

How do we create a new text file? (choose 2)

Use StreamWriter class. Use CreateText() method of FileInfo class.

# how do we create a control to enter password?

Use TextBox control with Password

how do we create a control to enter password

Use TextBox control with PasswordChar property is set a value

63. How to open more than one datareader at a timeSkill/Topic: Advanced

Use different datareader and connection variable

How to open more than one datareader at a timeSkill/Topic: Advanced

Use different datareader and connection variable

How can we define an overridden base method?

Use virtual keyword.

what is not a characteristic of Web Service?

Uses standard Web protocols to communicate

# Namespaces are defined using _____ statements.

Using

Namespaces are defined using _____ statements.

Using

# How do we Delete, Update, Select data in a Dataset

Using SQLDataAdapter

68. How do we Delete, Update, Select data in a DatasetSkill/Topic: Advanced

Using SQLDataAdapter

How do we Delete, Update, Select data in a DatasetSkill/Topic: Advanced

Using SQLDataAdapter

# VBScript and JavaScript are client-side script codes.

VB right Java wrong

# What is NOT a client-site technology?

VB.NET

# What are client-side script languages?

VBScript and JavaScript

What are client-side script languages?

VBScript and JavaScript

What is output of this code? string s1 ="Visual C# And .NET Technology"; string s2 = s1.Substring(0, s1.IndexOf('#')); System.Console.WriteLine(s2.ToUpper());

VISUAL C

____property is used to get or set the object that contains data about the control.

Value

property is used to get or set the object that contains data about the control.

Value

# You have to set a value for s2 before passing it to Input() function.

Value of s2 will be changed after invoking Input() function.

# In C# datatypes are divided into two fundamental categories

Value types and reference types

In C# datatypes are divided into two fundamental categories

Value types and reference types

# Which of the following are valid identifiers?

_void @void _var

Which of the following are valid identifiers?

_void,@void,_var

_property is used to get or set the object that contains data about the control.

Value.

Which sentence about ViewState is correct?

Values of each GUI widget on the page are stored in a hidden form field.

# which sentence about ASP.Net view state is correct?

View State data is embedded in a hidden field, which will flow between the browser and a specific page

choose 2 correct statements about the ViewState and SessionState

ViewState persist the values of control | SessionState persist the data of particular user

The method____of the Control class conceals the control from the user.

Visible

# Which of the following languages can be used to write server side scripting in ASP.NET?

Visual Basic c#

are the visual effects supported in WinForms

Visual Inheritance Control Anchoring Cotrol Docking Transparent Forms

# Microsoft .NET is primarily made up of the following three components.

Visual Studio .NET va 3rd party .NET services va .NET platform itself

Select correct statements about Integrated Development Environments (IDEs):

Visual Studio 2005...Designers,Visual C# 2005 Express

1. Which of the following languages can be used to write server side scripting in ASP.NET?

Visual basic or c#

Microsoft .NET is primarily made up of the following three components.

Visual, 3rd party,.NET

____are the visual effects supported in WinForms (Choose all correct answers).

Visual,2Control, Transparent Forms

# Which sentence about WSDL is correct?

WSDL is used to describe information about the web service

Which sentence about WSDL is correct?

WSDL is used to describe information about the web service

# For multiple levels of organizations ___ can be used.

a nested namespaces

For multiple levels of organizations ___ can be used.

a nested namespaces

# who can access to sections state variables

a single session

who can access to sections state variables?

a single session

choose correct statements about user controls

a user control has an interface that can be completely edit | a user control is a server-side component that is shipped

in winforms, which property of textbox control is used to create password input box?

passwordChar

# Methods can be overloaded in C# by___

pecifying different numbers of parameters

what 4-methods are fired during the page load?

preRender(), Load(), Init(), unload()

# A __ can be thought as a mould of a class.

abstract class

A __ can be thought as a mould of a class.

abstract class

# how do you register a user control

add Src , tag prefix tag name

how do you register a user control

add Src, tag prefix tag name

# Once every day at 13.00.

When the application is low on memory

# When will the garbage collector run?

When the application is low on memory

When will the garbage collector run?

When the application is low on memory

# Why do we use Thread pool?

When using Thread pool, we can focus on our business problem rather than the application's threading infrastructure, The Thread pool manages thread efficiently by minimizing the number of threads that must be created, started and stopped

9. Why do we use Thread pool? (choose 2)

When using Thread pool, we can focus on our business problem rather than the application's threading infrastructure, The Thread pool manages thread efficiently by minimizing the number of threads that must be created, started and stopped

Why do we use Thread pool? (choose 2)

When using Thread pool, we can focus on our business problem rather than the application's threading infrastructure. va The Thread pool manages thread efficiently by minimizing the number of threads that must be created, started and stopped

Why do we use Thread pool?

When using thread pool, The Thread pool manages thread

# when the user control's code is executed

after the web form loads

when the user control's code is executed?

after the web form loads

what is not a component of ASp.net ajax sever framework?

ajax-enable asp.net pages

# how do you manage state in ASP.Net Application

all of above

# to add a custom control to web form, we have to register with

all of above

# what data types do a range validator supports

all of above

how do you manage state in ASP.Net Application

all of above

to add a custom control to web form, we have to register with

all of above

what data types do a range validator supports?

all of above

# which of the forllowing is(are )major benefit(s) of leveraging the thread pool?

all of the others

# Which sentence about components is correct?

an example of components is OpenFileDialog

which sentence about components is correct?

an example of components is openFileDialog

which property of control type is used to define a relative fixed position in which the control should always be rendered?

anchor.

# what is default authentication mode for us

anonymous

what is default authentication mode for us?

anonymous

Variable can be accessed by all the pages in the application (choose 2 answer)

application, session

# Variable can be accessed by all the pages in the application

applicationsession

list<int> array1 = new list<int>()

array1

# Which of following extension does a Web service file will have?

asmx

Which of following extension does a Web service file will have?

asmx

which of the following extension dose a web service file will have?

aspx

1. Which sentence is correct?

b. Shared assemblies are libraries intended to be consumed by numerous application on a single machine.

11. What is SoapFormatter?

b. SoapFormatter is a serialization formatter that represents graph as a SOAP message

7. how do we create a control to enter password?

b. Use TextBox control with PasswordChar property is set a value

1. can we draw a hexagonal with GDI+?

b. Yes, by using DrawPolygon method of Graphics object

public class T { public static void Main() { int i; float g; SubClass b = new SubClass( ); <<< call >>> } }

b.m2();

# What is term for conversion from a value type to an object?

boxing

# What statement is used to completely abort the execution of a loop?

break

What statement is used to completely abort the execution of a loop?

break

which sentence about bufferedStream is correct

bufferedstream provides temporary storage for a stream of bytes that may be committed to storage at a late time

# which class encapsulates the runtime operation of a windows form application?

button,form

# Select a correct statement about reference type

by default variable of reference type are passed by reference

the variable of which type is not signed number?

byte

4. can we cancel closing a form

c. Yes, by using FormClosing event

4. can we cancel closing a form?

c. Yes, by using FormClosing event

10. which sentence about default context is correct?

c. default context is used to group together .NET objects that have no specific or unique contextual needs.

which property of the form type sets the button on the form that is clicked then user press the esc key?

cancelbutton

which sentence is incorrect?

cannot convert implicitly from integer type to decimal type

# Non-case-sensitive

case- sensitive

using System; class Program Console.WriteLine("catch"); Console.WriteLine("finally");

catch finally

int n2 = 0;

catch | finally

Which of the following associations of try, catch and finally is INVALID?

catch{}finally{}

# Object graph have to map to classic OO relationships

chinh no

# Panel controls are used to group related controls in a logical unit

chinh no

# Shared assemblies are libraries intended to be consumed by numerous application on a single machine.

chinh no

# an HTML form is a named group of related UI elements used to gather user input

chinh no

# Which of the following is a valid statement to implement class B in the class A

class A:B

Which of the following is a valid statement to implement class B in the class A.

class A:B

# Which of the following is a correct statement to declare the class "MyClass"?

class MyClass

Which of the following is a correct statement to declare the class "MyClass"?

class MyClass

Which of the following will execute without errors at compile time.

class Object{ static void Main(){} }

# Which of the following are value types?

class Object{static void Main(){}}

which sentence about cookie is correct?

cookie is often realized as a text file on user's.

# which of following field is not valid state management tool?

cookies

which of following field is not valid state management tool?

cookies

which category of system.windows.forms namespace contains types that facilitate interoperability with legacy activex controls?

cor infrastructure.

# Which tool provides dozens of options that allow you to debug your assembly?

cordbg.exe

Which tool provides dozens of options that allow you to debug your assembly?

cordbg.exe

Identify the correct syntax for creating an executable file.

csc /out:< executable name >/target:exe<filename1 filename2..>

The syntax to create an assembly file is:

csc /out:<assembly name>/target:library <filename1 filename2..>

The manifest contains data that ___

csc /out:myAssembly.dll /target:library file1.cs file2.cs

Which of the following commands can be used to create assembly named "myAssembly" from the files "file1.cs and file2.cs"?

csc /out:myAssembly.dll /target:library file1.cs file2.cs

6. Which event of form handles pressing a key?

d. KeyDown

3. Which sentence about strong name is correct?

d. Strong name is used to uniquely identify the publisher of a .NET library.

# property is used to get or set the data source that the GridView is displaying data for.

dataSource

___ property is used to get or set the data source that the gridview is displaying data for

datasource

property is used to get or set the data source that the gridview is displaying data for.

datasource

what is the correct way of creating a data table in a dataset?

datatable dtOrder = new datatable("order");

class Class1 { internal string field1; } Class Program { Class1 obj1 = new Class1();

defabc

# The constructor without parameters is called

default constructor

The constructor without parameters is called _________.

default constructor

which sentence about default context is correct

default context is used to group together .NET objects that have no specific or unique contextual needs

# Which sentence about default context is correct?

default context is used to group together .NET objects that have no specific or unique contextual needs.

How do we implement encapsulation

define a contructor

# Look at the following statements:

define only a single static contructorA static constructor executes

public static int Method42(int i)

delegate int Class1.Method42(int i);

you need to define a delegate for the following method

delegate int Met42(int i)

# You need to define a delegate for the following method:

delegate int Met42(int i);

You need to define a delegate for the following method: public class Classl { public static int Method42(int i) { return i*42; } }

delegate int Met42(int i);

You need to define a delegate for the following method:....return i*42;

delegate int Met42(inti);

# Which declaration of delegate is correct?

delegate string GetString(out bool a);

The manifest contains data that ___

describes the other assemblies on which ,describes how the elements in assembly

what are properties of(webservice) attribute?

description and namespace

~human()

destructor of student class | destructor of human class

# Which sentences about private assemblies is correct?

dll files

which sentences about private assemblies is correct?

dll files

which property of control type is used to get a widget should be attached to which side (or side) of a form

dock

you want to write the content of a dataset, dsetl, to a file Scores.xml

dsetl.writexml(@"D:\Scores.xml");dataset dset2 = new dataset(); dset2.readxml(@"D:\Scores.xml"); response.write(dset2.getxml());

Clients can attach executable code for events by supplying ____________

event sub

# Clients can attach executable code for events by supplying

event subscribers

# select the type processing model that ASP.NET simulate

event-driven

select the type processing model that ASP.NET simulate?

event-driven

which of the following information is not included in a strong name of a .net assembly?

external assemblies of the assembly.

# DataSet object is one of the components of the data provider.

f

# A C# program can have only one using directive

false

# Sql server 7.0 dataclass cannot be accessed using .NET Framework Data Provider for SQL server

false

# a given application domain can have only thread executing with it at any given time

false

ADO.NET provides a single set of types that communicate

false

An assembly cannot be used in more than one application at a time.

false

a given application domain can have only thread executing with it at any given time

false

thread is executed when we create a new instance of a thread object

false

winform is a class library that enable developers build web application

false

what is default value of autoPostback property?

fasle

in Windows, specify the method to place the focus on the control

focus

# statement is used to iterate through the collection to get the information that you want

foreach

.................statement is used to iterate through the collection to get the information that you want

foreach

# what is default mode of ASP.NET authentication

forms (anoymous)

what are not sever control

html control

when an .aspx page is requested from the web server, the output will be rendered to browser in following format?

html.

for(int i=0;i<2;i++){ for(int j=0;j<3;j++){ if(i==j) continue; } Console.WriteLine("i={0} j={1}",i,j); } Which lines would be the part of output?

i=0 j=1 , i=0 j=2,i=1 j=0

# C# Parameter Modifiers include:

in ref param

# The global assemblies are saved in the

in the <drive>:\WINNT\Assembly folder.

The global assemblies are saved in the _________

in the <drive>:\WINNT\Assembly folder.

C# Parameter Modifiers include:

in,ref,param

what tags do you need to add within the asp:datagrid tags to bind colimns manually?

inside tag in asp:Datagrid we set Text attribute to <%#DataBinder.Eval(Container.DataItem, "Col_Name")%>

# Which of the following is the correct syntax for declaring an indexer

protected int this public int this

Which of the following is the correct syntax for declaring an indexer.

protected int this[int var1]

In .NET Remoting, Clients and server objects do not communicate via a direct connection, but rather through the use of an intermediary termed a .............

proxy

# When you create a ___ type, you ensure that type can be accessed from other type in the current assembly as well as extermal assemblies

public

# when you create a __ type,you ensure that the type can be acessed from other types in the current assembly as well as external

public

Assume that you wish to build a delegate that can point to any method that returns a bool value and takes a string as input parameter. What is correct syntax to declare this delegate?

public delegate boolMethodl(string si) ;

Which of the following is a correct event that is based on the delegate named " MyDelegate"

public event MyDelegate MyEvent;

# What can be signature of an application's entry point?

public static void Main() { }

What can be signature of an application's entry point?

public static void Main() { }

# Which of the following is a valid method declaration?

public virtual void Display(){}

Which of the following is a valid method declaration?

public virtual void Display(){}

# Return type of indexers is

same as return type of get method of a property

Return type of indexers is

same as return type of get method of a property.

Which keyword prevents your class from being inherited by another class?

sealed

which event is raised when user choose in item in combobox control?

selectedIndexChanged

vbscript and javascript are client-side script codes

sentence 1 is correct, sentence 2 is not correct

# the code will be process don web server when the run at attribute of the Script tag has the following value

server

the code will be process don web server when the run at attribute of the Script tag has the following value

server

what is the kind of asp.net technology?

server-side technology

what is different between server.execute and server.transfer

server.execute returns the execution back to the current page, and sever

# how do you explicitly kill a user's session

session.abandon()

how do you explicitly kill a user's session?

session.abandon()

which event handler is fired when a new user logs on to your application?

session_start()

# The ______ method is used to assign some value to a data member in a class.

set

The ______ method is used to assign some value to a data member in a class.

set

how to disable client side script in validation control?

set EnableClientScript to false

# How do you execute multiple SQL statements using a DataReader?

set the Command.CommandText property to multiple SQL statements delimited by a semicolon.

# Which sentence about shared assemblies is correct?

shared assemblies are deployed to GAC

shared assemblies are libraries reside in the same directory of application making use of them

shared assemblies+ private assemblies

# if an assembly is composed of a single.dll or .exe module ,you have a/an_____

single -file assembly

The programmer has an assembly named pri.dll which other programmer also wants used the same assembly. Which of the following are the correct statements when executed will satisfy the above needs.

sn -k key1.snkcsc /out:pri.dll /target:library file2.cs /a .keyfile:key.snkgautil -I pri.dll

# A key pair is created using the _______utility.

sn.exe

A key pair is created using the _______utility.

sn.exe

# what dose response ,end will do

stop the server process

what dose response,end will do

stop the server process

# The name of an assembly consists of 4 parts:

strong name

# Which sentence about cookie is correct?

text file on user's.

which control is usually used to input text

textbox

which control is usually used to input text?

textbox

If there is a change in the major number or minor number of the version number it indicates that _______

the assembly is incompatible

# If there is a change in the major number or minor number of the version number it indicates that

the assembly is incompatible with previous versions of that assembly.

# The Mask property of Masked textBox specifies or retrieves the characters to be used as a mask.

true

# a single process may contain multiple application domains

true

2008

true

A delegate must define name of the method on which it makes calls

true

A namespace is a logical compile-time mechanism.

true

A web server is a software product in charge of hosting your web applications

true

ASP.NET supports single-file model only.

true

An interface is name collection of semantically related abstract member

true

An object is the implementation of a class

true

An object is the instantiation of a class.

true

Background threads are viewed by the CLR as expendable paths of execution that can be ignored at any point in time

true

Data reader represents a read-only, forward-only cursor

true

Dataset store its data inXML

true

Elements of a List<T> variable cannot have different type

true

Hello world!

true

Link Label is a commands control

true

Microsoft Ajax library consists of a set of javaScript files

true

Override method and overridden base method must have the same return type

true

Panel controls are used to group related controls in a logical unit

true

Shared assemblies are libraries intended to be consumed by numerous application on a single machine

true

The DataAdapter will create 3 data tables in the dataset

true

The instance properties and methods are those, which are common to all the instances of the class

true

The shared properties and methods are those, which are specific to a particular instance

true

Value types can be null

true

When we use the DataSet object, ADO.NET is based on disconnected data access.

true

a persistent cookie exists only within the http header

true

a single process may contain multiple application domains

true

application_start - we can place code to initialize variable once during application start

true

cannot convert implicitly from integer type to decimal type

true

in Asp.Net, "Change" event execute only in next action event by default

true

internetExplorer 6.0 is uplevel browser

true

session_start - we can place code to initilize variables specific to the session

true

string cnnstring = @"data source=local\sqlexpress;initial catalog=northwind;integated security=true

true

the data binding is done incorrectly

true

viewstate allows the state of objects (serializable) to be stores in a hidden field on the page

true

we cannot place multiple select command in the selectcommand property of the dataadapter

true

a single process may contain multiple application domains

true.

What is output of the following code? using System: class Program { static void MainO { try Console.WriteLine("try"); catch Console.WriteLine("catch"); finally Console.WriteLine("finally"); }

try finally

# _____ keyword is used to import the classes of the namespace

using

_____ keyword is used to import the classes of the namespace

using

keyword is used to import the classes of the namespace

using

to use SQL.NET Data Provider what using statement of the following is correct?

using System.Data.SqlClient

For using SQL.NET Data Provider what using statement of the following is correct?

using System.Data.SqlClient;

_______ enables the possibility for a function to be polymorphic when it is overridden in one or more inherited classes.

virtual

enables the possibility for a function to be polymorphic when it is overridden in one or more inherited classes.

virtual

# The myFunction() method in MySubClass cannot have internal access modifier in this case

virtual modifier cannot use for private function

# what is purpose of code behind

what is purpose of code behind

# Which element of a.Net assembly identifies the kind of application?

win32 file header

Does DataTable class support a method that allows obtaining the data reader-like navigation scheme

yes

Does Microsoft supply data provider for Oracle database

yes

Sessions are identified by a unique identifier that can be read bu using the SessionID property?

yes

by default, the session ID values that are used in cookieless session sre recycled?

yes

dose .net framework support to monitor the modification of a given external file?

yes

session variables (httpcontext session) are stored in a sessionstateitemcollection object?

yes

session variables can be any valid .net framework type?

yes

will the finally block get executed if an exception has not occurred?

yes

can we work with server-side code on html controls?

yes, by setting value for "runat" property if html controls is "server"

# Yes, there is an error at line: static void Input(ref string s1)

yes, there is an error at line input ref s2

static void input(ref string s1)

yes, there is an error at line: input(ref s2)

can we enable and disable connection pooling?

yes, we can by setting pooling=true in ADO.NET connection string

# can we work with server side code on HTML controls?

yes,by setting value for "runat" property of HTML control is"server"

# Can we check whether an.aspx page is posted back to the server?

yes,by using Ispostback property of page class

http is a stateless protocol?

yes.

which sentence about session variables is correct?

you cannot change value of a session variable

# Which senten about Application variables is Correct?

you cannot change value of an Application variable

console.writeline(dr.hasrows.tostring())

runtime error

object o1 = n1;

runtime error

sqlconnection cn = new sqlconnection();

runtime error

# What is the correct syntax for comment entries in C#

/*... */

What is the correct syntax for comment entries in C#

/*... */

What is the correct syntax for comment entries in C#

/*... */.

# A null reference exception would be thrown unless myArray[1] is first initialized to a value

0

Console.WriteLine(dtColumns.Count);

0

What is output of the following code? using System: using System.Data: class Program { static void MainO { DataTable dt = new DataTableO; Console.WriteLine(dtColumns.Count); }

0

# what is the size of the session ID

32 bit long string

74. What is the size of the session IDSkill/Topic: Advanced

32 bit long string

What is the size of the session ID ?

32 bit long string

What is the size of the session IDSkill/Topic: Advanced

32 bit long string

what is the size of the session ID

32 bit long string

# What section of the config.Web file is used for storing a list of authorized users?

4

97. What section of the config.Web file is used for storing a list of authorized users?Skill/Topic:

4

What section of the config.Web file is used for storing a list of authorized users?Skill/Topic: Advanced

4

using System; class MyClass { int Var1=1; int Var2; public static void Main(){ int LocalVar=3; MyClass m1=new MyClass(); Console.WriteLine(m1.Var1+m1.Var2+LocalVar); } } The output of above code will be:

4

using System;class Test{public static void Main(){for (int i=0;i<10;++i) {try{try{if(i%3==0) throw new Exception("Exception1");Console.WriteLine(i);}catch (Exception inner){i*=2;if(i%3==0) throw new Exception("Exception2");}finally {++i;}}catch (Exception outer){i+=3;}finally {--i;}}}}

4 va 5

If you ran the following program what lines would be included in its output?int var1,var2;for(var1=0,var2=0;var1+var2<20;++var1,var2+=1){Console.WriteLine(var1+var2);}

8

int var1,var2; for(var1=0,var2=0;var1+var2<20;++var1,var2+=1) { Console.WriteLine(var1+var2);

8

# asp:dropdownlist> tag replaces which of the HTML tags

< Select >

8. asp:dropdownlist> tag replaces which of the HTML tagsSkill/Topic: Beginner

< Select >

<asp:dropdownlist> tag replaces which of the HTML tags

< Select >

asp:dropdownlist> tag replaces which of the HTML tagsSkill/Topic: Beginner

< Select >

1. We have two sentences:

A. (a) incorrect, (b) correct.

7. Which sentence is correct?

A. An interface is name collection of semantically related abstract member.

# custom control created using C# need to be saved using the extension

ASCX

# what is extension of a web user control file?

ASCX

custom control created using C# need to be saved using the extension

ASCX

what is extension of a web user control file?

ASCX

# Performance of single-file model is better than of multi-file model.

ASP.NET supports single-file model only.

# Any class that contain one or more abstract methods must be declared as

Abstract

Any class that contain one or more abstract methods must bedeclared as ____

Abstract

Which property of Form allows to set the button on the Form that is clicked when user press the Enter key?

AcceptButton

Which variables can use by all users and in all pages

Application

Which variables can use by all users and in all pages?

Application

Which of the following options is Server-Side State Management:

Application State,Session State

# Which of the following options is Server-Side State Management:

Application StateSession State

# What are application-level exceptions?

Application-level exceptions are custom exceptions that derive from the System.Exception type.

# How many classes can a single .NET DLL contain?

As much as you want

how many classes can a single .NET DLL contain?

As much as you want

# What is the extension of a web user control file ?

Ascx

27. What is the extension of a web user control file ?Skill/Topic: Beginner

Ascx

75. Which of the following extension does a webservice file will haveSkill/Topic: Advanced

Asmx

The fully qualified name of class Book is:

College.Library.Shelf. Book()

namespace College.Library{namespace Shelf{class Book{ }}}The fully qualified name of class Book is:

College.Library.Shelf.Book()

Name two properties common in every validation control?

Color property ControlToValidate property

What DataTable event would you handle to validate for an acceptable value in a column?

ColumnChanging,RowChanging

# What DataTable event would you handle to validate for an acceptable value in a column?

ColumnChangingRowChanging

# The DataTable structure is defined by its _ and _.

Columns. Constraints

The DataTable structure is defined by its _ and _.

Columns. Constraints

76. What is a strong name?

Combination Of both Public,Private key and digital signature

76. What is a strong name?Skill/Topic: Advanced

Combination Of both Public,Private key and digital signature

What is a strong name?

Combination Of both Public,Private key and digital signature

What is a strong name?Skill/Topic: Advanced

Combination Of both Public,Private key and digital signature

_____ control combines the features of the TextBox and the ListBox controls

ComboBox

____control combines the features of the TextBox and the ListBox controls

ComboBox

control combines the features of the TextBox and the ListBox controls

ComboBox

_control combines the features of the TextBox and the ListBox controls

ComboBox.

# which control is a kind of selection list controls?

Combobox

# Which object provides access to the provider's data reader object?

Command

The ... object allows us to rertrieve & manipulate data in the database.

Command

# What are properties of(Webservice) attrbute?

Description and name,NameSpace

59. Which of the following is not a member of Response Object?Skill/Topic: Advanced

Execute

69. Which of the following is not a member of ConnectionObjectSkill/Topic: Advanced

Execute

Which of the following is not a member of Response Object?Skill/Topic: Advanced

Execute

# When updating an existing record in one table of database, should we use which method of Command objects?

ExecuteNonQuery

# Which method is designed specifically for singleton queries (such as result of aggregate functions)

ExecuteScalar()

Which method is designed specifically for singleton queries (such as result of aggregate functions).

ExecuteScalar()

# What is the lifespan for items stored in ViewState?

Exists for the Life of the current page

81. What is the lifespan for items stored in viewstateSkill/Topic: Advanced

Exists for the Life of the current page

class Test{ static void Main() { A.F(); B.F(); } } class A { static A() //static constructor { Console.WriteLine("Init A"); } public static void F() { Console.WriteLine("A.F"); } } class B { static B() { Console.WriteLine("Init B"); } public static void F() { Console.WriteLine("B.F"); } }

Init A A.F Init B B.F

What are thee steps involved involved in calling one from another form?(choose all answers)

Invoke Show

# it is possible to check whether an ASPX page is posted back to server with the help of the ... property of the page.

Is Post Back

it is possible to check whether an ASPX page is posted back to server with the help of the ... property of the page.

Is Post Back

Which of the following classes is the best choice for the above task?

SoapFormatter.

# What is utility allows you to view the set of all content files and referenced

Solution Explorer

What is utility allows you to view the set of all content files and referenced assemblies?

Solution Explorer

# Which one of the following namespaces contains the definition for IdbConnection

System.Data

the datatable structure is defined by its...and...

columns, constraints

# which windows forms control can be used to get characters from keyboad?

comboBox

# Whisch control combines the features of the textbox and the lisbox controls?

combobox

___ control combines the features of the textbox and the listbox controls

combobox

The ___ object allows us to retrieve & mainpulate data in the database

command

which object provides access to the provider's data reader object?

command

base.display()

compile error

int x = 2009;

compile error

delegate void Display();

compile error at line: display d1 = new display(displayHello)

display d1 = new display(displayHello);

compile error at line: display d1 = new display(displayHello);

interface animal

compile error at line: void display()

# An interface Cannot constain signatures of the following members:

conTructor

# What is syntax for dec

const type identifier;

# What is syntax for declaring a constant?

const type identifier;

# a WCF massage contains

contractservice

# What can be Parameter modifier of a given method

out ,ref and params

select the caching type supported by ASP.NET

output caching,data caching

# select the caching type supported by ASP.NET

output cachingdata caching

5. The best way to delimit ASP.Net code from HTML code in your pages is by using --------------- tags.Skill/Topic: Beginner

< Script >

# The Asp.net server control, which provides an alternative way of displaying text on web page, is

< asp:label >

What is the extension of a web user control file ?Skill/Topic: Beginner

. Ascx

What executable unit gets created when we build an ASP.Net application?Skill/Topic

. DLL

Which of the following extension does a webservice file will haveSkill/Topic: Advanced

.Asmx

ADO.NET has two core components, are

.NET Data Provider | DataSets

Which sentence about.NET assemblies is correct?

.NET assemblies are versioning, self-describing and configurable.

# The extension of an assembly is

.dll

The extension of an assembly is _________

.dll

select the correct statements about ADO.Net:

1,2

The best way to delimit ASP.Net code from HTML code in your pages is by using --------------- tags.Skill/Topic: Beginner

< Script >

1. using System;2. public class Parent{3. public virtual void Count(){4. Console.WriteLine("100");5. }6. };7. public class Child:Parent8. {9. public override void Count(){10. Console.WriteLine("1000");11. }12. public static void Main(){13. Parent p=new Child();14. p.Count();15. } }What will be the output of the above program?

1000

# What version of the javascript should be used for client side script

2.0

98. What version of the javascript should be used for client side scriptSkill/Topic: Advanced

2.0

What version of the javascript should be used for client side scriptSkill/Topic: Advanced

2.0

using System;class Question{public static void Main(){for (int i=0;i<10;++i) {try{if(i%3==0) throw new Exception("E0");try{if(i%3==1) throw new Exception("E1");Console.WriteLine(i);}catch (Exception inner){i+=3;}finally {++i;}}//try1catch(Exception outer){i+=3;}finally {++i;}}}}Which of the following lines does the above program display?

5 va 8

# runtime error, null pointer exception

504

# Which sentence about code library is correct?

A code library can be an executable file.

# Which object presents the actual data of data table?

A collection of Datarow objects

# An engine that shared by all .NET-aware languages is called:

A common runtime engine

An engine that shared by all .NET-aware languages is called:

A common runtime engine

An engine that shared by all .NET-aware languages is called

A common runtime engine.

Which of the following statements are true about delegates

A delegate can be thought of as a type-safe object-oriented function pointer. va It can handle only one method at a time. va It cannot be used for event handling.

# The method on which a delegate makes calls cannot have any arguments.

A delegate must define name of the method on which it makes calls.

2. Which sentence is correct?

A delegate must define name of the method on which it makes calls.

# Which the following sentence about Delegate is true?

A delegate object can maintain a list of methods to call.

# What are building blocks of an XML Web service?

A discovery service, a description service and a transport protocol.

What are building blocks of an XML Web service?

A discovery service, a description service and a transport protocol.

# A temporary cookie is not destroyed after the user logs off your site.

A persistent cookie is not destroyed after the user logs off your site.

List the key elements of COM (choose all correct answers)

A set of services , A set of specifications

List the key elements of COM (choose all correct answers)

A set of services for creating and exposing the classes va A set of specifications defining the programming protocol

# Which senetence about static constructor is correct?

A static constructor executes extracts one time.

Which of the following statements are true?

A static constructor is a member that implements the actions required to initialize a class.

What is the minimal information needed by a connection string to open a connection to a SQL Server 2000 or SQL Server 2005 database?

A valid data source,Appropriate

# A web server is a software product in charge of hosting your web applications.

A web server is a software product in charge of hosting your web applications.

12. Value types can be null

A. True

8. Data reader represents a read-only, forward-only cursor.

A. True

3. Does Microsoft supply data provider for Oracle database?

A. Yes

4. Does DataTable class support a method that allows obtaining the data reader-like navigation scheme?

A. Yes

What of the folllowings is correct if we want to set the Achild form as a child form of the parent form named TheParent?

AChild.MdiParent = TheParent;

hat of the folllowings is correct if we want to set the Achild form as a child form of the parent form named TheParent?

AChild.MdiParent = TheParent;

# What of the folllowings is correct if we want to set the Achild form as a child form of the parent form named TheParent?

AChild.MdiParent = TheParent;.

# The _____ package forms the basic unit of versioning.

An Assembly

# is a unit of class deployment.

An Assembly

The _____ package forms the basic unit of versioning.

An Assembly

________ is a unit of class deployment

An Assembly

________ is a unit of class deployment.

An Assembly

58. What is a satallite assembly ?

An Assembly containing localized resources for another assembly

58. What is a satallite assembly ?Skill/Topic: Intermediate

An Assembly containing localized resources for another assembly

What is a satallite assembly ?

An Assembly containing localized resources for another assembly

What is a satallite assembly ?Skill/Topic: Intermediate

An Assembly containing localized resources for another assembly

# is a member that enables an object or class to provide notifications.

An Event

_______ is a member that enables an object or class to provide notifications.

An Event

is a member that enables an object or class to provide notifications.

An Event

Abstract classes have the following features:

An abstract ..instantiated.,An abstract..methods

# An abstract class is a class that cannot be inherited from.

An abstract class is a class that cannot be instantiated.

Which sentence is correct?

An abstract class is a class that cannot be instantiated.

# One of the differences between an abstract class and an interface is:

An abtract class can inherit another abtract class: an interface cannot inherit another interface

# Which of the statements on Serializable is true?

An instance of a type that is Serializable can be easily transmitted over the network, or stored in a file on the file system

Which of the statements on Serializable is true?

An instance of a type that is Serializable can be easily transmitted over the network, or stored in a file on the file system

# What is return value of ExecuteNonQuery() method of a Command object?

An integer is number of affected rows

# Which variables can use by all users and in all pages?

Application

5. Which sentence about DataSet is correct?

B. A DataSet is an in-memory representation of external data.

10. Which sentence is correct?

B. Elements of a List<T> variable cannot have different type.

Select correct statements about Common Intermediate Language (CIL):

CIL is a CPU,CIL is converted.

# Select correct statements about Common Intermediate Language (CIL):

CIL is a CPU-independent,CIL is converted

# The primary role of the _ is to locate, load, and manage .NET types on your behalf.

CLR

# Which Property of the textbox control modifies the case of characters as they are typed?

CharacterCasing

# Which property of textBox control to set whether the TextBox control modifies the case of characters as they are typed?

CharacterCasing

# You want to add a control to your form that allows you to set a particular option on or off. Which control would you choose?

CheckBox

You want to add a control to your form that allows you to set a particular option on or off. Which control would you choose?

CheckBox

What are states that a CheckBox can have

Checked Only

# What are states that a CheckBox can have?

Checked only

# If Parent is a base class and Child is its derived class then which of the following statements is not valid?

Child c1=new Parent();

If Parent is a base class and Child is its derived class then which ofthe following statements is not valid?

Child c1=new Parent();

Which of the following is a valid variable in C#?

Class

Which sentence about Connection object is correct

Connection object is used to establish a session with the data source

# Which sentence about namespace is correct?

Classes from many namespaces can reside in one assembly.

Which sentence about namespace is correct?

Classes from many namespaces can reside in one assembly.

# abstract modifier can be used with

ClassesMethodsProperties

# Whats is the significance of Response.ClearHeaders( )

Clears all Headers from the buffer stream

90. Whats is the significance of Response.ClearHeaders( )Skill/Topic: Advanced

Clears all Headers from the buffer stream

Whats is the significance of Response.ClearHeaders( )Skill/Topic: Advanced

Clears all Headers from the buffer stream

Choose 2- correct statements about server-side and Client-side codes?

Client side code is executed on the browser. Server side code is executed at the server side on IIS in ASP.NET framework.

When the user close the Form, which of the following events will occur?

Closing,Closed

# When the user close the Form, which of the following events will occur?

ClosingClosed

# To perform a change to a table using the Command object named Cmd, what statement of the following correct?

Cmd.ExecuteNonQuery()

To perform a change to a table using the Command object named Cmd, what statement of the following correct?

Cmd.ExecuteNonQuery()

named Cmd, what statement of the following is correct?

Cmd.executedNonquery()

to perfrom a change to a table using the command object named Cmd, what statement of the following is correct?

Cmd.executedNonquery()

# which validation control is used to validate that the value of an input control is equal to a fixed constant?

CompareValidator

1. public class Q21 {2. int maxElements;3. void Q21() {4.maxElements = 100;5.(maxElements);6.}7.Q21(int i) {8.maxElements = i;9.System.out.println(maxElements);10. }[2.5]11. public static void Main() {12. Q21 a = new Q21();13.Q21 b = new Q21(999);14.}15.}

Compilation error at line 3.

What will happen if you compile/run the following code? 1. public class Q21 { 2. int maxElements; 3. void Q21() { 4. maxElements = 100; 5. System.out.println(maxElements); 6. } 7. Q21(int i) { 8. maxElements = i; 9. System.out.println(maxElements); 10. } 11. public static void Main() { 12. Q21 a = new Q21(); 13. Q21 b = new Q21(999); 14. } 15. }

Compilation error at line 3.

1. public class Test { 2. void show() { 3. System.Console.WriteLine("non-static method in Test"); 4. } 5. } 6. public class Q3:Test { 7. static override void show() { 8. System.Console.WriteLine("Overridden non-static method in Q3"); 9. } 10. public static void Main() { a. Q3 a = new Q3(); 11. } }

Compilation error at line 7.

# In the .NET framework, an assembly is a _____ code library for use in

Compiled

Assume that Sub1 and Sub2 are both subclasses of class Super. Given the declarations: Super super = new Super(); Sub1 sub1 = new Sub1();Sub2 sub2 = new Sub2(); Which statement best describes the result of attempting to compile and execute the following statement: super = sub1;

Compiles and definitely legal at runtime

Which statement best describes the result of attempting to compile and execute the following statement: super = sub1;

Compiles and definitely legal at runtime

A custom control should you use to verify an authorized aplication user called as _____

Complex Control

# Hello Visual C#

Complie error

What is output of this code? abstract class Classi { public abstract void SayHello(string yourName) { System.Console.WriteLine("Hello {0}". yourName): } } class Class2: Classi { public override void SayHello(string yourName) { System.Console.WriteLine("Goodbye {0}". yourName): } } class Program { static void Main(stringQ args) { Class2 obj = new Class2(); obj.SayHello('Visual C#"): } }

Complie error

What is output of this code?...obj.SayHello('Visual C#"):

Complieerror

the ... object allows us to retrieve & manipulate data in the database.

Connection

# The WriteLine method is a part of the ______ class

Console

The WriteLine method is a part of the ______ class

Console

# Basic input and output operations are performed in C# using the methods of the ______ class in the

Console,System

Basic input and output operations are performed in C# using the methods of the ______ class in the _________namespace.

Console,System

# Constructor of Person class. Constructor of Staff class.

Constructor of Person class. Constructor of Staff class.

Which class represents shortcut menus that can be displayed when the user clicks the right mouse button over a control or area of the form?

ContextMenu

which class is the base class for all the controls that can be used in Windows Forms?

Control

___ are the visual effects supported in winforms

Control Anchoring | control docking

# What executable unit gets created when we build an ASP.Net application?

DLL

4. What executable unit gets created when we build an ASP.Net application?Skill/Topic:

DLL

# What is the first step to define an event?

Define a delegate that contains the method to be called when the event is fired.

What is the first step to define an event?

Define a delegate that contains the method to be called when the event is fired.

8. How do we implement encapsulation? (choose 2)

Define a pair of accessor and mulator methods ,Define a named property

How do we implement encapsulation? (choose 2)

Define a pair of accessor and mulator methods va Define a named property

# How do we implement encapsulation?

Define a pair of accessor and mulator. named property

How do we implement encapsulation by C#?

Define named properties.

# Complete this sentence :At the heart of event are___

Delegates

class Question{public Hashtable Directory = new Hashtable();public string this[string Person] {get {return (string) Directory[Person];}set {Directory[Person] = value;}}}class Test {static void Main() {Question Dir = new Question();// Add code here. . . . . . . .}}Two persons named SMITH and MARTIN are to be added in the directory created above. To achieve this which of the following are the valid statements that can be added in the space specified in the code above?

Dir ["S"]="SMITH"; Dir ["M"]="MARTIN";

What is spin control?(choose 2)

DomainUpDown & NumericUpDown.

10. What is spin control?(choose 2)

DomainUpDown , NumericUpDown

What is spin control?(choose 2)

DomainUpDown va NumericUpDown

What is spin control

DomainUpDown, NumericUpDown

# What is spin control?

DomainUpDown,NumericUpDown

Why the data is not inserted using the following code? SqlCommand insertConmmand = new SqlCommand(); insertCommand.CommandType = CommandType.Text;

Don't have integrated connection for the command object.

The method can be used to draw a rectangle or a square depending on the coordinates passed as its argument

DrawRetangle

What of the followings is correct for creating a command object with the connection con?

DrawRetangle

you are developing a Winfrom application. you have recived instructions to make sure that the PictureBox will

ErrorImage

# The type of event declaration must be of _________ type

Event

The type of event declaration must be of _________ type.

Event

___ is any action directed at the application

Event

_____is any action directed at the application

Event

_____is any action directed at the application.

Event

is any action directed at the application

Event

43. Select the type Processing model that asp.net simulateSkill/Topic: Intermediate

Event-driven

_is any action directed at the application.

Event.

# the property of the Radio Button control restricts the users to select only one option from a give set of options

Group Name

the property of the Radio Button control restricts the users to select only one option from a give set of options

Group Name

# When a .aspx page is requested from the web server, the out put will be rendered to browser in following format

HTML

# when an .ASPX page is request from the web server, the output will be rendered to Brower in following format

HTML

3. When a .aspx page is requested from the web server, the out put will be rendered to

HTML

When a .aspx page is requested from the web server, the out put will be rendered to browser in following format

HTML

when an .ASPX page is request from the web server, the output will be rendered to Brower in following format:

HTML

What are NOT Web Server controls?

HTML controls

# When an .aspx page is requested from the web server, the output will be rendered to browser in following format?

HTML.

# When we want to associate a key with values which of the following classes are preferred?

Hashtable

When we want to associate a key with values which of the following classes are preferred?

Hashtable

# Compile error at line: delegate void Display();

Hello

given the following code segment, what is the output? string s ="Hello"; string r; r = s; r+="World!"; System.Console.WriteLine(s);

Hello

41. How do you turn off the Session state for a webform ?Skill/Topic: Intermediate

In Web.config file set the tag to false

How do you turn off the Session state for a webform ?Skill/Topic: Intermediate

In Web.config file set the tag to false

# which sentence about mdi application is correct?

In a MDI application, if the user maximaizes a particcular child window

# Suppose we have multi-file assembly as follows: lib.dll. parti.netmodule. part2.netmodule. part3.netmodule.

In lib.dll

# Which file is the manifest information located in?

In lib.dll

Suppose we have multi-file assembly as follows: lib.dll. parti.netmodule. part2.netmodule. part3.netmodule. Which file is the manifest information located in?

In lib.dll

# Suppose your Windows Form application contains multiple forms, and you want to choose form3 as the start-up form. How can you do that?

In- the project,application-Choose

37. Where is the default Session data is stored in ASP.NetSkill/Topic: Intermediate

InProcess

Where is the default Session data is stored in ASP.NetSkill/Topic: Intermediate

InProcess

ADO.NET provides a single set of types that communicate with multiple database management systems (DBMSs).

Incorrect.

How do you configure a DataAdapter to save changes back to a database?

Instantiate,Assign a valid

# The ______ declares a reference type that has abstract member only.

Interface

The ______ declares a reference type that has abstract member only.

Interface

declares a reference type that has abstract member onl

Interface

# A program in .NET is first compiled by the language specific compiler into

Intermediate Language

A program in .NET is first compiled by the language specific compiler into __________________

Intermediate Language

# What is default accessibility for the structures in C£?

Internal

What is default accessibility for the structures in C# ?

Internal

What is default accessibility for the structures in C£?

Internal

# System.Byte is:

Intrinsic CTS Data Type

System.Byte is:

Intrinsic CTS Data Type

# Which of the following are true about the finally clause of try-catch-finally statements?

It is always executed unless its thread terminates

Which of the following are true about the finally clause of try-catch-finally statements?

It is always executed unless its thread terminates

Which of the following statements re true?

It is not permissible, Once instantiated

# What is advantage of code-behind page model?

It is possible to have designers working on the markup while programmers author the C# code.

What is advantage of code-behind page model?

It is possible to have designers working on the markup while programmers author the C# code.

# What is managed code?

It is the code targeting the .NET runtime.

What is managed code

It is the code targeting the .NET runtime.

What is managed code?

It is the code targeting the .NET runtime.

What is NOT a client-site technology?

JavaScript VB.NET

# What is the name of entity that compiles CIL code into meaningful CPU instructions?

Just-in-time (JIT) compiler.

What is the name of entity that compiles CIL code into meaningful CPU instructions?

Just-in-time (JIT) compiler.

# Which event of form handles pressing a key?

KeyDown

Which event of form handles pressing a key

KeyDown

Arrange the sequence in which the key events are triggered

KeyDown, KeyUp, KeyPress

Arrange the sequence in which the key events are triggered

KeyDown, KeyUp, KeyPress.

hich event of form handles pressing a key?

KeyDown.

# which property of the session object is used to set the local identifier

LCID

35. Which property of the session object is used to set the local identifier ?Skill/Topic:

LCID

which property of the session object is used to set the local identifier

LCID

# What is sequence of tasks to CLR execute an assembly?

LPRCE > 31425

# Which control is NOT used to receive information?

Label

We have the following organization of classes. class Parent { } class DerivedOne :Parent { } class DerivedTwo :Parent { } Which of the following statements is correct for the following expression. Parent p = new Parent(); DerivedOne d1 = new DerivedOne(); DerivedTwo d2 = new DerivedTwo(); p = d1;

Legal at compile and runtime

What error does the following code generate? //No overload for method 'SuperClass' takes '0' arguments public class SuperClass { SuperClass(string s) { } } public class SubClass : SuperClass { SubClass(string s) { } public static void Main(){ SuperClass s = new SubClass( "The" ); } }

No constructor matching SuperClass() found in class SuperClass

# No error, but there is 1 warning.

No error, but there is 1 warning.

class Mammal : Animal public string Name { get; set; }

No errors, but there is 1 warning.

student s1 = new student("02010","Nguyen van a");

No is 02010

# C# language offers the following features

No pointers required: Automatic memory management through garbage collection!

C# language offers the following features (choose a correct answer)

No pointers required: Automatic memory management through garbage collection!

# What is output of following code: List<int>array1=new List<int>();

Nothing

List<int> array1 = new List<int>(); foreach (int n in array1) System.Console.WriteLine(array1.ToString());

Nothing

List<int>arrayl = new List<int>0;

Nothing

System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection();

Nothing

What is wrong with the following code?

Nothing is wrong with the above code

# How many web.config files an ASP.NET application can have?

Only 1.

How many web.config files an ASP.NET application can have?

Only 1.

# A class can have ...

Only one constructor and only one destructor.

# Which of the following are not a member of Server Object

Open

61. Which of the following is not a member of ADODBCommand objectSkill/Topic: Advanced

Open

87. Which of the following are not a member of Server ObjectSkill/Topic: Advanced

Open

Which of the following are not a member of Server ObjectSkill/Topic: Advanced

Open

________ allows developers and business analysts work together to define and modify business processes shared between applications.

Orchestration

allows developers and business analysts work together to define and modify business processes shared between applications

Orchestration

_ allows developers and business analysts work together to define and modify business processes shared between applications.

Orchestration.

# This code has error at line: Console.WriteLine(h.Name).

Output of this code is "Nguyen Van A".

Study the following code and choose one correct sentence. using System: class Human

Output of this code is "Nguyen Van A".

# To run this code, you must using another namespace is System.Collections.Generic

Output of this code is 0.

# Overridden method and Overridden base method don't have the same declared accessibility

Overridden method and Overridden base method have to have the same return type.

# Override method and overridden base method must have the same return type

Override method and overridden base method must have the same return type

# The first event to be triggered in an aspx page is ...

Page_Init

The first event to be triggered in an aspx page is ...

Page_Init

9. The first event to be triggered in an aspx page isSkill/Topic: Beginne

Page_Init()

he first event to be triggered in an aspx page is ...

Page_Init.

# which control is used to group related controls in a logical unit?

Panel

The ____control groups a set of controls within a non-labeled an scrollable frame

Panel

he ____control groups a set of controls within a non-labeled an scrollable frame

Panel.

# At least one _______ constructor must be declared to suppress the automatic generation of a default constructor.

Parameterized

At least one _______ constructor must be declared to suppress the automatic generation of a default constructor.

Parameterized

# In below events of page, which one is raised first?

Prelnit

In below events of page, which one is raised first?

Prelnit

are the Print support controls provided by WinForms

PreviewControl and Document

_ are the Print support controls provided by WinForms.(Choose all correct answers)

PrintPreviewControl&PrintDocument.

____ are the Print support controls provided by WinForms.(Choose all correct answers)

PrintPreviewControl,PrintDocument

........................ are required to be located within the same directory as the client application (termed the application directory) or a subdirectory thereof.

Private assemblies

Which assemblies can be configured using client *.config file.

Private assemblies

Which sentence about private assemblies is correct?

Private assemblies reside in the same directory of application making use of them.

# Which assemblies can be configured using client *.config file.

Private assembliesShared Assemblies

IntelliSence pops up a list of _____that can be called on an object (Choose all correct answers)

Properties

The____ event of the PrintDocument class is triggered immediately before each PrintPage event ocurs

QueryPageSettings

# Which of the following is not a valid state management tool?

Querystate

49. Which of the following is not a valid state management tool?Skill/Topic: Intermediate

Querystate

Which of the following is not a valid state management tool?Skill/Topic: Intermediate

Querystate

in Webfrom, the ... property of the RadioButton control restricts the user to select only one option from given set of options

RadioName

# Which control is used to determine a given value is in a predetermined range.

RangeValidator

Which control is used to determine a given value is in a predetermined range.

RangeValidator

# The...method of the ...object is used to redirect the user to another page.

Redirect, Response

# How ASP.Net Different from ASP

Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

23. How ASP.Net Different from ASPSkill/Topic: Beginner

Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

How ASP.Net Different from ASP?

Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

How ASP.Net Different from ASPSkill/Topic: Beginner

Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

6. The code will be processed on web server when the runat attribute of the < Script > tag has the following value.Skill/Topic: Beginner

Server

A remote object is an object that runs on...

Server

The code will be processed on web server when the runat attribute of the < Script > tag has the following value.Skill/Topic: Beginner

Server

# You need to store a user's user name and password as he or she navigates to different pages on your site so that you

Server-side state management

You need to store a user's user name and password as he or she navigates to different pages on your site so that you can pass those credentials to back-end servers. Which type of state management should you use?

Server-side state management

List the key elements of COM

Services snd specifications

... variable can be accessed by all the pages in the application. (Choose 2)

Session Application

# In ASP.NET application, and ________ variables can be accessed by all the pages in the application.

Session, Application

Which sentence about shared assemblies is correct?

Shared assemblies are deployed to GAC.

# Shared assemblies are libraries reside in the same directory of application making use of them

Shared assemblies are libraries intended to be consumed by numerous application on a single machine.

# Buttons, Textboxes, Listboxes are

Simple controls

Buttons, Textboxes, Listboxes are .............................

Simple controls

Two types of delegates are:

Single Cast delegate, Multi Cast delegate

Two types of delegates are:

Single Cast delegate,Multi Cast delegate

# Two types of delegates are

Single CastMulti Cast

# You are required to build an application that can serialize an object to a file. Then, this file can be transferred to another program written in Java and running in Linux operating system to be de serialized Which of the following classes is the best choice for the above task?

SoapFormatter

You are required to build an application that can serialize an object to a file. Then, this file can be transferred to another program written in Java and running in Linux operating system to be de serialized

SoapFormatter

# What is SoapFormatter

SoapFormatter is a serialization formatter that represents graph as a SOAP message

# What is SoapFormatter?

SoapFormatter is a serialization formatter that represents graph as a SOAP message

What is SoapFormatter

SoapFormatter is a serialization formatter that represents graph as a SOAP message

# What is name of templates that wrap a block of selected statements within a relevant scope?

Surround with

# The ________namespace contains all code required to interact with the including the console output.

System

The ________namespace contains all code required to interact with the including the console output.

System

Which of the following statements with respect to ADO.Net are True? (Choose all correct answers)

System built,When we use

# What are system exceptions?

System exceptions are custom exceptions that derive from the System.Exception type.

# system exception are custom exceptions that derive from the System.exception type

System exceptions are exeption that are thrown by CLR

# The _______ namespace provides the classes and methods for manipulating arrays.

System.Array

The _______ namespace provides the classes and methods for manipulating arrays.

System.Array

# The Syntax of a predefined Sort method is:

System.Array.Sort(Arraytosort)

The Syntax of a predefined Sort method is:

System.Array.Sort(Arraytosort)

Where can you change 'Default Namespace" of Visual Studio?

The Application tab of the project's Properties window

# Where can you change 'Default Namespace" of Visual Studio?

The Application tab of the project's Properties window.

Which sentence about Application Domain is correct?

The CLR is able to load and unload a formal process much quicker than Application Domains.

What is the result of the following code? SqlConnection conn = new SqlConnection(); conn.ConnectionString = CONNECTION_STRING;

The DataAdapter will create 3 data tables in the dataset.

# A catch clause may catch exception of which type?

The Exception Type.

A catch clause may catch exception of which type?

The Exception Type.

What happens when you call the Close method of a connection object?

The connection is returned to the connection pool.

# A command builder is only able to autogenerate SQL commands for use by a data adapter, if

The SELECT command interacts with only a single table, the single table has been attributed with a primary key, and the column(s) representing the primary key is accounted for in your SQL statement.

# where do we can change default namespace of a project?

The Solution Explorer utility

# What is the TrackBar control?

The TrackBar control allows user to select a value from a range (of values), using scroll bar-like input mechanism.

What is the TrackBar control

The TrackBar control allows user to select a value from a range (of values), using scroll bar-like input mechanism.

What is the TrackBar control?

The TrackBar control allows user to select a value from a range (of values), using scroll bar-like input mechanism.

What will be printed to standard output?class Super{public int index = 5;public virtual void printVal() {System.Console.WriteLine( "Super" );}}class Sub : Super{int index = 2;public override void printVal() {System.Console.WriteLine( "Sub" );}}public class Runner {public static void Main( ) {Super sup = new Sub();System.Console.WriteLine( sup.index + "," );sup.printVal();}}

The code compiles and "5, Sub" is printed on the standard output.

public class Runner { public static void Main( ) { Super sup = new Sub(); System.Console.WriteLine( sup.index + "," ); sup.printVal(); } }

The code compiles and "5, Sub" is printed on the standard output.

char c='a'; switch(c ){ case 'a': Console.WriteLine("A");break; default: Console.WriteLine("Default"); } What will happen if you attempt to compile and run code that includes this snippet?

The code will compile and run and the letter "A" will be written to the standard output.

class Question{public static void Main(){Function1();}static void Function1(){try{System.Console.WriteLine("In Try");return;}finally{System.Console.WriteLine("In Finally");}}}What will be the output of above code when compile/run?

The code will compile successfully and output the following text:In Try In Finally

What will be the output of the code below when compiled/run?1.class Test {2.public static void Print(object[] arr){3.foreach(object p in arr)4.System.Console.WriteLine(p);5.}6.public static void Main(){7.string s="Programming in c#";8.char[] separator={' '};9.string[] words=s.Split(separator);10.Print(words);11.}}

The code will compile successfully and output will be ProgrammingInc#

1.class Test{2.delegate void SimpleDelegate();3.static void F() {4.System.Console.WriteLine("Test.F");5.}6.static void Main() {7.SimpleDelegate d = new SimpleDelegate(F);8.d();9.}10.}What will be the output of above code when compiled/run?

The code will compile successfully and the output of above code will be: Test.F

1.class Test{2.public static void Main(){3.int i=0;4.char c='s';5.object[] objArray=new object[3];7.objArray[0]=i;8.objArray[0]=c;//new char();9.}10.}The above code is compiled and run. The possible error is:

The code will compile successfully.

using System; class Test { static void Main() { int @Main; int[] Static= new int[3]; @Main =100*Static[1]; Console.WriteLine(@Main); } } What will be the output of above code?

The code will display 0.

using System;class Test{public static void Main(){int value =Int32.Parse("99953");double dval=Double.Parse("1.3433E+35");Console.WriteLine(value);Console.WriteLine(dval);}};What will be the output of above code when compiled/run?

The code will generate a compile time error.

# The code will be excuted successfully and print out some number and then the program is terminated because this is a background thread.

The code will have a compile error.

# What is a diffgram ?

The one which renders the dataset object contents to XML

80. What is a diffgram ?

The one which renders the dataset object contents to XML

80. What is a diffgram ?Skill/Topic: Advanced

The one which renders the dataset object contents to XML

What is a diffgram ?

The one which renders the dataset object contents to XML

What is a diffgram ?Skill/Topic: Advanced

The one which renders the dataset object contents to XML

namespace Space1 {using System;public class A{public static void Main() {A objA=new A();Type t1 = objA.GetType();Console.WriteLine("The type of objA is : {0} ", t1);}}}What will be the output of above code when compiled/run?

The output of code will be: The type of objA is : Space1.A

using System;public class Parent {public virtual void Display(){Console.WriteLine("100"); }}public class Child1:Parent {public override void Display(){Console.WriteLine("1000");}}public class Child2:Parent {public override void Display(){Console.WriteLine("1000"); }public static void Main() {Child1 c1=new Child1();Child2 c2=new Child2();Parent p=c2;c1.Display();p.Display()}}What will be the output of above code when compile/run?

The output of the code willbe:10001000

# which Sentence about thread pool is correct?

The thread pool managers threads efficiently by minimizing the number of threads must be created started ,and stopped

Which sentence about thread pool is correct?

The thread pool manages threads effciently by minimizing the number of threads that must be created, started, and stopped.

1.using System;2.class Test{3.public static void Main(){4.try{5.int p=10;6.Console.WriteLine("enter a number");7.int r=Int32.Parse(Console.ReadLine());8.p/=r;9.}10.catch(Exception e){11.Console.WriteLine(e);12.Console.WriteLine(Console.Error);13.}14.}15.}Above program is compiled and run.The user enters 0 when asked for the number.Does the code at line 11 and 12 displays the same output?

The try block throws an exception hence the control goes to catch block but line number 11 and 12 does not produce the same output.

what of the following is correct if we want to set the AChild form as a child from of the parent form named TheParent?

TheParent.mdiChild = Achild

26. There can be more than 1 machine.config file in a systemSkill/Topic: Beginner

True

30. It is possible to set Maximum length for a text box through codeSkill/Topic: Intermediate

True

45. Web Controls Supports CSS

True

45. Web Controls Supports CSSSkill/Topic: Intermediate

True

A persistent cookie is not destroyed after the user logs off your site

True

ADO.NET supports multiple data provides, each of which is optimized to interact with a specific DBMSs.

True

Abstract class cannot be directly instantiated but it can be used to create object references.

True

An abstract class is a class that cannot be instantiated.

True

An interface is a pure abstract class.

True

Boxing is conversion form an object to a value type.

True

Connection object is used to establish a session with the data source

True

Data reader represents a read-only, forward-only cursor.

True

Delegates help to call a method at runtime?

True

Enumerations are a handy programming construct that allow you to group name/value pairs.

True

For versioning the private assemblies, the CLR simply loads the newest assemblies found in the application directory

True

If a class has a static constructor then it is automatically called when the class is loaded. Static constructors cannot be invoked explicitly.

True

In C# array elements are automatically assigned default values

True

In C#, an underscore is allowed as an initial character of a variable

True

A namespace is a logical compile-time mechanism.

True.

A static constructor cannot have accessibility modifiers.

True.

A static constructor is a member that implements the actions required to initialize a class.

True.

ASP.NET supports single-file model only.

True.

Object graph is a set of related object of serialized object

True.

Console.WriteLine("try");

Try Finally

What would be the output of the following code fragment? int x=0,y=4,z=5; if(x<2) if(y<4){ Console.WriteLine("One"); } else { Console.WriteLine("Two"); } else if(z>5){ Console.WriteLine("Three"); } else { Console.WriteLine("Four"); }

Two

Web service technology is based on what?

XML and SOAP

How can we check that some changes have been made to a DataTable since it was loaded?

We can use the property IsChanged to check whether a datatable is changed or not

# What is the Full Form of WSDL

Web Service Description Language

71. What is the Full Form of WSDL

Web Service Description Language

71. What is the Full Form of WSDLSkill/Topic: Advanced

Web Service Description Language

What is the Full Form of WSDL ?

Web Service Description Language

What is the Full Form of WSDLSkill/Topic: Advanced

Web Service Description Language

# Why do we use XMLSerializer class

WebServices

53. Why do we use XMLSerializer classSkill/Topic: Intermediate

WebServices

Why do we use XMLSerializer class ?

WebServices

Why do we use XMLSerializer classSkill/Topic: Intermediate

WebServices

# A web application running on multiple servers is called as

Webfarm

21. A web application running on multiple servers is called as Skill/Topic: Beginner

Webfarm

A web application running on multiple servers is called as Skill/Topic: Beginner

Webfarm

# Postback occurs in which of the following forms

Webforms

10. Postback occurs in which of the following formsSkill/Topic: Beginner

Webforms

Postback occurs in which of the following formsSkill/Topic: Beginner

Webforms

When the OleDbConnection object should be used?

When connecting ..Office Access ,SQL Server 6.x.

# When the OleDbConnection object should be used?

When connecting to an Office Access databaseWhen connecting to SQL Server 6.x.

_____it the normal ouput type for a WinForm project

Windows Application

it the normal ouput type for a WinForm project

Windows Application

_it the normal ouput type for a WinForm project

Windows Application.

# Select correct statements about Integrated Development Environments (IDEs):

Windows Forms Designers. Visual C# 2005

___ is he normal output type for a Windows Forms project

Windows application

# Which of the following are not core feature of .NET framework

Wrap a "sane subset" of the raw Win32

Which of the following are not core feature of .NET framework:

Wrap a "sane subset" of the raw Win32 API behind a number of classes, magic macros, and numerous code-generation tools.

class A { public static int X = B.Y + 1; } class B { public static int Y = A.X + 1; static void Main() { Console.WriteLine("X = {0}, Y = {1}", A.X, B.Y); } } what will be the output of above code?

X=1, Y=2

# what is at the heart of Ajax programming

XML Http request object

what is at the heart of Ajax programming?

XML Http request object

which object represents the actual data of a datatable?

a collection of datarow object

which sentence about html form is correct?

a html form is a named group of related ui clements used to gather

12. Which is return value of ExecuteNonQuery() method of a Command object?

a. An integer is number of affected rows.

2. Which sentence about background threads is correct?

a. Background threads are viewed by the CLR as expendable paths of execution that can be ignored at any point in time

8. What are states that a CheckBox can have?

a. Checked only

5. What is the first event is raised when the form has been allocated on the managed heap?

a. Load

3. Which sentence is correct?

a. Object graph is a set of related object of serialized object

12. can we add a control at runtime?

a. Yes

4. can multiple versions of the name .NET assembly be installed on a single machine?

a. Yes

5. 4. can multiple versions of the name .NET assembly be installed on a single machine?

a. Yes

5. a class library that is written by C# can be used in any other .NET programming language

a. Yes

7. a given application domain can have only thread executing with it at any given time

a. false

8. a single process may contain multiple application domains

a. true

# a. try finally

a. try finally

Which statements on the <<< call >>> line are valid expressions?public class SuperClass {public int x;public int y;public SuperClass(){}}public class SubClass : SuperClass {private float f;public void m2() {return;}public SubClass() {}}public class T {public static void Main() {int i;float g;SubClass b = new SubClass( );<<< call >>>} }

b.m2(); va i=b.x; va i=b.y;

which sentence about background threads is correct?

background thread are viewed by the CLR as expendable paths of execution

which sentence about background thread is correct?

background thread are viewed by the CLR as expendable paths of execution that can be ignored at any point in time

# Which keyword is used to access the members of a base class from within a derived class?

base

what are formaters you can choose when serialization an object?

binaryFormater, soapFormater and xmlSerializer

# methods to ensure that application level variables are not update more than one user simultaneously

block and unblock

How can you initialize an array of three Boolean values?

bool[] b=new bool[3] &bool[] b={true,true,true};.

How can you initialize an array of three Boolean values?

bool[] b=new bool[3];, bool[] b={true,true,true};

in visual studio .net 2008, ____ utility presents a logical view of our work using an explorer-like view of the classes, methods and properties.

class view.

____is the collection of the rules and constraints that every language (that seeks to achieve .net compatibility) must follow

cls.

Value types differ from reference types as___

data can be stored using value types but not in the reference type. va Variables of the value types directly contain their data, whereas variables of the reference types store references to objects.

Value types differ from reference types as___

data can be stored using value types but not in the reference type.,Variables of the value types directly contain their data, whereas variables of the reference types store references to objects.

# which control support paging

data grid

which control support paging

data grid

# Assume you wish show data of customers table in a Datagridview control. what is the most suitable

data table

try {tryThis();return;} catch (DivideByZeroException x1) {System.Console.WriteLine("exception 1");return;} catch (Exception x2) {System.Console.WriteLine ("exception 2");return;} finally {System.Console.WriteLine ("finally");}What will appear in the standard output if tryThis() throws a 000000000FormatException?Select the one right answer.

exception 2 finally

# which of following is not member of response object?

execute

which of following is not member of response object?

execute

when update an existing record in one table of database, should we use which method of command objects?

executeNonQuery

what is the lifespan for item stored in viewstate

exists for thelife of the current page

# Unboxing requires an ___________cast.

explicit

# Unboxing requires an___ cast

explicit

Unboxing requires an ___________cast.

explicit

Unboxing requires an ___________cast.

explicit.

# what is the server.machine name does

gets the server's machine name

what is the server.machine name does?

gets the server's machine name

what is the Server.MachineName dose?

gets thw server's Machine Name

which control is used to link an html file the WinForms application?

helpProvider

# if file "Text.txt" does not exist, this code will raise an exception

if file "Text.txt" does not exist, this code will create a new file

# which sentence about the following code is correct?

if file "Text.txt" does not exist, this code will create a new file

2. which sentence about the following code is correct? StreamWritersw = new StreamWriter("Text.txt")

if file "Text.txt" does not exist, this code will create a new file

StreamWriter sw = new StreamWriter("Text.txt")

if file "Text.txt" does not exist, this code will create a new file

which sentence about the following code is correct? StreamWriter sw = new StreamWriter("Text.txt")

if file "Text.txt" does not exist, this code will create a new file

# System namespace is used in the C# programs to

interact with the system environment

System namespace is used in the C# programs to:

interact with the system environment

# Suppose we have a class declaration: Class MyClass {} What kind of access modifiers MyClass take as a default visibility?

internal

# You are building a C# application. Your application has two assemblies: MathLib.dll and DBLib.dll.

internal

# public class A:B,C,D{ }

multiple interface

public class A:B,C,D{ } The above code represents ______

multiple interface

public class A:B,C,D{ }The above code represents ______

multiple interface.

Abstract methods holds only:

name of method va Parameters va return type

# Which sentence about HTML form is correct?

named group of related UI elements used to gather user input

what dose the following sql statement return, assuming that all tables and column names are correct?

omly the matching records from the two tables

interface intA: one, two,three{ }Which of the following statements are true for the above code?

one, two, three must binterfaces.

# Each application interface should have

only one

each application interface should have

only one

a class can have ...

only one constructor and only one destructor.

# which of the following is not a member of server object?

open

, which of the following is not a member of server object?

open

which of the following is not a member of server object

open

To create an instance of the Font class using existing Font and FontStyle, the constructor is:

public Font(string fontname, float size);

# Which of the following are correct statements for implementing an abstract class.

public abstract class ClassA

Which of the following are correct statements for implementingan abstract class.

public abstract class ClassA

# Assume that you wish to build a delegate that can point to any method that returns a bool value and takes a string as input parameter. What is corre ct syntax to declare this delegate?

public delegate bool Methodl(string si) ;

# Which of the following methods can be called as an "operation"?

public void methodA();

Access Modifiers for variables in C# can be the following (Select all that apply)

public, private ,protected

# Which of the following access modifiers are used to specify the accessibility of a TYPE?

public, private, protected, internal.

which of the following access modifiers are used to specify the accessibility of a type?

public, private, protected, internal.

# Access Modifiers for variables in C# can be the following

publicprivateprotected

# C# is a ____________language.

purely Object-Oriented

C# is a ____________language.

purely Object-Oriented

which validation control is used to validate that the value of an input control is equal to a fixed constant?

rangevalidator

# the directive is used to consume a created custom control

register

the directive is used to consume a created custom control

register

# select the control which dose not have any visible interface

repeater

select the control which dose not have any visible interface

repeater

# string s1 = (string)o1;

runtime error

# the control is used when a field a field must not be left banal

required field validator

the control is used when a field a field must not be left banal

required field validator

# what is significance of server.map path

return the physical file path

what is significance of server.map path

return the physical file path that corresponds to virtual specified path

Abstract methods holds only:

return type ,name of method ,Parameters

# Abstract methods holds only

return type, name of method ,Parameters

Abstract methods holds only

return type,,name of method ,Parameters

For defining the delegate which of the following entities must be specified?

return types of ,parameters used

Methods can be overloaded in C# by:

specifying different number of parameters , specifying different types of parameters

Methods can be overloaded in C# by:

specifying different number of parameters va specifying different types of parameters

the deactivate event occurs when the user switches away from the from and concentrates on other from

statement 3 is correct

what is name of templates that wrap a block of selected statements within a relevant scope?

surround with

what are system exceptions?

system exceptions are custom exceptions that derive from the system.exception type.

By default the compiler opens _____assembly.

system.dll

which namespace dose the class listview belong to?

system.windows.forms

what dose the keyword "virtual" declare for a method?

the method can be overridden

When the array is initialized at the same time they are created, the c# compiler determines the size of array using ________

the number ,The number present

What is described in "Win32 process " term? (choose 2)

the primary thread & allocations used by a running application.

# what is authentication

the process of accepting credential, from a user and validating those a credentials against a designated authority

what is authentication?

the process of accepting credentials from a user and validating thoe credentials against a designated authority

Which keyword is used when you wish to explicitly reference the fields and members of the current object?

this

h.name = "nguyen van a";

this code has error at line : h.name = "nguyen van a"

StreamWritersw = new StreamWriter("Text.txt")

this code will create a new file.

# which class cannot be used to resolve the issue of con currency

thread

Why do we use Thread pool?

threading infrastructure. & started and stopped.

what is purpose of code behind?

to separate HTML layout and code different file

what is one of major reasons to use client-side scripting?

to validate user input (or )to interact with the document

which property of control type is used to set a widget should be attached to which side (or sides) of a form?

top

console.writeline(dt.rows.count.tostring());

total rows of products table

# Select the output of the statement <form method="post "action ="test.aspx"

tranfers all the form data to test.aspx with HTTP headers

# select the output the statement (form method = "post" action = "test.aspx")

transfers all the form data to test aspx with Http header

select the output the statement (form method = "post" action = "test.aspx")

transfers all the form data to test aspx with Http header

# what is term for conversion from an object to a value type?

unboxing

what are kinds of constraint in ADO.NET?

uniqueConstraint | foreignKeyConstraint

which event of the page type is fired lastly when loading the page?

unload

how do we create a new text file?

use streamWriter class | use createText() method of Fileinfor class

# How to change the tranparent level of a Windows Form?

use the Opacity Property

# Which sentences about Wsdl is correct

used to describe information

64. What is the advantage of Disconnected mode of ADO.Net in ASP.NetSkill/Topic: Advanced

user data can update and retrieve in dataset and when connection connected, update values with server

What is the advantage of Disconnected mode of ADO.Net in ASP.NetSkill/Topic: Advanced

user data can update and retrieve in dataset and when connection connected, update values with server

# What is the difference between output and reference parameters?

utput parameters do not need to be initialized before they passed to the method

which sentence about Asp.net view state is correct?

view state data can be transferred between asp.net web pages

choose the concept that is not related to asp.net security

viewstate

# If a base class wishes to define a method that may be overridden by a subclass, it must specify the method as

virtual

# If a class has a static constructor then it is automatically called when the class is loaded. Static constructors cannot be invoked explicitly

virtual

# enables the possibility for a function to be polymorphic when it is overridden

virtual

If a base class wishes to define a method that may be overridden by a subclass, it must specify the method as ..........:

virtual

How can we save all data from dataset?

we can use the AcceptChanges method to save all data from Dataset

how can we add a row is in a data table object?

we can use the add method of data table class

how can we check that some changed have been made to a data table since is was loaded?

we can use the property IsChanged to check whether a datatable is changed or not

how do we connect to SQL server database without using SQlconnection?

we cannot connect to SQl server database without using SQlconnection

what dose the "EnableViewState" property do?

when the page is posted back...| it save the server-side value...| it allows the page to save...

# Is it Possible to Serialize HashTable with XMLSerializer

yes

# Session are identified by a unique identifier that can be read by using the sessionID property?

yes

# can you store object different date types in an arrayList?

yes

# what is a "type" in the world of .Net?

{class,structure,interface,enumeration,delegation}.

Which of the following methods can be used as a destructor for a class "myClass".

~myClass() { }


Conjuntos de estudio relacionados

ПРО ОПЕРАТИВНО-РОЗШУКОВУ ДІЯЛЬНІСТЬ

View Set

Suspense in Romeo and Juliet, Part 7

View Set

#1 PEDS Ch 46 - Nursing Care of the Child With an Alteration in Cellular Regulation / Hematologic or Neoplastic Disorder

View Set

Authoritarian leadership - a style of leadership in which the leader tells the employees what needs to be done and how to perform it without getting their advice or ideas.

View Set

Chapter 14 - Distribution Decisions

View Set

Psychology Chapter 12.5 Prejudice and Discrimination

View Set