Difficulty: Easy
Correct Answer: Both 1 and 3 above are included in the ODBC core API.
Explanation:
Introduction / Context:ODBC (Open Database Connectivity) defines a portable C-based API for talking to many database systems through drivers. The API is grouped into tiers: Core, Level 1, and Level 2. Knowing what the core API guarantees helps developers write portable code that connects, executes SQL, fetches results, and manages transactions consistently across DBMS vendors.
Given Data / Assumptions:
Concept / Approach:
The ODBC core API covers fundamental functions such as environment and connection handle allocation, connecting to data sources (for example, SQLConnect), executing statements, fetching rows, binding columns, and transaction control (for example, committing or rolling back via SQLTransact or equivalent calls). These are the baseline features an application can rely on without requiring Level 1 or Level 2 support.
Step-by-Step Solution:
Identify the essential developer tasks: connect to the DB and ensure ACID with commit/rollback.Map these to ODBC core capabilities: SQLConnect/SQLDriverConnect (establish sessions) and transaction APIs (commit or rollback work units).Conclude that both “connect to data sources” and “commit/rollback” are included in the core API set.Reject answers that restrict core to one function family only.Verification / Alternative check:
ODBC references list connecting and transaction control among the foundational operations, while features like scrollable cursors are higher-level (Level 2) and not required for minimal portability.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Both 1 and 3 above are included in the ODBC core API.
Discussion & Comments