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
-
Yes
-
No
-
It Depends
-
None of the above
B
Correct answer
Explanation
When opening a cursor, DB2 does not necessarily materialize the entire result set immediately. Depending on the query design, optimization path, and cursor type, DB2 may fetch rows dynamically as the application requests them.
-
Staging tables
-
Dimension Tables
-
Fact Tables
-
All of above
D
Correct answer
Explanation
OLAP (Online Analytical Processing) databases used for data warehousing contain multiple table types. Staging tables hold raw data before processing, Dimension tables store descriptive attributes (like time, geography, product), and Fact tables store quantitative metrics and foreign keys to dimensions. All three are fundamental components of a dimensional data warehouse. The star or snowflake schema architecture requires both fact and dimension tables, and staging tables are essential for the ETL loading process.
-
Dimension is surrounded by Facts
-
Fact is surrounded by Dimensions
-
Dimension is surrounded by Dimensions
-
All of above
B
Correct answer
Explanation
A star schema is a dimensional database design where a central fact table (containing quantitative metrics and foreign keys) is directly connected to multiple dimension tables (containing descriptive attributes). The fact table is at the center 'surrounded by' dimension tables, creating a star-like pattern when visualized. Dimension tables are never at the center - they provide the context (who, what, where, when) for the metrics stored in the fact table. This design optimizes query performance for analytical queries.
-
Data warehouse Admin Tool
-
Data Administration Console
-
Database Administration Console
-
Data warehouse Administration Console
D
Correct answer
Explanation
In Oracle Business Intelligence (OBI), DAC stands for Data Warehouse Administration Console. It is a centralized command and control center used to configure, manage, and monitor data warehouse execution plans and ETL processes.
B
Correct answer
Explanation
The nzsql -d flag specifies which database to connect to (requires a database name as argument), it does not list databases. To list all databases in nzsql, use the \l command once inside an nzsql session, not the -d command-line flag.
-
Primary!
-
Delete!
-
Original!
-
Sort!
D
Correct answer
Explanation
PowerBuilder Datawindow buffers are Primary!, Delete!, and Filter! buffers. The Original! buffer contains the originally retrieved data. Sort! is not a standard Datawindow buffer type - sorting is handled through the Datawindow's sort properties, not a dedicated buffer.
-
SetTransObject()
-
SetTrans()
-
SetDBTrans()
-
SetLimitTrans()
B
Correct answer
Explanation
SetTrans() pools database connections by sharing a single connection among multiple Datawindows, releasing it after each transaction. This is efficient when connections are limited. SetTransObject() maintains a dedicated connection per Datawindow, which is more efficient for frequent database access but uses more connections.
-
D-List
-
Access Table
-
File Map
-
Allocation Table
B
Correct answer
Explanation
In Cognos Analyst, the core components include D-Lists (dimension lists containing items), D-Cubes (multidimensional data structures), D-Links (data transfer mechanisms), Allocation Tables (for distributing values), and File Maps (for import/export). Access Tables are not an Analyst component - this appears to be a distractor mixing terminology. Access is typically associated with database permissions or Microsoft Access, not Analyst architecture.
-
Database cache optimizes, worklists items.
-
Database cache optimizes, reading values.
-
PEGARULES database cannot be accessed by external reporting tools.
-
none
C
Correct answer
Explanation
The PEGARULES database is Pega's internal database schema with restricted access. External reporting tools cannot directly query this database due to its proprietary structure and access restrictions. Database cache optimization refers to performance aspects, not external access.
-
Database cache optimizes, worklists items.
-
Database cache optimizes, reading values.
-
PEGARULES database cannot be accessed by external reporting tools.
-
none
-
all
-
persist
-
delete
-
All the above
D
Correct answer
Explanation
Hibernate cascade attribute supports several values: 'all' (cascade all operations), 'persist', 'delete', 'save-update', 'merge', 'evict', 'replicate', 'refresh', and 'lock'. The options A, B, C are all valid cascade values.
-
session..commit()
-
session.getCommitTransaction()
-
session.getTransaction().commit()
-
session.getTransaction().save()
C
Correct answer
Explanation
To commit a transaction in Hibernate, you must call session.getTransaction().commit(). This retrieves the current Transaction object associated with the session and commits it. The other options don't represent valid Hibernate API methods.
-
Every table must have a separate mapping file
-
Only parent table needs separate mapping fie
-
Only child table need separate mapping file
-
One mapping file can have mappings for one or more table.
D
Correct answer
Explanation
Hibernate mapping files are flexible - one mapping file can contain mappings for multiple tables. You're not required to have separate files for parent, child, or each table. A single mapping file can define multiple class mappings.
-
Using several dialect
-
Using several <session-factory>
-
Using several connection properties
-
Not possible to map more than one database
B
Correct answer
Explanation
Hibernate can map multiple databases by defining multiple elements in the configuration. Each session-factory represents a separate database connection with its own dialect and connection properties. You cannot use multiple dialects for a single session factory.
-
One to one
-
One to many
-
Many to one
-
None of the above
B
Correct answer
Explanation
The tag in Hibernate mapping files is specifically used for one-to-many associations when you need to represent a collection that maintains key-value pairs and preserves insertion order. Other association types use different tags like or .