Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5079) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5079) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5079) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 20

Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5079) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 21
Home » Education » ASP 3.0 Interview FAQs
Asp3.0 FAQs

ASP 3.0 Interview FAQs

Please  read ASP 3.0 Interview FAQsAsp3.0 FAQs

1. How can you disable the browser to view the code?

Writing codes within the Tag

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

3. Give the comment Tags for the following?

VBScript : REM & ‘(apostrophe)
JavaScript : // (single line comment)
/* */ (Multi-line comments)

4. Which is the default Scripting Language of ASP (server-side)?


5. Which is the default Data types in VBScript?

Variant is the default data type in VBScript, which can store a value of any type.

6. What is a variable?

Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.

7. What is the maximum size of an array?

Up to 60 dimensions.

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

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

10. 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.
11. What is ServerVariables collection?

The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.

12. What is the difference between Querystring collection and Form collection?

The main difference is that the Querystring collection gets appended to a URL.

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

20. What is the command to display characters to the HTML page?


21. Explain the POST & GET Method or Explain the difference between them?

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

22. How many global.asa files can an Application have?

Only one global.asa file and it’s placed in the virtual directory’s root.

23. How many global.asa files can an Application have?

Only one global.asa file and it’s placed in the virtual directory’s root.

24. What are Scripting Objects?

Objects that can enhance the application are known as the Scripting Objects.

25. What is the Order of precedence for LOGICAL Operators.


26. What is an Err Object?

Name it’s properties and methods.

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

28. Which is the default Scripting Language on the client side?


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

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

31. What is Session Object?

It stores information about a User’s session. Gives a notification when a user session begins or ends.

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

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

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

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

36. What is Global.asa file?

It is text file that contains details about an ASP application, such as when it should begin and end.

37. What is an .ASP file?

It is a Text File that contains the combination of the following:
HTML tags
Script Commands

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

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

40. What is a TextStream object?

It allows you to access(read/write) the contents of text files stored on the web server.

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

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

43. What are the special sub-types in VBScript?

EMPTY: has no value
NULL: Value does not exist (conjunction with database)

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

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

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

47. What is Collection?

Collection is a set of name/value pairs where the information supplied by the client is stored.

48. How will you delete a Cookie?

By setting its Expires property to any date prior to today Response.Cookies(“cookie name”). Expires = Date 1.

49. What is the function of Buffer in Response Object?

Buffer controls the HTML output stream manually.

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

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

52. 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)

53. What is Application-scope?

Application-scope means that variables (and objects) can be accessed from any ASP pages that is part of the application.

Check Also

ASP.NET Interview FAQs

What is view state and use of it? The current property settings of an ASP.NET …