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
-
Oracle Net Manager.
-
Data Pump.
-
Oracle Universal Installer (OUI).
-
Oracle Enterprise Manager.
-
Database Configuration Assistant (DBCA).
-
Object level.
-
Row level.
-
Block level.
-
Schema level.
-
Database level.
A,B
Correct answer
Explanation
Object-level (table-level) and row-level locks are the primary locking levels used by Oracle Database to ensure data concurrency and integrity during transactions. Block-level and schema-level locks are not standard transaction-level locks, and database-level locking is only used for database-wide operations rather than typical user transactions.
-
Loss of the initialization parameter file.
-
One of the redo log members.
-
Any data file belonging to the default permanent tablespace
-
Any archive log file.
-
Any control file.
E
Correct answer
Explanation
Control files contain critical metadata about the database structure and are essential for database operation. If any control file is lost, the database instance will shut down because it cannot access the necessary information to manage the database. While Oracle recommends multiplexing (having multiple control files), losing one affects the database's ability to function. The other options - parameter file, redo log members, data files, and archive logs - have different failure characteristics that don't always cause immediate shutdown.
-
It is possible to have tablespaces of different block sizes in a database.
-
A data block is the smallest unit of I/O for data files.
-
Multiple tablespaces can share single data file.
-
Each data block in the database always corresponds to one OS block
-
Each segment contains one or more extents.
A,B,E
Correct answer
Explanation
Oracle's logical database structure supports multiple block sizes within the same database (A). The data block is indeed the smallest unit of I/O for data files (B). Multiple tablespaces cannot share a single data file (C is false) - each data file belongs to exactly one tablespace. Data blocks don't always correspond one-to-one with OS blocks (D is false). Each segment is composed of one or more extents (E).
-
Data files and redo log files can be renamed at the MOUNT stage
-
Control files are required to bring the database to the NOMOUNT stage.
-
Data files and online redo log files are checked for consistency while opening the database
-
Data files and redo log files are made available to users at the OPEN stage.
A,C,D
Correct answer
Explanation
During database startup: At the MOUNT stage, data files and redo log files can be renamed (A). Control files are NOT required for NOMOUNT stage - they're needed for MOUNT stage (B is false). During the OPEN stage, data files and online redo log files are checked for consistency (C). At the OPEN stage, these files become available to users (D). The NOMOUNT stage only starts the instance without accessing control files.
-
SQL query in Hyperion
-
SQL query in Informatica
-
SQL Query on DWH data
-
SQL Query in Datastage
C
Correct answer
Explanation
The 'LR' data is generated by executing SQL queries directly on the Data Warehouse (DWH) data, not through intermediate tools like Hyperion, Informatica, or Datastage. This direct SQL approach on consolidated warehouse data is the standard method for generating such reports.
-
COMPILE
-
BIND
-
TRANSLATE
-
LINK
B
Correct answer
Explanation
BIND is the DB2 process that reads SQL statements from an application plan and creates or updates access paths (indexes, package structures) in the DB2 catalog. It validates SQL syntax, checks permissions, and optimizes query plans, effectively building the bridge between application code and database tables.
-
using SqlClientAlias = System.Data.SqlClient;
-
using System.Data.SqlClient SqlClientAlias;
-
using System.Data.SqlClient @SqlClientAlias;
-
We can't create alias for a namespace.
A
Correct answer
Explanation
In C#, you can create an alias for a namespace using the syntax 'using AliasName = Namespace.Path;'. This is called a 'using alias' and helps avoid naming conflicts or simplify long namespace names. Option A shows the correct syntax, while options B and C have the order reversed or incorrect syntax.
-
JDBC Connection
-
ODBC Connection
-
RESTFUL API
-
Flat file
C
Correct answer
Explanation
Social networking sites typically expose their data through RESTful APIs (Representational State Transfer). REST APIs provide a standardized way for applications to interact with web services using HTTP methods like GET, POST, PUT, DELETE. While some sites might use other methods internally, RESTful API is the standard public interface. JDBC and ODBC are database connection protocols, not web APIs.
-
ORACLE 11G
-
ORACLE 10G
-
ORACLE 9I
-
ORACLE 9G
-
ORACLE 11I
-
ORACLE 8I
A
Correct answer
Explanation
INTERVAL partitioning was introduced in Oracle Database 11g Release 1 as a new feature. This automatic partition creation method was not available in Oracle 10g or any earlier versions, making it an 11g-specific capability.
-
DB_CREATE_FILE_DEST
-
DB_CREATE_ONLINE_LOG_n
-
USER_DUMP_DEST
-
LOG_ARCHIVE_DEST
-
They indicate an optimized execution plan.
-
They may be able to be tuned to use an index
-
The full-table scan should be normalized from the database design
-
A full-table scan is always sub-optimal.
B
Correct answer
Explanation
Full-table scans on large tables consume significant I/O and CPU resources. Identifying them allows you to investigate whether adding appropriate indexes could improve performance. However, scans aren't always sub-optimal - for small tables or when most rows are needed, a scan may be the best access path.
-
The user had to have knowledge of the table and index structures
-
Navigational data access was far slower than declarative access.
-
Navigational access languages required the coder to embed their queries inside a procedural language shell.
-
Navigational languages were far slower then SQL
A
Correct answer
Explanation
Navigational data access languages required developers to write code that manually traversed relationships and structures, meaning they had to possess intimate knowledge of the physical tables and index designs.
-
System tablespace
-
Users tablespace
-
Default tablespace for the user
-
Oracle will give an error
C
Correct answer
Explanation
When no TABLESPACE clause is specified, Oracle stores the segment in the user's default tablespace (assigned at user creation). The SYSTEM tablespace is for Oracle data dictionary. Users tablespace is not a default concept.
-
Keyword driven
-
Data driven
-
Hybrid
-
All the above
D
Correct answer
Explanation
All the above is correct because QTP (QuickTest Professional) supports three main testing approaches: Keyword-driven (using keywords to represent test steps), Data-driven (separating test logic from test data), and Hybrid (combining both keyword and data-driven approaches). Each approach has its use cases in test automation.