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
  1. #MYVAR

  2. $MYVAR
  3. $$MYVAR
  4. $$$MYVAR
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Mapping variables use the double dollar sign prefix ($$) in Informatica. Single dollar sign ($) is for session parameters, triple dollar sign ($$$) is invalid, and hash (#) is used for comments. The double dollar sign correctly identifies mapping parameters and variables.

Multiple choice technology
  1. Configure a session to write to a file

  2. Configure a session to write to a oracle database

  3. Configure a session to write to a table without indexes but constraints enabled.

  4. Configure a session to write to a table without indexes but constraints disabled.

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

Writing to a file is faster than writing to a database and eliminates database-related bottlenecks. If performance improves with file output, the target writer was the bottleneck. Writing to Oracle, tables with/without indexes, or constraints doesn't isolate the writer bottleneck as cleanly as a file target.

Multiple choice technology databases
  1. NATIVE

  2. INTERPRETTED

  3. BOTH

  4. NONE

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

Native compilation provides better performance for procedures with looping structures because it compiles directly to machine code, eliminating interpretation overhead. Interpreted compilation translates line-by-line at runtime, which is slower for repeated loop iterations.

Multiple choice technology databases
  1. Normal Procedure

  2. Overloaded Procedure

  3. Packaged Procedure

  4. None of these

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

In Oracle PL/SQL, subprogram overloading (defining multiple procedures with the same name but different parameters) is only supported within packages or as local subprograms, making it a packaged procedure feature here.

Multiple choice technology databases
  1. Having the data type different

  2. Just interchange the input parameter

  3. having the name diffferent

  4. both a & b

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

In program overloading, procedures are distinguished by their parameter signatures (number, order, and data types). Simply interchanging parameter positions doesn't create a unique signature - 'proc(a,b)' and 'proc(b,a)' where both are the same data type are ambiguous. You need different data types, counts, or names.

Multiple choice technology databases
  1. Dependency simplified

  2. Loaded once into memory , used subsequently

  3. Privileges to objects cannot be controlled

  4. Encapsulation of code logic

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

Packages DO allow privilege control - you can grant EXECUTE privileges on the package, which controls access to all packaged objects. The other statements are true benefits: packages simplify dependencies, load once into memory, and encapsulate logic.

Multiple choice technology databases
  1. Procedure definition

  2. Function definition

  3. both A & B

  4. Option in both A & B

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

Functions MUST include a RETURN statement because they are designed to compute and return a value. Procedures can execute without returning anything. The RETURN keyword is compulsory in function definitions to specify what value is computed and sent back to the caller.

Multiple choice technology mainframe
  1. True

  2. False

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

RRDS (Relative Record Data Set) uses fixed-length slots at specific relative record numbers. Once created, a record's position (its slot number) cannot change - it's part of the dataset's fixed structure. You can update the data but not move it to a different position.

Multiple choice technology mainframe
  1. True

  2. False

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

When a record spans across multiple Control Intervals (CIs), each CI that contains a segment of that spanned record cannot contain any other data. This is because spanned records require exclusive use of the CIs they occupy to maintain data integrity and proper reassembly of the record segments when read.

Multiple choice technology mainframe
  1. Database

  2. QCP

  3. MCP

  4. LTP

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

QCP (Query Current Processing or Query Control Panel) is the interface for viewing current/active job executions in scheduling systems. This complements LTP (planning view). LTP is for planned jobs, QCP for currently running ones. MCP and Database are not the standard interfaces for monitoring execution status.

Multiple choice technology databases
  1. Access the rows

  2. Distribution of the rows

  3. Both a and b

  4. Only for distribution of rows to particular AMPs

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

Secondary Index in Teradata is primarily used to optimize data access - it provides an alternate path to locate rows without full table scans. Secondary Indexes do NOT determine data distribution across AMPs; only the Primary Index controls distribution. Option A correctly identifies the access purpose.

Multiple choice technology databases
  1. Hash Value

  2. Partition Number

  3. First column of the table

  4. Both a and b

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

In PPI (Partitioned Primary Index) tables, rows are first organized by partition number at each AMP, then by hash value within each partition. This two-level sorting (partition then hash) enables efficient partition elimination in queries. Option B correctly states that rows are first sorted by Partition Number.