ASP Interview Questions and Answers
Question - 31 : - What is Session Object?
Answer - 31 : - It stores information about a User’s session. Gives a notification when a user session begins or ends.
Question - 32 : - What is Server-Side includes?
Answer - 32 : - 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.
Question - 33 : - What is a FileSystemObject object?
Answer - 33 : - 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 - 34 : - What is a Scripting Language?
Answer - 34 : - It permits to create more interactive Web Pages. Validation, formatting of web pages can be done. VBScript, JavaScript are some examples.
Question - 35 : - What is a Dictionary object?
Answer - 35 : - 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 - 36 : - What is Global.asa file?
Answer - 36 : - It is text file that contains details about an ASP application, such as when it should begin and end.
Question - 37 : - What is an .ASP file?
Answer - 37 : - It is a Text File that contains the combination of the following:
Text
HTML tags
Script Commands
Question - 38 : - What is Response Object?
Answer - 38 : - 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 - 39 : - Naming constraints for a variable ?
Answer - 39 : - It can be up to 255 characters Must start with an alphabet Must not contain an embedded period or full-stop
Question - 40 : - What is a TextStream object?
Answer - 40 : - It allows you to access(read/write) the contents of text files stored on the web server.