// enter the number of question
numQuestion=14

// declare multidimensional array to store questions, choices, and answers
Question = new Array();
ChoiceA = new Array();
ChoiceB = new Array();
ChoiceC = new Array();
ChoiceD = new Array();
ChoiceE = new Array();
Answer = new Array();

// data, this is the part that need to be modified
Question[0]='Which of the following is a common error in recordset programming?'
ChoiceA[0]="SQL statements are not valid"
ChoiceB[0]='Forget to open and/or close a recordset'
ChoiceC[0]='Trying to insert duplicate values for primary keys'
ChoiceD[0]='Table or field names are misspelled'
ChoiceE[0]='All of the above'
Answer[0]='E'

Question[1]='Which line of ASP code indicates that there are no more records?'
ChoiceA[1]='Rs.EOF'
ChoiceB[1]='Rs.Last'
ChoiceC[1]='Rs.MoveNext'
ChoiceD[1]='Rs.MoveLast'
Answer[1]='A'

Question[2]='Which line of ASP code frees up memory allocation on a particular recordset?'
ChoiceA[2]='Rs.Close'
ChoiceB[2]='Set Rs = Null'
ChoiceC[2]='Rs = Nothing'
ChoiceD[2]='None of the above'
Answer[2]='D'

Question[3]='Which code can be used to retrieve the value of a session variable?'
ChoiceA[3]='strTest = Session'
ChoiceB[3]='strTest = Session("name")'
ChoiceC[3]='strTest = Request.Session'
ChoiceD[3]='strTest = Request.Session("name")'
Answer[3]='B'

Question[4]='What is the default expiration time for a cookie and for a session?'
ChoiceA[4]='Cookie: on close, session: 30 minutes'
ChoiceB[4]='Cookie: on close, session: 20 minutes'
ChoiceC[4]='Cookie: 30 minutes, session: on close'
ChoiceD[4]='Cookie: 20 minutes, session: on close'
ChoiceE[4]='None of the above'
Answer[4]='B'

Question[5]='Which is/are not common application(s) of ASP?'
ChoiceA[5]='Updating records'
ChoiceB[5]='Searching through the database'
ChoiceC[5]='Adding new records'
ChoiceD[5]='Designing a database'
ChoiceE[5]='All of the above'
Answer[5]='D'

Question[6]='You can refer to a field using either its name or its index in the database.'
ChoiceA[6]='True'
ChoiceB[6]='False'
Answer[6]='A'

Question[7]='Which of the following describe the common steps in construction of ASP?'
ChoiceA[7]='Establish database connection'
ChoiceB[7]='Construct and manipulate recordset'
ChoiceC[7]='Create html skeleton'
ChoiceD[7]='B & C'
ChoiceE[7]='A & B & C'
Answer[7]='E'

Question[8]='One advantage of using ASP is that you can use include files (extension .inc).'
ChoiceA[8]='True'
ChoiceB[8]='False'
Answer[8]='A'

Question[9]='Which code is used to add new records when using a recordset?'
ChoiceA[9]='Rs.AddNew'
ChoiceB[9]='Rs.Update'
ChoiceC[9]='Rs.Save'
ChoiceD[9]='A & B'
ChoiceE[9]='A & C'
Answer[9]='D'

Question[10]='Which of the following can be used with ASP to create an online shopping cart or similar application?'
ChoiceA[10]='MS Access 2000 only'
ChoiceB[10]='a variety of databases'
ChoiceC[10]='a comma delimited text file'
ChoiceD[10]='B and C are correct'
ChoiceE[10]='All of the above are correct'
Answer[10]='D'

Question[11]='In order to run ASP using recordsets, you should include the adovbs.inc file.'
ChoiceA[11]='True'
ChoiceB[11]='False'
Answer[11]='A'

Question[12]='Which of the following is NOT a common error in ASP programming?'
ChoiceA[12]='Not declaring variables'
ChoiceB[12]='Using Option Explicit'
ChoiceC[12]='Declaring the same variable twice'
ChoiceD[12]='syntax errors'
ChoiceE[12]='All of the above are common ASP programming errors.'
Answer[12]='B'

Question[13]='Which of the following is a true statement?'
ChoiceA[13]='Although you can use ASP to read from text files, doing so has little value due to the lack of complexity offered by text files.'
ChoiceB[13]='When you have fewer than 200 records, a text file will usually be sufficient for your storage and retrieval needs.'
ChoiceC[13]='ASP cannot read from a text file, so you must use PHP instead.'
ChoiceD[13]='Both A and B are true statements.'
ChoiceE[13]='None of the above statements are true.'
Answer[13]='B'
