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
-
Clear itab
-
Free itab
-
Refresh itab
-
All of the above
B
Correct answer
Explanation
FREE itab both clears the content AND releases the memory occupied by the internal table. CLEAR only resets the content without releasing memory, and REFRESH typically works like CLEAR. For complete memory deallocation, FREE is the correct command.
-
mapping java classes to database tables
-
mapping of java data types to sql data types
-
data querying and retreival
-
all the above
D
Correct answer
Explanation
Hibernate is a comprehensive ORM framework that handles mapping Java classes to database tables, converting Java data types to SQL data types, and providing querying mechanisms like HQL and Criteria API for data retrieval.
-
Retreive Hibernate session
-
persist objects
-
Save session
-
config hibernate.cfg.xml
D
Correct answer
Explanation
In a Hibernate application, the very first configuration and bootstrap step involves configuring and loading the hibernate.cfg.xml file to build the SessionFactory before any sessions can be opened or objects persisted.
-
Object oriented Query language
-
Transparent persistence without byte code processing
-
High Perfomance
-
Automatic Composite Key generation
A,B,C
Correct answer
Explanation
Hibernate provides HQL (object-oriented query language), works with plain POJOs without bytecode instrumentation for transparent persistence, and offers high performance through caching and lazy loading. Automatic composite key generation is not a standard feature.
-
<generator>
-
<session-factory>
-
<class-name>
-
<property-name>
-
doest not allow database migration
-
allow programmers to store objects directly into databse
-
does not require build time processing such as byte code manipulation
-
has a built in support of transaction management
-
increment
-
sequence
-
hilo
-
foreign
A,B,C
Correct answer
Explanation
The tag in Hibernate mapping files uses attributes to specify the identifier generation strategy. Common attributes include increment (identity column), sequence (database sequences), hilo (high/low algorithm), and foreign (uses foreign key value).
-
<many-to-one="product" class="Product" cloumn="PRODUCT_ID"/>
-
<many-to-one:="product" class:="Product" cloumn:="PRODUCT_ID">
-
<many-to-one="product" class="Product" cloumn="PRODUCT_ID">
-
<many-to-one="product" class="PRODUCT_ID" cloumn="Product"/>
-
ETL tool
-
Reporting tool
-
Debugging tool
-
db tool
A
Correct answer
Explanation
Informatica PowerCenter is an ETL (Extract, Transform, Load) tool. It is specifically designed for data integration - extracting data from various sources, transforming it according to business rules, and loading it into target systems. It is not a reporting tool, debugging tool, or database tool - its primary purpose is ETL and data integration.
-
Surrogate Key
-
Primary Key
-
Composite Key
-
Foreign key
A
Correct answer
Explanation
A surrogate key is a system-generated unique identifier that exists independently of any source or natural key. Unlike natural keys which may be composite, change over time, or have business meaning, surrogate keys provide consistent, immutable identification for each dimension table row regardless of the data source.
-
TYPE 3
-
TYPE 2
-
TYPE 1
-
None of the above
B
Correct answer
Explanation
SCD Type 2 preserves complete history by creating a new dimension record for each change, maintaining both current and historical data with effective date columns. Type 1 overwrites old values (no history), Type 3 tracks limited history in separate columns, and Type 0 makes no changes at all.
-
Database
-
Functional
-
Attribute
-
Descriptive
B
Correct answer
Explanation
Functional fields in Synon are calculated at runtime based on defined formulas or expressions. Unlike database fields which store persistent data, functional fields derive their values dynamically when accessed. This makes them ideal for computed values that shouldn't be stored permanently. Database, Attribute, and Descriptive fields all store static data rather than calculating values at runtime.
D
Correct answer
Explanation
ATR (Attribute) is indeed a database field type in Synon that represents physical attributes stored in the database. Attribute fields define the structure and properties of database entities. PRC (Processing), DRV (Derived), and DTE (Date) are other field types, but ATR is the one specifically designed for database attribute definitions. Understanding field type taxonomy is fundamental in Synon development.
-
stack variables and other info
-
session's variables and arrays
-
session info stored in PGA
-
binding variables and runtime buffers
B
Correct answer
Explanation
The stack space in a PGA (Program Global Area) holds the session's variables and arrays that are local to the session. This memory area is allocated per session and maintains session-specific data structures and runtime information. Option A is too vague, Option C is circular, and Option D describes the cursor area (UGA) which holds bind variables and runtime buffers, not the stack space specifically.
-
Task Center
-
Command Editor
-
Design Advisor
-
Command Line Processor
B
Correct answer
Explanation
DB2's Command Editor provides the capability to execute SQL statements and view graphical representations of access plans (also called explain plans or visual explain). This feature helps developers and DBAs understand how DB2 will execute their queries, including index usage and join methods. Task Center is for scheduling tasks, Design Advisor suggests optimizations, and CLP is command-line only.