Which are the MOST IMPORTANT ACTIVE SERVER PAGES INTERVIEW QUESTIONS? Experienced in Active Server Pages (asp)? Active Server Pages (asp)  is the Microsoft product that is first server side script engine that runs to provide dynamically generated  web pages. This is the classic version of ASP. Later, asp.NET came into existence and being used mostly. VBScript is used to write the code for ASP, even there are other languages where we can use like JScript and more. Good hands on knowledge on the ASP will put you ahead in interview. Every where, we can find job opportunities for this position. has interview questions which are exclusively designed for employees to assist them in clearing interviews. Active Server Pages (asp) interview questions and answers are useful for employees who are good at ASP.

We at provide free job alerts of freshers job drives. In this website we list on campus job openings for freshers and off campus job openings for freshers and also work from home job openings. This is the best website to apply for off campus drive in India. Visit our website for government job alerts and private job alerts. We also list free interview notes and study materials, one of the best interview study website.comfortable to face the interviews:

Question 1. What Is Asp?
Answer :
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.

Question 2. How Can You Disable The Browser To View The Code?
Answer :
Writing codes within the Tag.

Question 3. What Is A “virtual Directory”?
Answer :
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.

Question 4. Give The Comment Tags For The Following?
Answer :
VBScript: REM & ‘(apostrophe)
JavaScript: // (single line comment)
/* */ (Multi-line comments)

Question 5. Which Is The Default Scripting Language Of Asp (server-side)?
Answer :

Question 6. Which Is The Default Data Types In Vbscript?
Answer :
Variant is the default data type in VBScript, which can store a value of any type.

Question 7. What Is A Variable?
Answer :
Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.

Question 8. What Is The Maximum Size Of An Array?
Answer :
Up to 60 dimensions.

Question 9. What Is Query String Collection?
Answer :
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.

Question 10. What Are The Attributes Of The Tags? What Are Their Functions?
Answer :
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.

Question 11. What Are The Methods In Session Object?
Answer :
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.

Question 12. What Is Server Variables Collection?
Answer :
The Server Variables collection holds the entire HTTP headers and also additional items of information about the server.

Question 13. What Is The Difference Between Query String Collection And Form Collection?
Answer :
The main difference is that the Query string collection gets appended to a URL.

Question 14. What Is A Form Collection?
Answer :
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.

Question 15. What Are The Asp Scripting Objects?
Answer :
The Dictionary object, the FileSystemObject object, Text Stream objects.

Question 16. What Happens To A Html Page?
Answer :
The browser makes a HTTP request; the server gives a HTTP response to the browser and the browser converts into a HTML page.

Question 17. What Happens To Asp Pages?
Answer :
The browser makes a HTTP request; the server does the processing and gives a HTML response to the browser.

Question 18. What Is Application Object?
Answer :
Shares information among users of an application. Gives a notification when an application starts or ends.

Question 19. What Is The Difference Between Client-side Script And Server-side Script?
Answer :
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.

Question 20. What Is The Command To Display Characters To The Html Page?
Answer :
Response. Write

Question 21. Explain The Post & Get Method Or Explain The Difference Between Them?
Answer :
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.
The GET method sends information by appending it to the URL (with a question mark) and stored as A Query string collection. The Query string collection is passed to the server as name/value pair.
The length of the URL should be less than 255 characters.

Question 22. How Many Global.asa Files Can An Application Have?
Answer :
Only one global.asa file and it’s placed in the virtual directory’s root.

Question 23. What Are Scripting Objects?
Answer :
Objects that can enhance the application are known as the Scripting Objects.

Question 24. What Is The Order Of Precedence For Logical Operators?
Answer :







Question 25. What Is An Err Object?
Answer :
Name its properties and methods.

Question 26. What Are Local And Global Variables?
Answer :
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.

Question 27. Which Is The Default Scripting Language On The Client Side?
Answer :

Question 28. What Is Html (hypertext Markup Language)?
Answer :
It’s a method by which web pages can be built and generally used for formatting and linking text.

Question 29. What Is A Web Server?
Answer :
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.

Question 30. What Is Session Object?
Answer :
It stores information about a User’s session. Gives a notification when a user session begins or ends.

Question 31. What Is Server-side Includes?
Answer :
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, define how variables and error messages are displayed and insert the values of HTTP variables in the page sent back to the browser.

Question 32. What Is A File System Object Object?
Answer :
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.

Question 33. What Is A Scripting Language?
Answer :
It permits to create more interactive Web Pages. Validation, formatting of web pages can be done. VBScript, JavaScript are some examples.

Question 34. What Is A Dictionary Object?
Answer :
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.

Question 35. What Is Global.asa File?
Answer :
It is text file that contains details about an ASP application, such as when it should begin and end.

Question 36. What Is An .asp File?
Answer :
It is a Text File that contains the combination of the following:


HTML tags

Script Commands

Question 37. What Is Response Object?
Answer :
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.

Question 38. Naming Constraints For A Variable?
Answer :
It can be up to 255 characters must start with an alphabet must not contain an embedded period or full-stop.

Question 39. What Is A Text Stream Object?
Answer :
It allows you to access (read/write) the contents of text files stored on the web server.

