Tag: asp

Questions Related to asp

What must your ASP code have if you are using the DSN-less method of connecting?

  1. Connection object

  2. Connection string

  3. Both


Correct Option: C

Which connection method is this code using?...Dim dbConn Set dbConn = Server.CreateObject("ADOBD.Connection") dbConn.Connectionstring = "DSN=Quiz; uid=login; pwd=password" dbConn.Open

  1. DSN

  2. DSN-less

  3. Neither - the code is wrong


Correct Option: C

Which connection method is this code using?..Dim dbConn Set dbConn = Server.CreateObject("ADODB.Connection") dbConn.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};" & _ "DBQ=C:\wwwroot\username\database.mdb" dbConn.open

  1. DSN

  2. DSN-less

  3. Both A and B

  4. Neither - the code is wrong


Correct Option: D
  1. Connection string, connection object, close connection string, close connection object

  2. Connection object, connection string, close connection string, close connection object

  3. Connection object, connection string, close connection object, close connection string


Correct Option: B
  1. Allows you to include server executed code into any ASP application.

  2. Allows you to use one file in several different web pages.

  3. Allows you to use a piece of code more than once.

  4. All of the above


Correct Option: D
  1. HTML

  2. JavaScript

  3. VBScript

  4. Perl

  5. All of the above


Correct Option: E