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

Multiple choice
  1. Type 1

  2. Type 2

  3. Type 3

  4. Type 4

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Type 3 only

  2. Type 4 only

  3. Both Type 3 and Type 4

  4. Neither Type 3 nor Type 4

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. One

  2. Two

  3. Three

  4. Four

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Java Database Connectivity

  2. Java Database Components

  3. Java Database Control

  4. None of the above is correct

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. In the MySQL database metadata

  2. In the MySQL database metasql

  3. In the MySQL database mysql

  4. None of the above is correct

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. MySQL

  2. JSP/SQL

  3. JDBC/SQL

  4. Sun ACCESS

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Type 1 only

  2. Type 2 only

  3. Both Type 3 and Type 4

  4. All of Type 1, Type 2, Type 3 and Type 4

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Type 1

  2. Type 2

  3. Type 3

  4. Type 4

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Type 3 only

  2. Type 4 only

  3. Both Type 3 and Type 4

  4. Neither Type 3 nor Type 4

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Java Database Connectivity

  2. Java Database Components

  3. Java Database Control

  4. None of the above is correct

Reveal answer Fill a bubble to check yourself
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'.

Multiple choice
  1. One

  2. Two

  3. Three

  4. Four

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. MySQL

  2. JSP/SQL

  3. JDBC/SQL

  4. Sun ACCESS

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Type 1 only

  2. Type 2 only

  3. Both Type 3 and Type 4

  4. All of Type 1, Type 2, Type 3 and Type 4

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. In the MySQL database metadata

  2. In the MySQL database metasql

  3. In the MySQL database mysql

  4. None of the above is correct

Reveal answer Fill a bubble to check yourself
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.