Question 40. What Is Iis?
Answer :
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.

Question 41. What Is Request Object?
Answer :
Gets information from the user. It has five collections by which values can be accessed.
They are:

Query string



Server Variables 

Client Certificate.

Question 42. What Is Cookies Collection?
Answer :
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 4 KB of data. The maximum number of cookies allowed is 300.
Cookies are stored on client’s machine.

Question 43. What Is The Difference Between Cookies Collection And Form/query String Collection?
Answer :
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/Query string cookie each value has to be referred using an index value.

Question 44. What Is Server Object?
Answer :
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.

Question 45. What Is Collection?
Answer :
Collection is a set of name/value pairs where the information supplied by the client is stored.

Question 46. How Will You Delete A Cookie?
Answer :
By setting its Expires property to any date prior to today Response. Cookies(“cookie name”). Expires = Date 1.

Question 47. What Is The Function Of Buffer In Response Object?
Answer :
Buffer controls the HTML output stream manually.

Question 48. How Are Scripts Executed?
Answer :
ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the Delimiters.

Question 49. What Is Asp (active Server Pages)?
Answer :
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.

Question 50. What Are Arrays?
Answer :
Arrays are variables that store items of similar information.DIM ARRAY1 (4) (declares an array with the name array1 with 5 elements).

Question 51. What Is Application-scope?
Answer :
Application-scope means that variables (and objects) can be accessed from any ASP pages that are part of the application.

Question 52. What Are The Types Of Html?
Answer :
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.

Question 53. What Are The Properties Of Session Object?
Answer :

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.

Question 54. What Are The Event Handlers Of Session Object?
Answer :

Session _On Start 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.

Question 55. Name The Asp Objects?
Answer :

Request Object

Response Object

Server Object

Session Object

Application Object

Question 56. What Are The Advantages Of Using Asp?
Answer :

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 running 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.

Question 57. What Are The Methods In Application Object?
Answer :

Lock prevents clients from modifying the variables stored in the Application object.

Unlock removes the lock from variables stored in the Application object.

Question 58. What Are The Browsers That Can Access Asp Pages?
Answer :
Internet Explorer (supports VBScript, JavaScript).
Netscape Communicator/ Navigator (supports only JavaScript, VBScript can be also added too).

Question 59. How Does The Server Identify And Execute The Server-side Scripts Within Html Code?
Answer :
Including the RUNAT=SERVER attribute

Question 60. What Are The Methods By Which Output Stream Is Controlled?
Answer :

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.

Question 61. What Are The Properties Used To Control The Expiration Of The Page?
Answer :

Expires specifies the number of minutes before a page cached on a browser expires.

Expires Absolute sets the date and time at which a page cached on a browser expires.

Question 62. What Are The Collections Of Session Object?
Answer :
Contents collection contains all the variables established for a session without using the tag.
Static collection contains all the objects created.

Question 63. What Is The Difference Between Asp And Html? Or Why Asp Is Better Than Html?
Answer :

ASP execute 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.

Question 64. What Are The Event Handlers Of Application Object?
Answer :
Application_OnStart- This event will be fired when the first visitor hits the page.
Application_OnEnd- This event runs when the server is stopped.

Question 65. What Are The Tasks Performed By < Form > Tags?
Answer :

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.

Question 66. What Are The Tags Necessary To Be Present Within The <form > Tag?
Answer :
—–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.

Question 67. What Are The Collections Of Application Object?
Answer :
Contents collection – contains all variables added via scripts in global.asa.
Static collection – contains the names of all objects.

Question 68. How Do You Create A Record Set Object In Vbscript?
Answer :
end if

Create Record set object.

Place form field value in a variable named “param”.

Define query by concatenating strings and variable value.

Open Record Set 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 Record Set isn’t empty.

Begin executing a loop which goes through all records in the Record Set.

Write each record’s “first name” and “last name” fields to the page on a separate line.

Move to Next Record.

Question 69. Explain The Difference Between Post And Get Method?
Answer :
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.

Question 70. Why Do We Use Option Explicit?
Answer :
This statement forces the declaration of variables in VB before using them.

Question 71. How Do You Write An Sql Insert Statement?
Answer :
Insert into table name (field, field, field) Values (’dataA’, ‘dataB’, ‘dataC’);

Question 72. How Can You Have Different Number Of Cells For Each Row Of A Table In Html?
Answer :
Using colspan and rowspan.

Question 73. What Variable Can You Use To Share Info Across The Whole Application For One User?
Answer :
Use the sessions object

Question 74. What Is String Concatenation Function In Vbscript?
Answer :
The ampersand symbol and ampersand space underscore across multiple lines.

Question 75. How Do You Get The Value Of A Combo Box In Javascript?
Answer :
document.forms [’formName’].elements [’combo Name’].options[i].value

Question 76. What Is A Class In Css?
Answer :
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”

Question 77. When Inserting Strings Into A Sql Table In Asp What Is The Risk And How Can You Prevent It?
Answer :
SQL Injection, to prevent you probably needs to use Stored Procedures instead of inline/in code SQL.

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!