Computer Knowledge
Database Management Systems
5,543 Questions
Database Management Systems (DBMS) form the core framework for data storage, retrieval, and security in modern software applications. Concepts such as the E-R model, backup planning, SQL integration, and big data architecture are essential for computer knowledge sections. This hub offers a comprehensive set of practice questions to master DBMS fundamentals and advanced database operations.
E-R Model ConceptsBackup and RecoverySQL Server UpgradesJDBC and ODBCBig Data CharacteristicsData VirtualizationOracle Database
Database Management Systems Questions
-
Database block
-
Database segment
-
Extent
-
Instance creation
-
Private SQL area
B
Correct answer
Explanation
It is a type of object that a user typically sees such as a table.
-
Type 1
-
Type 2
-
Type 3
-
Type 4
A
Correct answer
Explanation
The JDBC-ODBC bridge is classified as a Type 1 JDBC driver because it uses a native library (the ODBC driver) to bridge Java applications to databases. Type 1 drivers are JDBC-ODBC bridge drivers that translate JDBC calls into ODBC calls.
-
Type 3 only
-
Type 4 only
-
Both Type 3 and Type 4
-
Neither Type 3 nor Type 4
C
Correct answer
Explanation
Type 3 and Type 4 JDBC drivers are specifically designed for network communication. Type 3 drivers use a three-tier architecture where calls are translated to an intermediate middleware protocol, while Type 4 drivers are pure Java implementations that communicate directly with the database over the network using the database's native protocol.
D
Correct answer
Explanation
Sun Microsystems, the original creator of Java, defined four JDBC driver types: Type 1 (JDBC-ODBC bridge), Type 2 (Native API partly Java), Type 3 (Net protocol fully Java), and Type 4 (Native protocol fully Java). This classification system categorizes drivers based on their implementation approach and platform dependence.
-
Java Database Connectivity
-
Java Database Components
-
Java Database Control
-
None of the above is correct
A
Correct answer
Explanation
JDBC stands for Java Database Connectivity, which is the standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. This API allows Java applications to execute SQL statements and retrieve results from any database that provides a JDBC driver.
-
In the MySQL database metadata
-
In the MySQL database metasql
-
In the MySQL database mysql
-
None of the above is correct
C
Correct answer
Explanation
MySQL stores its metadata (system information about databases, tables, users, and privileges) in a system database called 'mysql'. This database contains tables like 'user', 'db', 'tables_priv', and others that store all the administrative and structural information about the MySQL server.
-
MySQL
-
JSP/SQL
-
JDBC/SQL
-
Sun ACCESS
A
Correct answer
Explanation
MySQL is an open-source relational database management system that runs on multiple platforms including UNIX, Linux, and Windows. It is widely used in web applications and is known for its reliability, speed, and ease of use. The other options (JSP/SQL, JDBC/SQL, Sun ACCESS) are not actual database products.
-
Type 1 only
-
Type 2 only
-
Both Type 3 and Type 4
-
All of Type 1, Type 2, Type 3 and Type 4
D
Correct answer
Explanation
When the web server and DBMS are on the same machine, all JDBC driver types can technically be used. Type 1 (JDBC-ODBC bridge) works locally, Type 2 (native API) can connect directly, and Types 3 and 4 (network protocols) can connect via localhost. The question's architecture constraint doesn't eliminate any driver type in this scenario.
-
Type 1
-
Type 2
-
Type 3
-
Type 4
A
Correct answer
Explanation
The JDBC-ODBC bridge is a Type 1 JDBC driver that provides JDBC access via ODBC drivers. Type 1 drivers are bridge drivers that translate JDBC calls into another database API (in this case, ODBC). Types 2, 3, and 4 use different architectures.
-
Type 3 only
-
Type 4 only
-
Both Type 3 and Type 4
-
Neither Type 3 nor Type 4
C
Correct answer
Explanation
Type 3 and Type 4 JDBC drivers are designed for network communication. Type 3 uses a middleware translation layer, and Type 4 is a pure Java driver that converts JDBC calls directly into the database's network protocol. Type 1 uses a bridge, and Type 2 uses native client libraries.
-
Java Database Connectivity
-
Java Database Components
-
Java Database Control
-
None of the above is correct
A
Correct answer
Explanation
JDBC stands for Java Database Connectivity, the Java API for connecting and executing queries on databases. It provides a standard interface for accessing various relational databases. Options B and C are incorrect - the official name uses 'Connectivity' not 'Components' or 'Control'.
D
Correct answer
Explanation
Sun defines four JDBC driver types: Type 1 (JDBC-ODBC bridge), Type 2 (native API partly Java), Type 3 (net protocol, pure Java), and Type 4 (native protocol, pure Java). Each type represents a different architecture for connecting Java applications to databases.
-
MySQL
-
JSP/SQL
-
JDBC/SQL
-
Sun ACCESS
A
Correct answer
Explanation
MySQL is a widely-used open-source relational database management system that is cross-platform compatible. It runs on UNIX, Linux, and Windows operating systems, making it a versatile choice for developers. The other options (JSP/SQL, JDBC/SQL, Sun ACCESS) are not actual DBMS products.
-
Type 1 only
-
Type 2 only
-
Both Type 3 and Type 4
-
All of Type 1, Type 2, Type 3 and Type 4
D
Correct answer
Explanation
When the Web server and DBMS run on the same machine, all four JDBC driver types (Type 1: JDBC-ODBC bridge, Type 2: Native API, Type 3: Net protocol, Type 4: Pure Java) can be used. The three-tier architecture with local co-location removes network restrictions that might limit some driver types. Type 4 drivers are most commonly preferred for being pure Java solutions.
-
In the MySQL database metadata
-
In the MySQL database metasql
-
In the MySQL database mysql
-
None of the above is correct
C
Correct answer
Explanation
MySQL stores its system metadata (information about databases, tables, users, privileges) in a system database called 'mysql'. This database contains critical tables like 'user', 'db', 'tables_priv', and others that manage access control and schema information. It's not stored in 'metadata' or 'metasql' databases.