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
-
Application can be isolated from the database and the only connection to it is using the ORM framework and a JDBC driver.
-
Manageability of a Java application increases.
-
They perform faster than direct JDBC connections.
-
ORM supports same level of data access as SQL.
-
ORM does little to improve developer productivity.
A,B
Correct answer
Explanation
ORM frameworks isolate applications from database-specific code by providing a persistence layer that uses only the ORM framework and JDBC. This isolation improves manageability by centralizing data access logic and reducing scattered SQL. However, ORM introduces overhead and is typically slower than well-optimized direct JDBC. ORM also cannot match SQL's full power for complex queries and database-specific features. ORM significantly improves developer productivity by reducing boilerplate code.
-
Application can be isolated from the database and the only connection to it is using the ORM framework and a JDBC driver.
-
Developer productivity increases.
-
Performance will be slower than direct JDBC connections.
-
Application maintainance may be a problem.
D
Correct answer
Explanation
Using less-established open-source ORM frameworks creates maintenance risks: limited documentation, smaller community support, potential abandonment, and fewer developers familiar with the framework. This contrasts with mature frameworks like Hibernate that have widespread adoption. Performance may actually improve over JDBC due to caching, so that's not the main disadvantage.
-
Domain
-
Field name
-
Data type
-
Data element
A
Correct answer
Explanation
The Domain defines the complete technical characteristics: data type, length, decimal places, and output format. The data element provides semantic description (field labels) but references the Domain for technical definition. Field name is just an identifier.
-
Container Managed Transactions
-
Bean Managed Transactions
-
Container Transactions
-
Bean Transactions
B
Correct answer
Explanation
The betting scenario requires complex transaction logic spanning multiple independent events (sports matches) with conditional payouts based on partial success. Bean Managed Transactions give you programmatic control over transaction boundaries, allowing you to handle distributed commits and custom rollback logic. Container Managed Transactions work best for simple, localized transactions where the container can manage the lifecycle automatically.
-
ODBC
-
OLEDB
-
Both ODBC and OLEDB
-
None of the above
B
Correct answer
Explanation
OLEDB provides a single programmatic interface for accessing diverse data sources including relational databases, spreadsheets, and other data providers. ODBC is limited primarily to relational databases and doesn't offer the same universal interface capability.
-
password
-
user ID
-
database name
-
database host
C
Correct answer
Explanation
The mysql_connect() function accepts three parameters: database host, username, and password. Database name is NOT a parameter of mysql_connect() - you must select the database separately using mysql_select_db() after establishing the connection. Therefore, option C (database name) is the correct answer as the parameter that is NOT accepted.
A
Correct answer
Explanation
Crystal Reports supports creating reports that pull data from multiple databases and data sources simultaneously. You can add multiple database connections within a single report and even link or combine data from different sources in one report layout.
-
When you need to record a particular login sequence
-
When a particular application process flow needs to be recorded
-
When you need to configure the in session parameter
-
When you need to manually explore the application
B
Correct answer
Explanation
Multi-step operations record complex application flows like multi-page forms, wizards, or complete user journeys. A login sequence is just one part of a flow, session parameters are configured differently, and manual exploration doesn't require recording.
-
When a login sequence needs to be recorded
-
When a particular application flow needs to be recorded
-
When in session parameter needs to be defined
-
When you need to test only a part of your application
B
Correct answer
Explanation
Multi-step operations are used when a complete application process flow needs to be recorded (like checkout, registration, etc.). Login sequences are part of flows, in-session parameters are separate configurations, and testing part of an application is done through other settings.
-
CHECKPOINTDB2
-
CHKPNTDB2
-
CKPT_DB2
-
CKPTDB2
D
Correct answer
Explanation
CKPTDB2 is the parameter used for DB2 checkpoint restart functionality in technical jobs. This enables jobs to restart from the last checkpoint after failure, using DB2's recovery mechanism.
-
CKPTDB2
-
CHKPNTDB2
-
CKPT_DB2
-
CHECKPOINTDB2
A
Correct answer
Explanation
In typical mainframe job scheduling or DB2 utilities, CKPTDB2 is a standard parameter used to control DB2 checkpoint restart options. The other choices like CHKPNTDB2, CKPT_DB2, and CHECKPOINTDB2 are syntax variations that do not correspond to the actual parameter name.
-
online analyis processing
-
online analytical processing
-
online add processing
-
none
B
Correct answer
Explanation
OLAP stands for Online Analytical Processing, a technology used for multidimensional analysis of business data. It enables complex queries and aggregations on large historical datasets in data warehouses, unlike OLTP which handles day-to-day transactions.
-
relational database management system
-
rational data management system
-
real data management system
-
real database money system
A
Correct answer
Explanation
RDBMS stands for Relational Database Management System, a system for managing relational databases based on the relational model. Other options are incorrect terms or definitions that do not represent the industry-standard acronym expansion.
-
relational modelling
-
network modelling
-
real time modelling
-
dimensional modelling
D
Correct answer
Explanation
Data warehousing is built on dimensional modeling, which organizes data into facts (quantitative measurements) and dimensions (descriptive attributes). This star or snowflake schema structure optimizes query performance for analytical processing rather than transactional efficiency.
-
facts & dimensions
-
columns & relations
-
tables & joins
-
none