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

Multiple choice technology platforms and products
  1. This is a virtual Infoprovider that does not store data

  2. They can contain InfoCubes, ODSs, info objects and info sets

  3. More than one info provider is required to build a Multiprovider

  4. It is similar to joining the data tables

Reveal answer Fill a bubble to check yourself
A,B Correct answer
Explanation

Multiproviders are virtual InfoProviders that combine data from multiple sources without storing it themselves (A is true). They can contain InfoCubes, ODS objects, InfoObjects, and InfoSets (B is true). However, single InfoProvider can build a Multiprovider (C is false), and they're not like table joins (D is false). Only A and B are correct.

Multiple choice technology platforms and products
  1. Featuring the exact same structure as Transfer structure

  2. Similar to the transfer rules

  3. Similarly structured as the Communication structure

  4. The same as Transfer structure, plus four more fields in the beginning

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The PSA (Persistent Staging Area) table structure mirrors the Transfer structure exactly but adds four technical fields at the beginning (including request ID, packet number, data packet ID, and record number). This maintains data integrity while adding metadata for tracking. Option D is correct.

Multiple choice technology platforms and products
  1. One info source can have more than one source system assigned to it

  2. One info source can have more than one data source assigned to it provided the data sources are in different source systems

  3. Communication structure is a part of an info source

  4. None of the above

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

In SAP BW, an info source can be assigned to multiple source systems, making A true. The communication structure (which defines how data is transferred) is indeed a component of an info source, making C true. B is false because while an info source can have multiple data sources, they must be within the SAME source system, not different ones.

Multiple choice technology platforms and products
  1. Dimensional attributes have a performance advantage over Navigational attributes for queries

  2. Change history will be available if an attribute is defined as navigational

  3. History of changes is available if an attribute is included as a characteristic in the cube

  4. All of the above

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

Dimensional attributes outperform navigational attributes because they're materialized in the cube itself, avoiding join operations at query time - A is true. Navigational attributes don't inherently track change history - that requires time-dependent navigational attributes - so B is false. When an attribute is included as a characteristic with time dimensions in the cube, change history becomes available - C is true.

Multiple choice technology testing
  1. An index is the same as alias.

  2. An index is a special way to join 2 or more tables.

  3. An index is a database table attribute, which speeds-up data search within a table.

  4. An index is a database row attribute, which speeds-up data search within a table.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

An index is a schema object associated with a table that speeds up data retrieval. It acts as a table-level attribute or structure rather than an individual row-level attribute, facilitating faster searches.

Multiple choice technology testing
  1. The number of CPUs on the server

  2. The degree of parallelism on the tables

  3. The quality of the SQL optimization

  4. The use of bitmap indexes

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

SQL statement tuning primarily focuses on writing efficient queries that the optimizer can process effectively. The quality of SQL optimization - including proper join methods, filter placement, and access paths - is central to performance. Options A, B, and D focus on hardware or physical implementation details rather than the SQL statement itself.

Multiple choice technology databases
  1. The number of CPUs on the server

  2. The degree of parallelism on the tables

  3. The quality of the SQL optimization

  4. The use of bitmap indexes

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

SQL statement tuning focuses on writing efficient queries that the optimizer can execute effectively. The quality of SQL optimization (how well the query is structured and how efficiently it uses indexes) directly impacts execution time. While server resources like CPUs and parallelism settings affect overall performance, they are database configuration considerations rather than statement-level tuning concerns.

Multiple choice technology databases
  1. An index is the same as alias.

  2. An index is a special way to join 2 or more tables.

  3. An index is a database table attribute, which speeds-up data search within a table.

  4. An index is a database row attribute, which speeds-up data search within a table.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

An index is a database object associated with a table that creates a fast lookup path to rows, dramatically speeding up data retrieval operations. Indexes work like a book's index: instead of scanning every page, you jump directly to the relevant location. Option D is incorrect because indexes operate at the table level, not on individual rows.

Multiple choice technology databases
  1. TRUE

  2. FALSE

  3. UNDEFINED

  4. NULL

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In SQL and PL/SQL, any comparison involving NULL values (including NULL = NULL) returns NULL (or UNKNOWN), not TRUE or FALSE. This is because NULL represents an unknown value, and you cannot determine whether two unknown values are equal. NULL requires special handling with IS NULL or IS NOT NULL operators.

Multiple choice technology databases
  1. %rowtype, %toomanyrows, %found

  2. %found, %notfound, %rowcount

  3. %rowtype, %rowcount, %notfound

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The standard implicit cursor attributes are %FOUND, %NOTFOUND, and %ROWCOUNT (along with %ISOPEN). In contrast, %rowtype is a data type declaration attribute rather than a cursor attribute, and %toomanyrows is a predefined exception.

Multiple choice technology databases
  1. 0

  2. NULL

  3. Results in a compilation error

  4. An exception will be raised

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To solve this question, the user needs to know what happens when a variable is declared in PL/SQL without an initial value.

The answer is:

B. NULL

If a variable is declared in PL/SQL without an initial value, its value will be NULL when it is first used in the executable section of the PL/SQL block. This means that the variable does not have a value assigned to it yet. If the variable is used in an expression or operation, it will result in a NULL value, which can cause unexpected behavior in your code.

Option A is incorrect because the variable will not have a value of 0 by default.

Option C is incorrect because declaring a variable without an initial value is legal and will not result in a compilation error.

Option D is incorrect because an exception will not be raised when a variable is declared without an initial value. It will simply have a value of NULL.

Multiple choice technology databases
  1. Header

  2. Declarative

  3. Exception

  4. Executable

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Exception section of a PL/SQL block contains error trapping and handling logic. When an error occurs in the Executable section, control transfers to the Exception section where you can catch specific exceptions (like NO_DATA_FOUND) or use WHEN OTHERS for a catch-all handler. The Declarative section declares variables, and the Header section contains the block name and parameters.

Multiple choice technology databases
  1. DECODE

  2. TRUNCATE

  3. TO_CHAR

  4. NVL

  5. Trick question, all of these are Oracle DML functions.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To solve this question, the user needs to know the meaning of Oracle DML (Data Manipulation Language) functions and should be able to identify which of the given options is not an Oracle DML function.

Oracle DML functions are used to manipulate data stored within the database. They are used to insert, update, select, and delete data from tables. These functions are used to modify the data values present in the database.

Now let's go through each option and explain why it is right or wrong:

A. DECODE: This is an Oracle DML function. It is used to compare expressions and return a value when the first matching condition is found.

B. TRUNCATE: This is not an Oracle DML function. It is a DDL (Data Definition Language) command used to remove all data from a table, but not its structure.

C. TO_CHAR: This is an Oracle DML function. It is used to convert a number or date to a string.

D. NVL: This is an Oracle DML function. It is used to replace NULL values with another value.

E. Trick question, all of these are Oracle DML functions: This statement is incorrect. Option B (TRUNCATE) is not an Oracle DML function.

Therefore, the answer is: B. TRUNCATE