ASP.NET Questions and Answers part2

Q. List the features od ISA Server or Internet Security and Acceleration Server 2000>?

A.

1-Ability to schedule the download of contents.

2-Ability to create and enforece Internet usage policies.

3.Integrated instrusion detection.

4.Integrated logging and reporting functionality

Q. List the features of Application Center 2000

A.

1-One-click rollout of new servers

2-Simply server cluster creation and Management.

3-Automatic failover and server health monitoring.

4-Dynamic response to health monitoring.

Q. What is Notepad.NET?

A. One of the tool which used for developing .NET applications.

Q. What are all the features of Visual Studio.NET?

A.

1-Strong support for XML

2-Web Services

3-Dynamic Help

4-Drag drop development

5-A single, unified programming model for all .Net languages and for both Windows and Web Applications.

Q.What are all the data types that are not supported by CLS?

A.SByte, unit, ulong, ushort.   All these data types are available in C#.

Q Differentiate Value Types with Reference Types.

A.

Value Types

1)These data types store their data directly as value in momory.  Includes: Numeric Types (int32, short, single).   Structures(Custom data types based on System.ValueTypes).  Enumerations(Custom types that represent a defined set of values).  Boolean, char.

2) Can be accessed directlu

Reference Types

These data store types shows reference to another memory location that contains the data includes:

1.Object

2.String

3.Arrays

Can be accessed through the members of the class.

Q.Define Boxing.

A. Boxing is the process of creating an istance of the reference type of object and assigning the value of a value type to the object as well as storing information on the value's data type.

Q.Define UnBoxing.

A. Boxing is the process of assigning the value of the boxed object type to a variable of the appropriate type.

Q. What are all of the types of data types available in ASP.NET?

A.

1.Framework Specific data type.

2.Language specific data type.

Q. Define Naming Convension.

A. Naming Convension are simply agreed-upon standards for how elements will be named in the program.

Q.Define Lifetime.

A. Lifetime refers to the span of time from when the variable is declared to when it is detroyed.

Q.Define Scope.

A. Scope refers to the region of code in which a variable maybe accessed.

Q.What are different level of Scoping?

A.

Block Level: Variables declared within an If...Then, For...Next, Do...Loop Block

Procedure-Level: Variables declared within the procedures.

Module Level: Variables declared outside a procedure.

NameSpace-Level: Variables declared outside of a procedure, but given public accessibility(PUblic or Friends)

Q.Differentiate the Lifetime with Scope.

A. A variable maybe out of scope without having reached the end of its lifetime.

Q.Differentiate the terms Public, Friend, Protected, Private.

A.

Public

1.Declared with Public keyword

2.Accessible from anywhere in the same module.

Friends

1.Declared with the Friend keyword.

2.Accesible from anywhere in the same module as well as the namespace containingf the same module.

Protected

1.Declared with the Protected keyword.

2.Accesible only within the class in which they're declared or a class that inherits from that class.

Private

1.Declared with the Pirvate keyword.

2.Assesible from the Module, class, or structures in which they're declared.

3,Private keyword canot be used within the procedure.

Q. Differentiate Option Explicit with Option Stric.

A.Using Option Explicit will raise the sysntax error if we attempt to use variable before declaring it.

Using Option Strict will raise the syntax error if we attempt an implicit data type convention that would result in a loss of data.  Option Stict inplicity inclues Option Explicit.

Q.Where we've to use the Constants?

A. Constants are very useful when we have a literal value that we want to refer to by name.

Constants are very useful in place of literal values used as the arguments to the methods of component we may use.

Q.Differentiate the types of Procedures available in VB.Net

A.

Sub Procedures:  A Sub procedure executes code but dooesn't return a value.

Function Procedures:  Just like sub procedure, but they can return a value.

Q.Differentiate the terms ByVal and ByRef.

A.

ByVal: A copy of the value is passed to the procedure.

ByRef: A reference to the location of the value is passed to the procedure, which allows the procedure to modify the original value.

Q. In VB, While we are using ByVal and ByRef, which is the defail one?

A. ByRef.

Q. In VB.NET, while we are using ByVal and ByRef, which is the default one?

A. ByVal.

Q. How can you make the parameters of your procedure Optional?

A. By preceding the parameters with the option keyword, we can make the parameters of our procedure optional.

Q.What is the difference between using While and Until Loops?

A.

While will loops as long at its test condition evaluates to true.

Until will loopd as long as its test condition evaluates to false.

 

Please see ASP.NET Questions and Answers part3 because they are getting very interest,  and don't forget check out my personal website: http://m.aatechsources.com Article and Forum

 

 

 

 

 

 

 

 

 

 

Comments

No comments posted yet.

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

Please add 2 and 7 and type the answer here:

Preview Your Comment.