1. How many languages .NET is supporting now?
When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported.
2. How is .NET able to support multiple languages?
A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.
3. How ASP .NET different from ASP?
Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.
4. What is smart navigation?
The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.
5. What is view state?
The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control
6. How do you validate the controls in an ASP .NET page?
Using special validation controls that are meant for this. We have Range Validator, Email Validator.
7. Can the validation be done in the server side? Or this can be done only in the Client side?
Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.
8. How to manage pagination in a page?
Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.
9. What is ADO .NET and what is difference between ADO and ADO.NET?
ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.
Net interview Questions And answers part 2
Net interview Questions And answers part 2
11. Observations between VB.NET and VC#.NET? 
Choosing a programming language depends on your language experience and the scope of the application you are building. While small applications are often created using only one language, it is not uncommon to develop large applications using multiple languages.
For example, if you are extending an application with existing XML Web services, you might use a scripting language with little or no programming effort. For client-server applications, you would probably choose the single language you are most comfortable with for the entire application. For new enterprise applications, where large teams of developers create components and services for deployment across multiple remote sites, the best choice might be to use several languages depending on developer skills and long-term maintenance expectations.
The .NET Platform programming languages - including Visual Basic .NET, Visual C#, and Visual C++ with managed extensions, and many other programming languages from various vendors - use .NET Framework services and features through a common set of unified classes. The .NET unified classes provide a consistent method of accessing the platform's functionality. If you learn to use the class library, you will find that all tasks follow the same uniform architecture. You no longer need to learn and master different API architectures to write your applications.
In most situations, you can effectively use all of the Microsoft programming languages. Nevertheless, each programming language has its relative strengths and you will want to understand the features unique to each language. The following sections will help you choose the right programming language for your application.
Visual Basic  .NET
Visual Basic .NET is the next generation of the Visual Basic language from Microsoft. With Visual Basic you can build .NET applications, including Web services and ASP.NET Web applications, quickly and easily. Applications made with Visual Basic are built on the services of the common language runtime and take advantage of the .NET Framework.
Visual Basic has many new and improved features such as inheritance, interfaces, and overloading that make it a powerful object-oriented programming language. Other new language features include free threading and structured exception handling. Visual Basic fully integrates the .NET Framework and the common language runtime, which together provide language interoperability, garbage collection, enhanced security, and improved versioning support. A Visual Basic support single inheritance and creates Microsoft intermediate language (MSIL) as input to native code compilers.
Visual Basic is comparatively easy to learn and use, and Visual Basic has become the programming language of choice for hundreds of thousands of developers over the past decade. An understanding of Visual Basic can be leveraged in a variety of ways, such as writing macros in Visual Studio and providing programmability in applications such as Microsoft Excel, Access, and Word.
Visual Basic provides prototypes of some common project types,  including:
• Windows Application.
• Class Library.
• Windows Control  Library.
• ASP.NET Web Application.
• ASP.NET Web Service.
• Web  Control Library.
• Console Application.
• Windows Service.
• Windows  Service.
Visual C# .NET
Visual C# (pronounced C sharp) is designed to be a fast and easy way to create .NET applications, including Web services and ASP.NET Web applications. Applications written in Visual C# are built on the services of the common language runtime and take full advantage of the .NET Framework.
C# is a simple, elegant, type-safe, object-oriented language recently developed by Microsoft for building a wide range of applications. Anyone familiar with C and similar languages will find few problems in adapting to C#. C# is designed to bring rapid development to the C++ programmer without sacrificing the power and control that are a hallmark of C and C++. Because of this heritage, C# has a high degree of fidelity with C and C++, and developers familiar with these languages can quickly become productive in C#. C# provides intrinsic code trust mechanisms for a high level of security, garbage collection, and type safety. C# supports single inheritance and creates Microsoft intermediate language (MSIL) as input to native code compilers.
C# is fully integrated with the .NET Framework and the common language runtime, which together provide language interoperability, garbage collection, enhanced security, and improved versioning support. C# simplifies and modernizes some of the more complex aspects of C and C++, notably namespaces, classes, enumerations, overloading, and structured exception handling. C# also eliminates C and C++ features such as macros, multiple inheritance, and virtual base classes. For current C++ developers, C# provides a powerful, high-productivity language alternative.
Visual C# provides prototypes of some common project  types, including:
• Windows Application.
• Class Library.
• Windows  Control Library.
• ASP.NET Web Application.
• ASP.NET Web Service.
•  Web Control Library.
• Console Application.
• Windows Service.
.Net interview Questions And answers part 3
.Net interview Questions And answers part 3
12. Advantages of migrating to VB.NET ?
Visual Basic .NET has many new and improved language features — such as inheritance, interfaces, and overloading that make it a powerful object-oriented programming language. As a Visual Basic developer, you can now create multithreaded, scalable applications using explicit multithreading. Other new language features in Visual Basic .NET include structured exception handling, custom attributes, and common language specification (CLS) compliance.
The CLS is a set of rules that standardizes such things as data types and how objects are exposed and interoperate. Visual Basic .NET adds several features that take advantage of the CLS. Any CLS-compliant language can use the classes, objects, and components you create in Visual Basic .NET. And you, as a Visual Basic user, can access classes, components, and objects from other CLS-compliant programming languages without worrying about language-specific differences such as data types. CLS features used by Visual Basic .NET programs include assemblies, namespaces, and attributes. These are the new features to be stated briefly:
Inheritance
Visual Basic .NET supports inheritance by allowing you to define classes that serve as the basis for derived classes. Derived classes inherit and can extend the properties and methods of the base class. They can also override inherited methods with new implementations. All classes created with Visual Basic .NET are inheritable by default. Because the forms you design are really classes, you can use inheritance to define new forms based on existing ones.
Exception Handling
Visual Basic .NET supports structured exception handling, using an enhanced version of the Try...Catch...Finally syntax supported by other languages such as C++.
Structured exception handling combines a modern control structure (similar to Select Case or While) with exceptions, protected blocks of code, and filters. Structured exception handling makes it easy to create and maintain programs with robust, comprehensive error handlers.
Overloading
Overloading is the ability to define properties, methods, or procedures that have the same name but use different data types. Overloaded procedures allow you to provide as many implementations as necessary to handle different kinds of data, while giving the appearance of a single, versatile procedure. Overriding Properties and Methods The Overrides keyword allows derived objects to override characteristics inherited from parent objects. Overridden members have the same arguments as the members inherited from the base class, but different implementations. A member's new implementation can call the original implementation in the parent class by preceding the member name with MyBase.
Constructors and  Destructors
Constructors are procedures that control initialization of new instances of a class. Conversely, destructors are methods that free system resources when a class leaves scope or is set to Nothing. Visual Basic .NET supports constructors and destructors using the Sub New and Sub Finalize procedures.
Data Types
Visual Basic .NET introduces three new data types. The Char data type is an unsigned 16-bit quantity used to store Unicode characters. It is equivalent to the .NET Framework System. Char data type. The Short data type, a signed 16-bit integer, was named Integer in earlier versions of Visual Basic. The Decimal data type is a 96-bit signed integer scaled by a variable power of 10. In earlier versions of Visual Basic, it was available only within a Variant.
Interfaces
Interfaces describe the properties and methods of classes, but unlike classes, do not provide implementations. The Interface statement allows you to declare interfaces, while the Implements statement lets you write code that puts the items described in the interface into practice.
Delegates
Delegates objects that can call the methods of objects on your behalf are sometimes described as type-safe, object-oriented function pointers. You can use delegates to let procedures specify an event handler method that runs when an event occurs. You can also use delegates with multithreaded applications. For details, see Delegates and the AddressOf Operator.
Shared Members
Shared members are properties, procedures, and fields that are shared by all instances of a class. Shared data members are useful when multiple objects need to use information that is common to all. Shared class methods can be used without first creating an object from a class.
References
References allow you to use objects defined in other assemblies. In Visual Basic .NET, references point to assemblies instead of type libraries. For details, see References and the Imports Statement. Namespaces Namespaces prevent naming conflicts by organizing classes, interfaces, and methods into hierarchies.
Assemblies
Assemblies replace and extend the capabilities of type libraries by, describing all the required files for a particular component or application. An assembly can contain one or more namespaces.
Attributes
Attributes enable you to provide additional information about program elements. For example, you can use an attribute to specify which methods in a class should be exposed when the class is used as a XML Web service. Multithreading
Visual Basic .NET allows you to write applications that can perform multiple tasks independently. A task that has the potential of holding up other tasks can execute on a separate thread, a process known as multithreading. By causing complicated tasks to run on threads that are separate from your user interface, multithreading makes your applications more responsive to user input.
13. Advantages of VB.NET
First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are readily available in VB.NET.
VB.NET is totally object oriented. This is a  major addition that VB6 and other earlier releases didn't have.
The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer exists. It also retrieves the records that are expected to be accessed in the immediate future. This enhances Scalability of the application to a great extent.
VB.NET uses XML to transfer data between the various layers in the DNA Architecture i.e. data are passed as simple text strings.
Error handling has changed in VB.NET. A new Try-Catch-Finally block has been introduced to handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement. This again credits to the maintainability of the code.
Another great feature added to VB.NET is free threading against the VB single-threaded apartment feature. In many situations developers need spawning of a new thread to run as a background process and increase the usability of the application. VB.NET allows developers to spawn threads wherever they feel like, hence giving freedom and better control on the application.
Security has become more robust in VB.NET. In addition to the role-based security in VB6, VB.NET comes with a new security model, Code Access security. This security controls on what the code can access. For example you can set the security to a component such that the component cannot access the database. This type of security is important because it allows building components that can be trusted to various degrees.
The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for them.
14. Using ActiveX Control in .Net
ActiveX control is a special type of COM component that supports a User Interface. Using ActiveX Control in your .Net Project is even easier than using COM component. They are bundled usually in .ocx files. Again a proxy assembly is made by .Net utility AxImp.exe (which we will see shortly) which your application (or client) uses as if it is a .Net control or assembly.
Making Proxy Assembly For ActiveX Control: First, a proxy assembly is made using AxImp.exe (acronym for ActiveX Import) by writing following command on Command Prompt:
C:>AxImp  C:MyProjectsMyControl.ocx
This command will make two dlls, e.g., in case of  above command
MyControl.dll
AxMyControl.dll
The first file MyControl.dll is a .Net assembly proxy, which allows you to reference the ActiveX as if it were non-graphical object.
The second file AxMyControl.dll is the Windows Control, which allows u to use the graphical aspects of activex control and use it in the Windows Form Project.
Adding Reference of ActiveX Proxy Assembly in your Project Settings: To add a reference of ActiveX Proxy Assembly in our Project, do this:
o Select ProjectàAdd Reference (Select Add  Reference from Project Menu).
o This will show you a dialog box, select .Net  tab from the top of window.
o Click Browse button on the top right of  window.
o Select the dll file for your ActiveX Proxy Assembly (which is MyControl.dll) and click OK o Your selected component is now shown in the ‘Selected Component’ List Box. Click OK again Some More On Using COM or ActiveX in .Net
.Net only provides wrapper class or proxy assembly (Runtime Callable Wrapper or RCW) for COM or activeX control. In the background, it is actually delegating the tasks to the original COM, so it does not convert your COM/activeX but just imports them.
A good thing about .Net is that when it imports a component, it also imports the components that are publically referenced by that component. So, if your component, say MyDataAcsess.dll references ADODB.dll then .Net will automatically import that COM component too!
The Visual Studio.NET does surprise you in a great deal when u see that it is applying its intellisense (showing methods, classes, interfaces, properties when placing dot) even on your imported COM components!!!! Isn’t it a magic or what?
When accessing thru RCW, .Net client has no knowledge that it is using COM component, it is presented just as another C# assembly.
U can also import COM component thru command prompt (for reference see Professional C# by Wrox) U can also use your .Net components in COM, i.e., export your .net components (for reference see Professional C# by Wrox) -6
Wednesday, September 12, 2007
ASP Interview Questions and Answers Part - 4
What are the collections of  Session Object?
Contents collection contains all the variables  established for a session without using the tag.
Static collection contains  all the objects  created
What is the difference between ASP and HTML? Or Why ASP  is better than HTML?
- ASP executes code on the server  side  whereas the browser interprets HTML.
- ASP can use any scripting  languages
- Gets feedback from the user and return information to the  user
- Create pages that will be customized to display only things that will  be of interest to a particular user
- Can edit contents of a web page by  updating a text file or a database  rather than the HTML code itself
What are the  event handlers of Application Object?
Application_OnStart- This  event will be fired when the first visitor hits the page.
Application_OnEnd-  This event runs when the server  is stopped.
Name some of the ASP  components?
Ad Rotator component- a way to manage advertisements on  the  web  site.
Content Linker component - a technique to direct users through a set of pages on a web site by creating a list of URLs and description of the next and previous pages.
Browser Capabilities component - allows to customize the page  to the ability of the browser viewing it.
Database Access component - allows  to access  data  from the database
What are the tasks  performed by <> tags?
tags provides space for the user to  input values
the form has a button to submit information back to the  server
It transfers control to another ASP page
It carries the information  in the fields to another ASP page
What are  the tags necessary to be present within the tag ?
-----tag: Provides  input spaces (text  boxes, combo boxes, radio button, etc.) on a form called fields. It has three attributes TYPE, NAME and VALUE. TYPE provides the characteristics of the field and the NAME specifies a name to the field by which it can be referred.
What are the collections of  Application Object?
* Contents collection - contains all variables  added via scripts in global.asa.
* Static collection - contains the names of  all objects
How do you create a recordset  object in VBScript?
Answer1
//First of all declare a variable to  hold the Recordset object, ex-
Dim objRs
//Now, Create this varible as a  Recordset object, ex-
Set  objRs=Server.CreateObject(ADODB.RECORDSET)
Answer2
”  rs.MoveNext
wend
end if
%’>
*. Create Recordset object
*.  Place form field value in a variable named “param”
*. Define query by  concatenating strings and variable value
*. Open RecordSet Object. Note that the first parameter is the Command Text. The second parameter is the Connection String. The Command Object and Connection Object are created implicitly.
*.  Make sure the RecordSet isn’t empty
*. Begin executing a loop which goes  through all records in the RecordSet.
*. Write each record’s “firstname” and  “lastname” fields to the page on a separate line.
*. Move to Next  Record.
Explain the difference between POST  and GET Method.
GET requests are string data that is visible to the end user via the URL and a limit of 2kb, POST requests have no limit on total data and the user can’t see the data in a query string.
Why do we use Option Explicit?
Answer1
To avoid  multiple variables of the same name.
Answer2:
Correct answer is - This  statement force the declaration of variables in VB before using them.
How do you write an SQL insert  statement?
insert into tablename (fieldA, fieldB,  fieldC)Values(’dataA’, ‘dataB’, ‘dataC’);
How  can you have different number of cells for each row of a table in  HTML?
using colspan and rowspan
What variable can you use to share info across the whole  application for one user?
Use the sessions object
What is string concatenation function in  VBScript?
the ampersand symbol and ampersand space underscore across  multiple lines
How do you get the value of a  combo box in  Javascript?
Answer1.
document.forms[’formName’].elements[’comboName’].options[i].value
Answer2.
document.form_name.element_name.value
What is a class in CSS?
Answer1
A class  allows you to define different style characteristics to the same HTML  element.
Answer2
class is a child to the id, id should be used only once,  a css  class  can be used multiple times:
div id=”banner”
p class=”alert”
When inserting strings into a SQL table in ASP what is  the risk and how can you prevent it?
SQL Injection, to prevent you  probably need to use Stored Procedures instead of inline/incode SQL
Which is the default Data types in  VBScript?
Variant.
ASP Interview Questions and Answers Part - 3
ASP Interview Questions and Answers Part - 3
What is the function of  Buffer in Response Object?
Buffer controls the HTML output stream  manually.
How are scripts  executed?
ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the Delimiters.
What is ASP (Active  Server Pages)?
ASP is a server side-scripting environment for  building dynamic and interactive web pages. Since the scripts run on the server  side,  the web server does all the processing.
What  are ARRAYS?
Arrays are variables that store items of similar information.DIM ARRAY1(4) (declares an array with the name array1 with 5 elements)
What is  Application-scope?
Application-scope means that variables (and  objects) can be accessed from any ASP pages that is part of the  application.
What is Extranet?
An  area of a web site available only to a set of registered visitors.
What is a session?
A user accessing an  application is known as a session.
What is  ClientCertificate collection?
A ClientCertificate is an encrypted  number that is stored in a file on the user’s computer. This stores details of  any security  certificates included with the request.
What  do you need to run ASP?
A browser and a Web  server
What is the order of execution for an ASP  application?
1)  Global.asa
2) Server-side Includes
3) Jscript scripts tagged  within
What are the types of  HTML?
Static HTML Browser uses HTTP to request HTML file from the  Web Server
Dynamic HTML Browser uses HTTP to request an executable  application rather than a Static HTML file
What are the properties of Session Object?
SessionID  returns the session identification number for each user.
Timeout sets the  timeout period assigned to the Session object for any application, in  minutes.
CodePage determines the code page that will be used to display  content.
LCID a locale identifier, which determines time zone and language,  rules for the system
What are the event  handlers of Session Object?
Session _OnStart This event will be  fired when a new user begins a session with the web site.
Session_OnEnd This  event is called whenever a session terminates.
Name the ASP Objects?
Request Object
Response  Object
Server  Object
Session  Object
Application Object
What are the  advantages of using ASP?
Minimizes network traffic by limiting the  need for the browser and server  to talk to each other
Makes for quicker loading time since HTML pages are  only downloaded
Allows to run programs in languages that are not supported by  the browser
Can provide the client with data that does not reside on the  client’s machine
Provides improved security measures since the script cannot  be viewed by the browser
What are the methods  in Application Object?
Lock prevents clients from modifying the  variables stored in the Application object.
Unlock removes the lock from  variables stored in the Application object.
What are the methods in Application Object?
Internet  Information Server (IIS) on Windows NT
Personal Web Server (PWS) on Windows  95
Peer Web Services on Windows NT
What  are the browsers that can access ASP pages?
Internet Explorer  (supports VBScript, JavaScript)
Netscape Communicator/ Navigator (supports  only JavaScript, VBScript can be also added too)
What are the methods by which output stream is  controlled?
Flush sends previous buffered output to the client  immediately, but continues processing the script.
Clear erases any  already-buffered HTML.
End causes the server to stop processing the  script.
What are the methods by which output  stream is controlled?
What are the properties used to control the  expiration of the page?
Expires specifies the number of minutes before a page  cached on a browser expires.
ExpiresAbsolute sets the date and time at which  a page cached on a browser expires.
Monday, September 10, 2007
ASP Interview Questions and Answers Part - 2
ASP Interview Questions and Answers Part - 2
What is the Order of  precedence for LOGICAL Operators.
NOT, AND, OR, XOR, EQV,  IMP
What is an Err Object?
Name  it’s properties and methods.
What are LOCAL  and GLOBAL variables?
Local variables lifetime ends when the Procedure ends. Global variables lifetime begins at the start of the script and ends at the end of the script and it can be used by any procedure within the script. Declaring a variable by using the keyword PRIVATE makes the variable global within the script, but if declared using PUBLIC, then all scripts can refer the variable.
Which is the default  Scripting Language on the client side?
JavaScript
What is HTML(Hypertext Markup Language)?
It’s a  method by which web pages can be built and generally used for formatting and  linking text.
What is a Web  Server?
It’s a Computer that provides Web services on the Internet or on a local Intranet. It is designed to locate, address and send out simple HTML pages to all other users who access these pages.
What is Session  Object?
It stores information about a User’s session. Gives a  notification when a user session begins or ends.
What is Server-Side  includes?
It provides extra information by which it makes the site easier to manage. It can include text files using the #include statement, retrieve the size and last modification date of a file, defines how variables and error  messages  are displayed and inserts the values of HTTP variables in the page sent back to  the browser.
What is a FileSystemObject  object?
It provides access to the physical file system of the web server. It gets and manipulates information about all drives in a server, folders and sub-folders on a drive and files inside a folder.
What is a Scripting Language?
It permits to create more interactive Web Pages. Validation, formatting of web pages can be done. VBScript, JavaScript are some examples.
What is a Dictionary object?
It lets you store and retrieve information in a flexible data structure. Each value or information stored in a Dictionary is associated with a key through which the information can be retrieved.
What is Global.asa  file?
It is text file that contains details about an ASP  application,  such as when it should begin and end.
What is  an .ASP file?
It is a Text File that contains the combination of the  following:
Text
HTML tags
Script Commands
What is Response Object?
It controls the information  sent to the user. The various methods are:
Response.Write - Sends information  directly to a browser
Response.Redirect - Directs a user to a URL other than  the requested URL
Response.ContentType - Controls the type of content  sent
Response.Cookies - Sets cookie values
Response.Buffer - To Buffer  information
Naming constraints for a variable  ?
It can be up to 255 characters Must start with an alphabet Must  not contain an embedded period or full-stop
What is a TextStream object?
It allows you to  access(read/write) the contents of text files stored on  the  web  server.
What is IIS?
IIS is a Web Server that provides Web services, not only for web pages but also for ftp sites and video and audio services. It integrates with the database facilities of SQL Server.
What is Request  Object?
Gets information from the user. It has five collections by which values can be accessed. They are: Querystring, Form, Cookies, Server Variables & ClientCertificate
What are  the special sub-types in VBScript?
EMPTY:  has no value
NULL: Value does not exist (conjunction with  database)
OBJECT:
What is Cookies  collection?
Cookies are text files that store information about the user by which the web server identifies and marks each different visitor to a web site and determines where a user has been before. A cookie can store information only when the user sends it. Individual cookies are limited to 4KB of data. The maximum number of cookies allowed is 300.
Cookies are stored on  client’s machine.
What is the difference  between Cookies collection and Form/Querystring collection?
Cookie collection does not have the Count property. Cookies can have multiple values for the same cookie name but each value can be referred using a key whereas in a Form/Querystring cookie each value has to be referred using an index value.
What is Server  Object?
Controls the ASP execution environment. It can set the amount of time script can run before an error occurs. Converts a virtual path to a physical path on the server. Takes a user supplied string and encode it into proper format for a URL string.
What is  Collection?
Collection is a set of name/value pairs where the  information supplied by the client is stored.
How will you delete a Cookie?
By setting its Expires  property to any date prior to today Response.Cookies("cookie name"). Expires =  Date 1.
ASP Interview Questions and Answers Part - 1
ASP Interview Questions and Answers Part - 1
What is  ASP?
ASP stands for Active Server Pages. It is a server  side technology which is used to display dynamic content on web pages. For example you could write code that would give your visitors different information, different images or even a totally different page depending on what browser  version  they are using.
How can you disable the  browser to view the code?
Writing codes within the Tag
Question What is a "Virtual  Directory"?
Virtual  directories are aliases for directory paths on the server. It allows moving files on the disk between different folders, drives or even servers without changing the structure of web pages. It avoids typing an extremely long URL each time to access an ASP page.
Give the comment Tags for the following?
VBScript  : REM & ‘(apostrophe)
JavaScript : // (single line comment)
/* */  (Multi-line comments)
Which is the default  Scripting Language of ASP (server-side)?
VBScript
Which is the default Data types in  VBScript?
Variant is the default data type in VBScript, which can  store a value of any type.
What is a  variable?
Variable is a memory location through which the actual  values are stored/retrieved. Its value can be changed.
What is the maximum size of an array?
Up to 60  dimensions.
What is Querystring  collection?
This collection stores any values that are provided in  the URL. This can be generated by three methods:
By clicking on an anchor  tag
By  sending a form to the server by the GET method
Through user-typed HTTP  address
It allows you to extract data sent to the server using a GET  request.
What are the attributes of the tags?  What are their functions?
The two attributes are ACTION and  METHOD
The ACTION gives the name of the ASP file that should be opened next by which this file can access the information given in the form The METHOD determines which of the two ways (POST or GET) the browser can send the information to the server
What are the  methods in Session Object?
The Session Object has only one method, which is Abandon. It destroys all the objects stored in a Session Object and releases the server  resources  they occupied.
What is ServerVariables  collection?
The ServerVariables collection holds the entire HTTP  headers and also additional items of information about the server.
What is the difference between Querystring  collection and Form collection?
The main difference is that the  Querystring collection gets appended to a URL.
What is a Form collection?
The Form collection holds the values of the form elements submitted with the POST method. This is the only way to generate a Form collection.
What are  the ASP Scripting Objects?
The Dictionary object, the  FileSystemObject object, TextStream object.
What happens to a HTML  page?
The  browser makes a HTTP request; the server gives a HTTP response to the browser  and the browser converts into a HTML page.
What happens to ASP pages?
The browser makes a HTTP  request; the server does the processing and gives a HTML response to the  browser.
How can you change the primary  scripting language for a page?
Specify
What is application Object?
Shares information among  users of an application. Gives a notification when an application starts or  ends.
What is the difference between  client-side script and server-side script?
Scripts executed only by the browser without contacting the server is called client-side script. It is browser dependent. The scripting code is visible to the user and hence not secure. Scripts executed by the web server and processed by the server is called server-side script.
What is the command to  display characters to the HTML page?
Response.Write
Explain the POST & GET Method or Explain the  difference between them?
POST  METHOD:
The POST method generates a FORM collection, which is sent as a HTTP request body. All the values typed in the form will be stored in the FORM collection.
GET METHOD:
The GET method sends information by appending it to the URL (with a question mark) and stored as A Querystring collection. The Querystring collection is passed to the server as name/value pair.
The length of the URL should be less than 255  characters.
How many global.asa files can an  Application have?
Only one global.asa file and it’s placed in the  virtual directory’s root.
How many global.asa  files can an Application have?
Only one global.asa file and it’s  placed in the virtual directory’s root.
What  are Scripting Objects?
1. Which of the following languages is NOT included in the default .NET Framework installation?
o C#
o VB.NET
o JScript.NET
o VBScript.NET
Answer:
VBScript.NET
2. What are the different types of serialization supported in .NET Framework
o XmlSerializer
o SoapFormatter
o XPathNavigator
o HttpFormatter
Answer:
XmlSerializer
SoapFormatter
3 The CLR uses which format for assembly version numbers
o Major:Minor:Revision:Build
o Major:Build:Minor:Revision
o Major:Revision:Minor:Build
o Major:Minor:Build:Revision
Answer:
Major:Minor:Build:Revision
4 What tool is used to manage the GAC?
o GacMgr.exe
o GacSvr32.exe
o GacUtil.exe
o RegSvr.exe
Answer:
GacUtil.exe
5 State True or False: A single .NET dll can contain unlimited classes
• True
• False
Answer:
True
6 State True or False: ASP.NET can currently run only on Windows Platform
o True
o False
Answer:
True
7 Which one of the following best describes “Type-Safe”
o It ensures that the data type are safely handled
o It ensures that types are not mismatched when they are called so uses a typecasting before referencing any data object
o It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types
o All of the above
Answer:
It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types
8 The number of objects in ASP.NET is
6
7
9
10
Answer:
7
9 The code used to turn off buffering is
o Buffering = false
o OutputBuffer = false
o BufferOutput = false
o Buffer = Off
Answer:
Buffer=false
10 Can you have two applications on the same machine one which is using .NET Framework 1.1 and the other using 2.0 ?
o Yes
o No
o Depends on System configuration
Answer:
Yes
11 Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
o sn.exe
o certnet.exe
o certmgr.exe
o gacutil.exe
Answer:
certmgr.exe
12 You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used?
o certmgr.exe
o gacutil.exe
o sn.exe
o resgen.exe
Answer:
sn.exe
13 The object that contains all the properties and methods for every ASP.NET page, that is built is
o Page Object
o HTTPPage Object
o WebPage Object
o System.Web.UI.Page
Answer:
Page Object
14 In C#, which character is used to indicate a verbatim string literal?
o @
o !
o ”
o #
Answer:
@
15 Which of the following operators has the highest precedence?
o Pre Increment (++x)
o Shift bits left:
16 The uniqueId that gets generated at the start of the Session is stored in
o Client computer as a cookie
o Server machine
o Passed to and fro on each and every request and response
o Both a and b are correct
Answer:
Both a and b are correct
17 State True or False: C# supports multiple-inheritance
o True
o False
Answer:
False
18 Bitwise AND operator in C# is
o &
o &&
o AND
o XAND
Answer:
&
19 Bitwise OR operator in C# is
o OR
o ||
o |
o XOR
Answer:
|
20 What’s the .NET datatype that allows the retrieval of data by a unique key?
o Primary
o Integer
o Unique Identifier
o HashTable
Answer:
HashTable
21 The keyword ‘int’ maps to one of the following .NET types
System.Int16
System.Int32
System.Int64
System.Int128
Answer:
System.Int32
22 What can be achieved in IL which is not possible in C# ?
o Creation of an ArrayList
o Creation of a Dictionary
o Creation of a two dimensional array
o Creation of a non-zero based array
Answer:
Creation of a non-zero based array
23 Which of the following is the correct code for setting a Session timeout of 30 minutes
o Session.Timeout = 108000
o Session.Timeout = 1800
o Session.Timeout = 300
o Session.Timeout = 30
Answer:
Session.Timeout = 30