Machine-translated by Google. Questions are authored in English.
Top

ODBC, OLE DB, ADO, and ASP Questions and Answers

31.

A OLE DB collection is an object that contains a group of other objects.

Answer: A

Correct answer: True

A collection is an object whose purpose is to hold a group of other objects, so that they can be counted, iterated over and reached by index or name. The errors collection on an ADO connection is the familiar example. Collections sit alongside properties and methods as the three things an object exposes.

Please log in or register to report this question.

32.

Users of OLE DB functionality are referred to as data providers.

Answer: B

Correct answer: False

The terms are the wrong way round. A provider supplies data through OLE DB interfaces; a consumer uses it. Users of OLE DB functionality are therefore data consumers. The two roles can be held at once - a service provider consumes from below and provides above - which is what lets providers be chained.

Please log in or register to report this question.

33.

The driver manager processes ODBC requests and submits specific SQL statements to a given type of data source.

Answer: B

Correct answer: False

This describes the driver, not the driver manager. The driver is the DBMS-specific component that turns ODBC requests into statements the particular data source understands. The driver manager’s job is to decide which driver a named data source requires, load it, and pass the calls through to it.

Please log in or register to report this question.

34.

In OLE DB, actions that an object can perform are called:

Answer: C

Correct answer: methods.

In the object model an object has properties, which are the characteristics it exposes, and methods, which are the actions it can perform. A collection is an object that contains a group of other objects. The vocabulary matters because an OLE DB interface is defined precisely as the set of objects it exposes together with their properties and methods.

Please log in or register to report this question.

35.

An application that uses the ODBC interface could process any database that is ODBC-compliant without any program coding changes.

Answer: A

Correct answer: True

This is the whole purpose of the interface. The application issues standard ODBC calls and names a data source; the driver manager loads the appropriate driver, and the driver translates those calls for the particular DBMS. Point the data source at a different compliant database and the application works against it unchanged.

Please log in or register to report this question.

Answer: D

Correct answer: All of the above as goals of OLE DB.

All three were stated aims. Breaking DBMS functionality into object interfaces means a provider need implement only the pieces it can support; that flexibility lets a simple source expose a little and a full DBMS expose a great deal; and putting an object interface over any type of data extends the model beyond relational databases to spreadsheets, mail stores and files.

Please log in or register to report this question.

37.

The process of defining a system data source name involves specifying the type of driver and the identity of the database to be processed.

Answer: A

Correct answer: True

Defining a system data source name means telling ODBC two things: which driver to load, and which database that driver is to work with, together with whatever connection details it needs. Once both are recorded, an application need only name the data source, and the driver manager does the rest.

Please log in or register to report this question.

38.

________ is a simple object model that is easier to understand and use than OLE DB, and is frequently used for database applications.

Answer: D

Correct answer: ADO

ADO, ActiveX Data Objects, is a thin object model over OLE DB with only a handful of objects - connection, command, recordset, errors - which makes it far easier to learn than OLE DB itself. Its purpose is to make OLE DB reachable from scripting languages and from ordinary application code without the complexity of the underlying COM interfaces.

Please log in or register to report this question.

39.

ODBC identifies two types of drivers: single tier and multiple-tier.

Answer: A

Correct answer: True

ODBC does identify exactly these two kinds. A single-tier driver processes both the ODBC calls and the file access itself, which is how a driver for a simple file format such as a spreadsheet works. A multiple-tier driver passes SQL to a separate DBMS, which does the processing, and is the arrangement used for a client-server database.

Please log in or register to report this question.

40.

When using ODBC, which of the following serves as an intermediary between the application and the DBMS drivers?

Answer: C

Correct answer: Driver manager

The driver manager is the intermediary: the application calls it, and it determines which driver the requested data source needs, loads it, and passes the calls through. That indirection is what lets one application work with any compliant DBMS - the application never names a driver, only a data source.

Please log in or register to report this question.

Loading…
Tags: ODBC, OLE DB, ADO, and ASP Questions and Answers || ODBC, OLE DB, ADO, and ASP MCQ Questions and Answers || ODBC, OLE DB, ADO, and ASP GK Questions and Answers || ODBC, OLE DB, ADO, and ASP GK MCQ Questions || ODBC, OLE DB, ADO, and ASP Multiple Choice Questions and Answers || ODBC, OLE DB, ADO, and ASP GK || GK on ODBC, OLE DB, ADO, and ASP || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database