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
-
Index, Page,Table
-
Page, Table, Tablesapce
-
Page,Index,Tablespace
-
None of the above
B
Correct answer
Explanation
DB2 supports locking at multiple levels of granularity to manage concurrency, specifically at the Page, Table, and Tablespace levels.
-
SYSCHK DD statement
-
CHCKPOINT DD statement
-
CHKOUT DD statement
-
CHECK or DD statement
A
Correct answer
Explanation
SYSCHK is the DD statement in JCL used to specify the dataset where program checkpoints are stored for restart capability. The other options (CHCKPOINT, CHKOUT, CHECK) are not valid JCL DD statements for checkpoint storage.
-
strings, numbers, BooBoos, and nulls
-
strings, text, Booleans, and nulls
-
strings, numbers, Booleans, and nulls
-
strings, numbers, Booleans, and zeros
C
Correct answer
Explanation
JavaScript has four basic primitive data types: strings (text), numbers (numeric values), Booleans (true/false), and null (absence of value). Option A has BooBoos (typo), Option B has text (not strings), and Option D has zeros (not null).
-
Index, Page,Table
-
Page, Table, Tablesapce
-
Page,Index,Tablespace
-
None of the above
B
Correct answer
Explanation
In DB2, locking can occur at various levels of granularity to balance concurrency and overhead. The standard locking levels available are Page, Table, and Tablespace.
-
SYSCHK DD statement
-
CHCKPOINT DD statement
-
CHKOUT DD statement
-
CHECK or DD statement
A
Correct answer
Explanation
Program checkpoints for restart purposes are stored using the SYSCHK DD statement. SYSCHK defines the dataset(s) where checkpoint information is written during execution and read during restart. The other options (CHCKPOINT, CHKOUT, CHECK) are not valid JCL DD statement names for checkpoints. SYSCHK is the standard mechanism for checkpoint/restart functionality in batch jobs.
-
strings, numbers, BooBoos, and nulls
-
strings, text, Booleans, and nulls
-
strings, numbers, Booleans, and nulls
-
strings, numbers, Booleans, and zeros
C
Correct answer
Explanation
In JavaScript, the fundamental primitive data types include strings, numbers, Booleans, and nulls. Other options contain fictitious types like 'BooBoos' or incorrect classifications like 'zeros'.
-
JDBC is an API to connect to relational-, object- and XML data sources
-
JDBC stands for Java DataBase Connectivity
-
JDBC is an API to access relational databases, spreadsheets and flat files
-
JDBC is an API to bridge the object-relational mismatch between OO programs and relational
B,C
Correct answer
Explanation
JDBC stands for Java Database Connectivity, so option B is correct. JDBC is primarily an API for accessing relational databases, but it can also work with tabular data sources like spreadsheets and flat files through the JDBC-ODBC bridge or specific drivers, making option C correct. Option A is incorrect because JDBC is specifically designed for relational and tabular data, not XML or arbitrary object databases. Option D describes ORM tools like Hibernate, not JDBC itself.
-
java.jdbc and javax.jdbc
-
java.jdbc and java.jdbc.sql
-
java.sql and javax.sql
-
java.rdb and javax.rdb
C
Correct answer
Explanation
The standard JDBC classes and interfaces are located in the core Java SE packages java.sql (for basic database access) and javax.sql (for advanced features like data sources and connection pooling).
-
Type 1 driver
-
Type 2 driver
-
Type 3 driver
-
Type 4 driver
A
Correct answer
Explanation
JDBC-ODBC Bridge Driver (Type 1) provides JDBC access through one or more ODBC drivers. It acts as a bridge between JDBC calls and ODBC drivers, essentially converting JDBC calls to ODBC calls. Type 2 uses native libraries, Type 3 is a middleware driver, and Type 4 is pure Java direct to database.
-
Type 1 driver
-
Type 2 driver
-
Type 3 driver
-
Type 4 driver
D
Correct answer
Explanation
Type 4 driver converts JDBC calls directly into the database's native network protocol, requiring no middleware or native libraries. It's a pure Java driver that communicates directly with the database. Type 1 uses ODBC, Type 2 uses native libraries, and Type 3 uses middleware.
-
A DataSource is the basic service for managing a set of JDBC drivers
-
A DataSource is the Java representation of a physical data source
-
A DataSource is a registry point for JNDI-services
-
A DataSource is a factory of connections to a physical data source
D
Correct answer
Explanation
A DataSource in JDBC is a factory object that provides connections to a physical data source. It offers advantages over DriverManager: connection pooling, distributed transaction support, and easier deployment configuration. It represents (is) the factory, not the source itself, a driver manager, or a JNDI registry point.
-
emctl start dbconsole
-
start dbconsole
-
dbconsole start
-
emctl dbconsole start
A
Correct answer
Explanation
The emctl utility is Oracle Enterprise Manager's command-line interface for managing the DB Console service. The correct syntax is 'emctl start dbconsole' which starts the web-based Enterprise Manager console for a specific database. Options B and C are incomplete commands missing the emctl prefix, while D has incorrect parameter order.
-
$ORACLE_HOME/sysman/install
-
$ORACLE_HOME/install
-
$ORACLE_HOME/rdbms/admin/install
-
$ORACLE_HOME/dbs/install
B
Correct answer
Explanation
In Oracle Database installations, the default location for the portlist.ini file, which lists the ports assigned to various Oracle components, is the $ORACLE_HOME/install directory.
-
Frameset Properties
-
Database properties
-
Document Properties
-
Navigator Properties
B
Correct answer
Explanation
In Lotus Notes, the database launch option (including opening in a frameset) is specified in Database Properties under the 'Launch' tab. Frameset Properties controls display within the frameset, not what opens when the database launches. Document and Navigator Properties are unrelated.
-
Indexes
-
Hints
-
Tables
-
Bitmaps
A,C
Correct answer
Explanation
Partitioning is a database feature that divides large tables or indexes into smaller, more manageable pieces. Both indexes (A) and tables (C) can be partitioned in database systems like Oracle and MySQL. Bitmaps (D) are index structures, not partitionable objects themselves. Hints (B) are query directives, not database objects that get partitioned.