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
-
5
-
4
-
3
-
1
-
Program will terminate abnormally
E
Correct answer
Explanation
When a record layout or DDM length mismatch occurs where the database contains data longer than the program's DDM definition (A4 vs A6), updating or reading may lead to mismatch behavior, but in Adabas/Natural, changing field length specifications or updating with mismatch formats can cause runtime errors (such as NAT3009 or type conflicts) during execution, leading to abnormal termination.
A
Correct answer
Explanation
A single ADABAS database can be mapped by multiple Data Definition Modules (DDMs). This allows different applications or views to access the same physical database with different field definitions or access patterns.
-
5
-
4
-
3
-
1
-
Program will terminate abnormally
E
Correct answer
Explanation
The data was stored using IDENTIFICATION-TABLE-EXP with IDENT-NAME as A6 (6 bytes), but the READ uses IDENTIFICATION-TABLE where IDENT-NAME is defined as A4 (4 bytes). This field length mismatch causes a runtime error because the READ operation cannot properly interpret the 6-byte data using a 4-byte field definition, resulting in abnormal program termination.
B
Correct answer
Explanation
SQL (Structured Query Language) is the standard language for relational database operations including data manipulation (INSERT, SELECT, UPDATE, DELETE), data definition (CREATE, ALTER, DROP), transaction control (COMMIT, ROLLBACK), and database administration.
-
A. Trigger
-
B. Recovery Operation
-
C. Recovery Scenario Name
-
D. The Function used in the scenario
A
Correct answer
Explanation
When creating a Recovery Scenario in QTP/UFT, the Recovery Scenario Wizard first requires you to define the Trigger Event that interrupts the test run (e.g., a pop-up window or application crash). Recovery operations and scenario names are defined in subsequent steps.
-
DB Server
-
Application server
-
Web server
-
DB Server & Application Server
-
Multiple rows
-
Multiple coulumns
-
Multiple schemas
-
Multiple tables
C
Correct answer
Explanation
In database hierarchy, a catalog represents a database container hosting one or more named schemas. Each schema then groups related tables, views, and columns. Distractors like multiple rows, tables, or columns represent lower-level database components rather than the high-level schema containers grouped under a catalog.
-
Semantic Layer
-
Database
-
Reporting Layer
-
Schema type
A
Correct answer
Explanation
In Business Objects, a Universe is a semantic layer that maps complex database structures to business terminology. It provides user-friendly object names while hiding technical schema details from end users.
-
Database Layer
-
Semantic Layer
-
Schema Layer
-
View Layer
B
Correct answer
Explanation
A Universe serves as a semantic layer that abstracts the underlying database schema. It translates technical table and column names into business terminology, making data accessible to non-technical users through familiar business concepts.
-
Installing SQL Server 2005 in the same directory as the current installation and replacing the SQL Server files
-
Installing a new instance of SQL Server 2005 and sharing the older databases between the new instance and the old instance
-
Installing a new instance of SQL Server 2005 on the same server as the old instance and moving the databases from the old instance to the new instance
-
Installing a new instance of SQL Server 2005 on a different server from the old instance and moving the databases from the old server to the new server
A
Correct answer
Explanation
An in-place upgrade means installing a new version of SQL Server in the same directory as the existing installation, replacing the old files while keeping the same instance. This is different from side-by-side migration where a new instance is created. In-place upgrades are simpler but riskier because they modify the existing installation directly without a fallback option.
-
Copy Database Wizard
-
Detach/attach
-
Backup/restore
-
Manual scripting
B
Correct answer
Explanation
The detach/attach method requires exclusive access to the database because detaching removes the database from the SQL Server instance. Users cannot access the database while it's detached. Other methods like backup/restore or Copy Database Wizard can work with active databases or use different mechanisms that don't require taking the database completely offline during the entire process.
-
Service Broker
-
Database Mirroring
-
Extended MAPI Profile
-
Microsoft Exchange Server
A
Correct answer
Explanation
Database Mail requires Service Broker to be enabled because it uses Service Broker's messaging infrastructure to queue and process email messages asynchronously. Database Mirroring is a high-availability feature unrelated to email. Extended MAPI Profile and Microsoft Exchange Server are not prerequisites; Database Mail can work with SMTP servers without requiring an Exchange server or MAPI profiles.
-
In the Simple recovery model, all transactions are logged.
-
In the Bulk-Logged recovery model, all transactions are logged.
-
In the Full recovery model, most transactions are minimally logged.
-
In the Simple recovery model, most transactions are minimally logged.
D
Correct answer
Explanation
In the Simple recovery model, minimal logging is used for most transactions to save space and improve performance; the log is automatically truncated. Bulk-Logged minimally logs bulk operations but fully logs other transactions. Full recovery logs all transactions. Therefore, the correct statement is that in Simple recovery, most transactions are minimally logged, which conserves log space.
-
Store all the main information regarding the records of a Job
-
Its is used to view the PDF of the old records
-
It is used to view the information online
-
All of the Above
D
Correct answer
Explanation
Metadoc appears to be a document management system that performs multiple functions: it stores comprehensive job record information, provides PDF viewing capabilities for historical records, and enables online information access. Since all individual options describe valid functions, 'All of the Above' is the correct choice.
-
ACQUIRE(USE)
-
ACQUIRE(ALLOCATE)
-
RELEASE(COMMIT)
-
RELEASE(DEALLOCATE)
B
Correct answer
Explanation
ACQUIRE(ALLOCATE) is the DB2 bind option that opens all tablespaces and acquires all tablespace locks when the plan is allocated (at allocation time). ACQUIRE(USE) would acquire locks only when needed, and RELEASE options control when locks are released, not when they're acquired.