Computer Knowledge
Database Management Systems
5,543 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
-
To provide data security at the application level
-
To insulate the ABAP/4 developer from the database
-
To connect to the operating system
-
to connect to kernel
A
Correct answer
Explanation
The Data Dictionary in SAP ABAP provides data consistency and data security at the application level by enforcing data definitions, relationships, and constraints. It insulates ABAP developers from underlying database differences, handles the connection to the database (not OS or kernel directly), and ensures data integrity through centralized metadata management.
-
Content Server
-
Application Server
-
Database Server
-
Content or Application Server
A
Correct answer
Explanation
SCS (Site Creation Services) Source in Documentum is installed on the Content Server. The Content Server handles content storage, management, and the SCS services for web publishing. Application Servers handle client requests, and Database Servers store metadata, but SCS Source specifically runs on the Content Server.
-
15 Levels, 1000 Segments, 255 Fields.
-
25 Levels, 100 Segments,255 Fields.
-
15 Levels, 255 Segments, 1000 Fields.
-
25 Levels, 255 Segments, 1000 Fields.
C
Correct answer
Explanation
IMS databases have specific structural limits: maximum 15 levels in the hierarchy, 255 segment types, and 1000 fields per segment. These constraints ensure database performance and manageability. Option C correctly states these limits, while other options incorrectly mix up the numbers.
D
Correct answer
Explanation
PROCOPT L loads new databases, I inserts segments, and R replaces existing segments. The LS option combines Insert and Replace capabilities, allowing both adding new data and updating existing records. This dual functionality makes LS the correct choice when you need both insert and replace operations.
-
/data/data/<package_name>/databases
-
/data/<package_name>/databases
-
/data/data/databases
-
None of above
A
Correct answer
Explanation
Android stores SQLite databases in the app-specific directory /data/data//databases/. This path includes the package name to ensure each app's databases are isolated and secure. The databases directory is automatically created by the Android system for each app's private data storage.
-
Call OpenOrCreateDatabase()
-
Call getReadableDatabase()
-
Call getWriteableDatabase()
-
None of above
A
Correct answer
Explanation
While SQLiteOpenHelper is the recommended way to manage database creation and versioning, you can directly call openOrCreateDatabase() method available on the Context class to create or open a database without using SQLiteOpenHelper. However, this approach lacks automatic version management and upgrade helpers.
-
Compact C Library
-
C++ Library
-
Java Library
-
None of above
A
Correct answer
Explanation
SQLite3 in Android is implemented as a compact C library that's included as part of the Android software stack. This is correct - SQLite is written in C and embedded into Android through JNI (Java Native Interface). It's not a Java library or C++ library.
-
Content Provider
-
Intent
-
SQLite Database
-
None of above
C
Correct answer
Explanation
When data doesn't need to be shared between applications, you can use SQLite database directly without implementing a ContentProvider. ContentProviders add overhead and are only necessary for cross-app data sharing.
-
Files
-
Database
-
Android Properties
-
Both a & b above
-
a, b and c above
-
None of above
E
Correct answer
Explanation
Android provides multiple mechanisms for sharing persistent data between processes: Files (shared via file system or FileProvider), SQLite databases (via ContentProvider), and Android Properties (SharedPreferences - though primarily intra-app, can be made accessible). All three represent valid persistent data storage mechanisms.
-
Adding new records
-
Adding new values to existing records
-
Batch updating existing records
-
Both a & b above
-
a, b and c above
-
None of above
E
Correct answer
Explanation
Content providers support multiple modification operations: insert() for adding new records, bulkInsert() for batch insertion, update() for modifying existing records (including batch updates), and delete() for removal. The statement correctly identifies that content providers can be modified by adding records, adding values to existing records, and batch updating.
-
specify large pct free
-
specify large pct used
-
specify large initial & next sizes
-
specify small initrans
A
Correct answer
Explanation
PCTFREE specifies the percentage of space reserved in each block for row expansion. Specifying a large PCTFREE prevents row migration by ensuring sufficient space remains for updates that increase row size. PCTUSED controls when blocks return to free list, INITTRANS controls concurrent transaction slots, and storage sizes affect allocation not migration.
-
SERVER PROCESSES
-
INSTANCES
-
TABLESPACES
-
DATABASES
-
catalog.sql
-
sql.bsq
-
catproc.sql
-
dictionary.sql
B
Correct answer
Explanation
The sql.bsq script creates the data dictionary base tables during database creation. This script contains the fundamental CREATE TABLE statements for dictionary objects. catalog.sql creates views, catproc.sql creates PL/SQL packages, and dictionary.sql is not a standard Oracle script.
A
Correct answer
Explanation
IIS 6.0 stores its configuration in an XML file called 'metabase.xml' located in the %SystemRoot%\system32\inetsrv\ directory. Unlike earlier versions of IIS that used a binary metabase format, IIS 6.0 made the configuration human-readable and editable XML. This was a significant improvement for administration and backup/recovery. Note that IIS 7.0 and later moved to a different configuration system using .config XML files instead.