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. 

Comments

Popular posts from this blog

.Net Database Interview Questions&Answers Part 2

Important HR Interview Questions Part 2

JAVA Interview Questions&Answers Part 1