Verified Jobs Live
Question 1 of 10
00:00

Self-Rating:
\n a = 2\n \n <%\n Response.Write a\n %>\n\n\nIn the sample code shown above, what will be written to the\n\nscreen?\n\nA. 1\n\nB. 2\n\nC. 1, 2\n\nD. 1&2\n\nE. Nothing.\n\n \n\n2.
 \n <%\n   Set Application(\"Thing\") =\n   Server.CreateObject(\"THINGDOER.thingy\")\n   %>\n
\n\nThe above code appears in the global.asa file. What would it\n\naccomplish?\n\n \n\nA. It would create a \"Thing\" object and place it in Contents Collection of\n\n the Application object.\n\nB. It would create a \"Thing\" object and place it in StaticObjects\n\n Collection of the Application object.\n\nC. It would create a \"Thing\" object and place it in the Application.Buffer\n\n Collection Of the Application object. \n\nD. It would create an application-level variable named \"Thing\" with the\n\n value of the object property \"THINGDOER.thingy\". \n\nE. It would fail to create a \"Thing\" object because the code requires the\n\n Application.Lock and Application.Unlock methods.\n \n \n \n\n
\n
\n 3\n
\n

<% iPos = Instr(\"Hello World\",\"r\") %>

\n
Referring to the above, what is the value of iPos?\n\n \n\nA. 0\n\nB. 1\n\nC. 2\n\nD. 8\n\nE. 9
\n
\n
\n
\n\n
\n
\n 4\n
\n

<% varType = rsTest(\"field1\").type %>

\n
In the database table, if the datatype for field1 (shown\n\nabove) is Number, what is the value of varType?\n\n \n\nA. The field value.\n\nB. A string description.\n\nC. The field name.\n\nD. NULL.\n\nE. An enumerator.
\n
\n
\n
\n\n
\n
\n 5\n
\n

What is the program ID (ProgID) for ActiveX Data Objects in 2-tier and 3-tier database applications?

\n
A. ADO\n\nB. RDODB\n\nC. ADODB\n\nD. RDS\n\nE. OLEDB
\n
\n
\n
\n\n
\n
\n 6\n
\n

Which choice is NOT an ADO collection?

\n
A. Properties\n\nB. Records\n\nC. Fields\n\nD. Errors\n\nE. Parameters
\n
\n
\n
\n\n
\n
\n 7\n
\n

Which will NOT set the scope of an Active Server Component?

\n
A. Setting the [component name].scope property.\n\nB. Using the Server.CreateObject method.\n\nC. Placing it in the Session or Application OnStart event handler.\n\nD. Instantiating the component in the global.asa file.\n\nE. Using the
\n
\n
\n
\n\n
\n
\n 8\n
\n

How to handle Error in ASP

\n
A. Using On Error Goto \n\nB. Using On Error Resume \n\nC. Using On Error Resume Next\n\nD. Using On Error Goto 0
\n
\n
\n
\n\n
\n
\n 9\n
\n

<%

\n
intA = 3\n\n sStrA = \"Hello World\"\n\n sStrB = \"Hello World\" + intA\n\n Response.Write sStrB\n\n %>\n\n \n\nWhat would be the result of the above code?\n\n \n\nA. Type mismatch error\n\nB. \"Hello World, Hello World, Hello World\"\n\nC. 0\n\nD. \"Hello World 3\"\n\nE. \"Hello World\"
\n
\n
\n
\n\n
\n
\n 10\n
\n

What happens when a client submits a form which changes the

\n
value of an Application variable?\n\n \n\nA. Client actions cannot change Application variables.\n\nB. The change is not visible to any client until the application is stopped\n\nand started.\n\nC. The change is only visible to future requests made by that\n\nclient during their current session.\n\nD. The change is visible to all clients, but only after they\n\ncomplete their current sessions and begin a new session.\n\nE. The change is visible to all clients immediately after the\n\nform is processed by the server.
\n
\n
\n
\n\n
\n
\n 11\n
\n

ADO is an object model for accessing which of the

\n
following?\n\n \n\nA. Relational data via Jet.\n\nB. Local or SQL data via Jet.\n\nC. Relational data via ODBC.\n\nD. Non-relational data via DSN-less ODBC.\n\nE. All types of data via OLE DB.
\n
\n
\n
\n\n
\n
\n 12\n
\n

Which of the following are Server Object methods ( Choose Two)

\n
A. HTMLEncode,MapPath\n\nB. URLEncode,ScriptTimeout \n\nC. URLEncode,CreateObject\n\nD. ScriptTimeout,Abandon
\n
\n
\n
\n\n
\n
\n 13\n
\n

Following is the code Server.MapPath (\".\") consider the path is C:\\Inetpub\\WWWRoot\\MAT\\Default.asp. What will be the output

\n
A. C:\\InetPUb\n\nB. C:\\InetPUb\\WWWroot\n\nC. C:\\InetPUb\\wwwroot\\MAT\n\nD. Error
\n
\n
\n
\n\n
\n
\n 14\n
\n

ClientCertificate is a collection of

\n
A. Server\n\nB. Response\n\nC. Request \n\nD. ObjectContext
\n
\n
\n
\n","explanation_html":"Key interviewer evaluation criteria: Accuracy of syntax, architectural trade-offs, and clarity of practical examples in Windows.","code_snippet":"<%\n\n intA = 3\n\n sStrA = \"Hello World\"\n\n sStrB = \"Hello World\" + intA\n\n Response.Write sStrB\n\n %>","code_language":"text","difficulty":"Advanced","views_count":867,"likes_count":30,"last_reviewed":"2026-10-16 20:40:36","status":"published","meta_title":null,"meta_desc":null,"created_at":"2026-10-17 00:00:00","updated_at":"2026-10-17 07:25:49","summary":"ASP Interview Questions 1 a = 1 a = 2 In the sample code shown above, what will be written to the screen? A. 1 B. 2 C. 1, 2 D. 1&2 E. Nothing. 2. The above code appears in the g...","reading_time_mins":4,"evaluation_points":"[\"Explain trade-offs between memory, CPU, and network latency.\",\"Identify failure modes, boundary conditions, and scalability bottlenecks.\",\"Discuss caching strategies, data consistency models, and recovery.\"]","original_legacy_answer":"ASP Interview Questions \n1.\n\n
 \n  a = 1\n    \n   a = 2\n  \n  <%\n  Response.Write a\n  %>\n
\n\nIn the sample code shown above, what will be written to the\n\nscreen?\n\nA. 1\n\nB. 2\n\nC. 1, 2\n\nD. 1&2\n\nE. Nothing.\n\n \n\n2.
 \n <%\n   Set Application(\"Thing\") =\n   Server.CreateObject(\"THINGDOER.thingy\")\n   %>\n
\n\nThe above code appears in the global.asa file. What would it\n\naccomplish?\n\n \n\nA. It would create a \"Thing\" object and place it in Contents Collection of\n\n the Application object.\n\nB. It would create a \"Thing\" object and place it in StaticObjects\n\n Collection of the Application object.\n\nC. It would create a \"Thing\" object and place it in the Application.Buffer\n\n Collection Of the Application object. \n\nD. It would create an application-level variable named \"Thing\" with the\n\n value of the object property \"THINGDOER.thingy\". \n\nE. It would fail to create a \"Thing\" object because the code requires the\n\n Application.Lock and Application.Unlock methods.\n\n \n\n3.
<% iPos = Instr(\"Hello World\",\"r\") %>
\n\n Referring to the above, what is the value of iPos?\n\n \n\nA. 0\n\nB. 1\n\nC. 2\n\nD. 8\n\nE. 9\n\n \n\n4.
<% varType = rsTest(\"field1\").type %>
\n\nIn the database table, if the datatype for field1 (shown\n\nabove) is Number, what is the value of varType?\n\n \n\nA. The field value.\n\nB. A string description.\n\nC. The field name.\n\nD. NULL.\n\nE. An enumerator.\n\n \n\n5. What is the program ID (ProgID) for ActiveX Data Objects in 2-tier and 3-tier database applications?\n\n \n\nA. ADO\n\nB. RDODB\n\nC. ADODB\n\nD. RDS\n\nE. OLEDB\n\n \n\n6. Which choice is NOT an ADO collection?\n\n \n\nA. Properties\n\nB. Records\n\nC. Fields\n\nD. Errors\n\nE. Parameters\n\n \n\n7. Which will NOT set the scope of an Active Server Component?\n\n \n\nA. Setting the [component name].scope property.\n\nB. Using the Server.CreateObject method.\n\nC. Placing it in the Session or Application OnStart event handler.\n\nD. Instantiating the component in the global.asa file.\n\nE. Using the\n\n \n\n8. How to handle Error in ASP\n\n \n\nA. Using On Error Goto \n\nB. Using On Error Resume \n\nC. Using On Error Resume Next\n\nD. Using On Error Goto 0\n\n \n\n9. <%\n\n intA = 3\n\n sStrA = \"Hello World\"\n\n sStrB = \"Hello World\" + intA\n\n Response.Write sStrB\n\n %>\n\n \n\nWhat would be the result of the above code?\n\n \n\nA. Type mismatch error\n\nB. \"Hello World, Hello World, Hello World\"\n\nC. 0\n\nD. \"Hello World 3\"\n\nE. \"Hello World\"\n\n \n\n10. What happens when a client submits a form which changes the\n\nvalue of an Application variable?\n\n \n\nA. Client actions cannot change Application variables.\n\nB. The change is not visible to any client until the application is stopped\n\nand started.\n\nC. The change is only visible to future requests made by that\n\nclient during their current session.\n\nD. The change is visible to all clients, but only after they\n\ncomplete their current sessions and begin a new session.\n\nE. The change is visible to all clients immediately after the\n\nform is processed by the server.\n\n \n\n11. ADO is an object model for accessing which of the\n\nfollowing?\n\n \n\nA. Relational data via Jet.\n\nB. Local or SQL data via Jet.\n\nC. Relational data via ODBC.\n\nD. Non-relational data via DSN-less ODBC.\n\nE. All types of data via OLE DB.\n\n \n\n12. Which of the following are Server Object methods ( Choose Two)\n\nA. HTMLEncode,MapPath\n\nB. URLEncode,ScriptTimeout \n\nC. URLEncode,CreateObject\n\nD. ScriptTimeout,Abandon\n\n \n\n13. Following is the code Server.MapPath (\".\") consider the path is C:\\Inetpub\\WWWRoot\\MAT\\Default.asp. What will be the output\n\n \n\nA. C:\\InetPUb\n\nB. C:\\InetPUb\\WWWroot\n\nC. C:\\InetPUb\\wwwroot\\MAT\n\nD. Error\n\n \n\n14. ClientCertificate is a collection of\n\n \n\nA. Server\n\nB. Response\n\nC. Request \n\nD. ObjectContext","category_name":"Windows","category_slug":"windows","answer":"ASP Interview Questions \n
\n
\n 1\n
\n

\n
a = 1\n \n a = 2\n \n <%\n Response.Write a\n %>\n\n\nIn the sample code shown above, what will be written to the\n\nscreen?\n\nA. 1\n\nB. 2\n\nC. 1, 2\n\nD. 1&2\n\nE. Nothing.\n\n \n\n2.
 \n <%\n   Set Application(\"Thing\") =\n   Server.CreateObject(\"THINGDOER.thingy\")\n   %>\n
\n\nThe above code appears in the global.asa file. What would it\n\naccomplish?\n\n \n\nA. It would create a \"Thing\" object and place it in Contents Collection of\n\n the Application object.\n\nB. It would create a \"Thing\" object and place it in StaticObjects\n\n Collection of the Application object.\n\nC. It would create a \"Thing\" object and place it in the Application.Buffer\n\n Collection Of the Application object. \n\nD. It would create an application-level variable named \"Thing\" with the\n\n value of the object property \"THINGDOER.thingy\". \n\nE. It would fail to create a \"Thing\" object because the code requires the\n\n Application.Lock and Application.Unlock methods.
\n
\n
\n
\n\n
\n
\n 3\n
\n

<% iPos = Instr(\"Hello World\",\"r\") %>

\n
Referring to the above, what is the value of iPos?\n\n \n\nA. 0\n\nB. 1\n\nC. 2\n\nD. 8\n\nE. 9
\n
\n
\n
\n\n
\n
\n 4\n
\n

<% varType = rsTest(\"field1\").type %>

\n
In the database table, if the datatype for field1 (shown\n\nabove) is Number, what is the value of varType?\n\n \n\nA. The field value.\n\nB. A string description.\n\nC. The field name.\n\nD. NULL.\n\nE. An enumerator.
\n
\n
\n
\n\n
\n
\n 5\n
\n

What is the program ID (ProgID) for ActiveX Data Objects in 2-tier and 3-tier database applications?

\n
A. ADO\n\nB. RDODB\n\nC. ADODB\n\nD. RDS\n\nE. OLEDB
\n
\n
\n
\n\n
\n
\n 6\n
\n

Which choice is NOT an ADO collection?

\n
A. Properties\n\nB. Records\n\nC. Fields\n\nD. Errors\n\nE. Parameters
\n
\n
\n
\n\n
\n
\n 7\n
\n

Which will NOT set the scope of an Active Server Component?

\n
A. Setting the [component name].scope property.\n\nB. Using the Server.CreateObject method.\n\nC. Placing it in the Session or Application OnStart event handler.\n\nD. Instantiating the component in the global.asa file.\n\nE. Using the
\n
\n
\n
\n\n
\n
\n 8\n
\n

How to handle Error in ASP

\n
A. Using On Error Goto \n\nB. Using On Error Resume \n\nC. Using On Error Resume Next\n\nD. Using On Error Goto 0
\n
\n
\n
\n\n
\n
\n 9\n
\n

<%

\n
intA = 3\n\n sStrA = \"Hello World\"\n\n sStrB = \"Hello World\" + intA\n\n Response.Write sStrB\n\n %>\n\n \n\nWhat would be the result of the above code?\n\n \n\nA. Type mismatch error\n\nB. \"Hello World, Hello World, Hello World\"\n\nC. 0\n\nD. \"Hello World 3\"\n\nE. \"Hello World\"
\n
\n
\n
\n\n
\n
\n 10\n
\n

What happens when a client submits a form which changes the

\n
value of an Application variable?\n\n \n\nA. Client actions cannot change Application variables.\n\nB. The change is not visible to any client until the application is stopped\n\nand started.\n\nC. The change is only visible to future requests made by that\n\nclient during their current session.\n\nD. The change is visible to all clients, but only after they\n\ncomplete their current sessions and begin a new session.\n\nE. The change is visible to all clients immediately after the\n\nform is processed by the server.
\n
\n
\n
\n\n
\n
\n 11\n
\n

ADO is an object model for accessing which of the

\n
following?\n\n \n\nA. Relational data via Jet.\n\nB. Local or SQL data via Jet.\n\nC. Relational data via ODBC.\n\nD. Non-relational data via DSN-less ODBC.\n\nE. All types of data via OLE DB.
\n
\n
\n
\n\n
\n
\n 12\n
\n

Which of the following are Server Object methods ( Choose Two)

\n
A. HTMLEncode,MapPath\n\nB. URLEncode,ScriptTimeout \n\nC. URLEncode,CreateObject\n\nD. ScriptTimeout,Abandon
\n
\n
\n
\n\n
\n
\n 13\n
\n

Following is the code Server.MapPath (\".\") consider the path is C:\\Inetpub\\WWWRoot\\MAT\\Default.asp. What will be the output

\n
A. C:\\InetPUb\n\nB. C:\\InetPUb\\WWWroot\n\nC. C:\\InetPUb\\wwwroot\\MAT\n\nD. Error
\n
\n
\n
\n\n
\n
\n 14\n
\n

ClientCertificate is a collection of

\n
A. Server\n\nB. Response\n\nC. Request \n\nD. ObjectContext
\n
\n
\n
\n"}]; let currentIndex = 0; let masteredCount = 0; let secondsElapsed = 0; let timerInterval = null; function startTimer() { timerInterval = setInterval(() => { secondsElapsed++; const mins = String(Math.floor(secondsElapsed / 60)).padStart(2, '0'); const secs = String(secondsElapsed % 60).padStart(2, '0'); document.getElementById('sessionTimer').innerText = `${mins}:${secs}`; }, 1000); } function renderCurrentQuestion() { const q = sessionQuestions[currentIndex]; document.getElementById('currentQNum').innerText = currentIndex + 1; document.getElementById('qCategoryName').innerText = q.category_name || ''; document.getElementById('qTitle').innerText = q.question; document.getElementById('qDifficultyBadge').innerText = (q.difficulty || 'Medium') + ' Level'; document.getElementById('sessionNotes').value = ''; const answerBox = document.getElementById('activeAnswerBox'); answerBox.classList.add('hidden'); document.getElementById('toggleAnswerText').innerText = 'Reveal Model Answer & Solution'; document.getElementById('activeAnswerHtml').innerHTML = q.answer || q.answer_html || ''; if (currentIndex === sessionQuestions.length - 1) { document.getElementById('nextBtnText').innerText = 'Complete Session'; } else { document.getElementById('nextBtnText').innerText = 'Next Question'; } } function toggleActiveAnswer() { const box = document.getElementById('activeAnswerBox'); const text = document.getElementById('toggleAnswerText'); if (box.classList.contains('hidden')) { box.classList.remove('hidden'); text.innerText = 'Hide Model Solution'; } else { box.classList.add('hidden'); text.innerText = 'Reveal Model Answer & Solution'; } } function rateQuestion(isMastered) { if (isMastered) masteredCount++; const q = sessionQuestions[currentIndex]; // Automatically flag as practiced via background API call fetch('/interview-questions/api/practice/' + q.id, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ notes: document.getElementById('sessionNotes').value }) }).catch(console.error); nextQuestion(); } function nextQuestion() { currentIndex++; if (currentIndex >= sessionQuestions.length) { finishSession(); } else { renderCurrentQuestion(); } } function finishSession() { clearInterval(timerInterval); document.getElementById('practiceContainer').classList.add('hidden'); const sum = document.getElementById('summaryCard'); sum.classList.remove('hidden'); document.getElementById('summaryTotal').innerText = sessionQuestions.length; document.getElementById('summaryMastered').innerText = masteredCount; const mins = String(Math.floor(secondsElapsed / 60)).padStart(2, '0'); const secs = String(secondsElapsed % 60).padStart(2, '0'); document.getElementById('summaryTime').innerText = `${mins}:${secs}`; } document.addEventListener('DOMContentLoaded', () => { startTimer(); renderCurrentQuestion(); });