Computer Knowledge
Database Management Systems
5,344 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
D
Correct answer
Explanation
IMS DB supports two primary processing modes: online (MPP - Message Processing Program) and batch (BMP - Batch Message Processing and Batch DL/I). Option D 'ALL' correctly encompasses all available processing modes. The other options list individual modes but don't represent the complete set.
-
PCB
-
SENSEG
-
SENFLD
-
PROCOPT
D
Correct answer
Explanation
PROCOPT (Processing Options) is the parameter that defines what types of database operations are permitted - such as GET (read), INSERT (create), REPLACE (update), and DELETE. It is specified in the PCB and SENSEG statements to control access rights at the database or segment level. PCB, SENSEG, and SENFLD are structure definitions, not access control specifications.
-
TIMESTAMP
-
. INTERVAL MONTH TO DAY
-
INTERVAL DAY TO SECOND
-
INTERVAL YEAR TO MONTH
-
TIMESTAMP WITH DATABASE TIMEZONE
A,C,D
Correct answer
Explanation
TIMESTAMP and INTERVAL types (DAY TO SECOND, YEAR TO MONTH) are valid SQL datetime data types for column definitions. INTERVAL MONTH TO DAY is not a valid interval type (should be INTERVAL DAY TO MONTH), and TIMESTAMP WITH DATABASE TIMEZONE is incorrect syntax.
-
Storage dataset
-
Temporary dataset
-
Both
-
None of the above
B
Correct answer
Explanation
Temporary datasets in JCL are created and deleted automatically within the job's lifecycle. They provide short-term storage that exists only while the job executes, making them ideal for intermediate processing results.
-
Storage dataset
-
Temporary dataset
-
Both
-
None of the above
B
Correct answer
Explanation
Temporary datasets in JCL are created with DSN=&&prefix and are used only for the duration of the job. They are automatically deleted after job completion. Storage datasets are permanent datasets that persist beyond the job, making 'Temporary dataset' the correct answer.
-
DATACOUNT
-
DCOUNT
-
DCOUNTA
-
None of the Above
B
Correct answer
Explanation
DCOUNT is a database function that counts cells containing numbers within a specified database range. This differs from DCOUNTA which counts all non-blank cells regardless of content type. DCOUNT specifically targets numeric data only, making it useful for numerical database analysis.
-
DATACOUNT
-
DCOUNT
-
DCOUNTA
-
None of the Above
C
Correct answer
Explanation
DCOUNTA counts all non-blank cells in a database, regardless of whether they contain numbers, text, or other data types. This makes it more inclusive than DCOUNT which only counts numeric cells. The 'A' suffix typically indicates 'all' or 'any' content type in database functions.
-
iBATIS is a O/R Mapping tool.
-
iBATIS is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings.
-
iBATIS is a java development tool.
-
iBATIS is a first class persistence framework, and will not support for custom SQL, but will support stored procedures.
B
Correct answer
Explanation
iBATIS is a persistence framework that maps SQL statements to Java objects, emphasizing full control over custom SQL and stored procedures rather than full object-relational mapping (ORM).
-
SqlSessionFactoryBuilder
-
SqlBuilder
-
SqlFactoryBuilder
-
SqlSessionBuilder
A
Correct answer
Explanation
SqlSessionFactory is created using SqlSessionFactoryBuilder in iBATIS/MyBatis. This builder pattern reads configuration and builds the factory. Other options like SqlBuilder or SqlSessionBuilder are incorrect or don't exist.
B
Correct answer
Explanation
The statement claims iBATIS discourages SQL use, but this is false - iBATIS is designed to leverage SQL's power. It allows developers to write raw SQL queries while simplifying database access, preserving all SQL benefits. Therefore the correct answer is False.
B,D
Correct answer
Explanation
This appears to reference formal language notations. RHO and PIE (possibly Pi calculus) are theoretical notations used in formal language theory and database theory, while OMEGA and DELTA are not standard SQL notations.
-
you will not be able to connect locally ,but you can be able to connect to DB from remote
-
you cannot be able to connect to DB either from remote or from local
-
you cane to connect to DB either from remote or from local
-
you will not be able to connect remotely ,but you can be able to connect to DB locally
D
Correct answer
Explanation
In Oracle, when the listener is down but the instance is up, local connections using IPC/bequeath protocol still work. Remote connections require the listener to establish the initial connection.
B
Correct answer
Explanation
The physical nature of an IMS database is defined by the DBD (Database Description). The DBD describes the physical structure of the database including segment layout, field definitions, and indexing information. IO-PCB and IO-AREA are runtime structures used during program execution, while SSA is a navigation parameter.
-
ADDM
-
AWR
-
Data dictionary views
-
Dynamic performance views
B
Correct answer
Explanation
The Automatic Workload Repository (AWR) is the Oracle component that stores statistics collected by the MMON (Manageability Monitor) process. AWR serves as the foundation for performance diagnostics and contains detailed performance statistics. ADDM uses AWR data for its analysis but is the diagnostic tool itself, not the storage mechanism. Data dictionary views and dynamic performance views are different database structures.
-
SQL Tuning Advisor
-
SQL Access Advisor
-
Both A and B
-
Neither A or B
C
Correct answer
Explanation
When a SQL statement causes I/O issues, both SQL Tuning Advisor and SQL Access Advisor are relevant. SQL Tuning Advisor optimizes the SQL statement itself (indexes, statistics, SQL structure), while SQL Access Advisor focuses on access paths and materialized views. Using both provides comprehensive troubleshooting for I/O problems caused by SQL statements.