ASP.NET Interview Questions and answers
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 [sociallocker]
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)
/* */ (Multi-line comments)
Question.5 Which is the default Scripting Language of ASP (server-side)?
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 ServerVariables collection?
Answer: The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.
Question.13 What is the difference between Querystring collection and Form collection?
Answer: The main difference is that the Querystring 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, TextStream object.
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.
Get Register For ASP Net Online Course