• +91 9723535972
  • info@interviewmaterial.com

ASP Interview Questions and Answers

ASP Interview Questions and Answers

Question - 71 : - What are the tags necessary to be present within the tag?

Answer - 71 : - -----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 - 72 : - What are the collections of Application Object?

Answer - 72 : - * Contents collection - contains all variables added via scripts in global.asa. * Static collection - contains the names of all objects.

Question - 73 : - How do you create a recordset object in VBScript?

Answer - 73 : - //First of all declare a variable to hold the Recordset object, ex- Dim objRs //Now, Create this varible as a Recordset object, ex- Set objRs=Server.CreateObject(ADODB.RECORDSET) ============= ” rs.MoveNext wend end if %’> *. Create Recordset object *. Place form field value in a variable named “param” *. Define query by concatenating strings and variable value *. Open RecordSet 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 RecordSet isn’t empty *. Begin executing a loop which goes through all records in the RecordSet. *. Write each record’s “firstname” and “lastname” fields to the page on a separate line. *. Move to Next Record.

Question - 74 : - Explain the difference between POST and GET Method ?

Answer - 74 : - 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 - 75 : - Why do we use Option Explicit?

Answer - 75 : - 1. To avoid multiple variables of the same name. 2. Correct answer is - This statement force the declaration of variables in VB before using them.

Question - 76 : - How do you write an SQL insert statement?

Answer - 76 : - insert into tablename (fieldA, fieldB, fieldC)Values(’dataA’, ‘dataB’, ‘dataC’);

Question - 77 : - How can you have different number of cells for each row of a table in HTML?

Answer - 77 : - using colspan and rowspan

Question - 78 : - What variable can you use to share info across the whole application for one user?

Answer - 78 : - Use the sessions object

Question - 79 : - What is string concatenation function in VBScript?

Answer - 79 : - the ampersand symbol and ampersand space underscore across multiple lines

Question - 80 : - How do you get the value of a combo box in Javascript?

Answer - 80 : - 1. document.forms[’formName’].elements[’comboName’].options[i].value 2. document.form_name.element_name.value  


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners