Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

DBMS → Indexes 3

Which type of entity represents a logical generalization whose actual occurrence is represented by a second, associated entity?
Archetype entity
click to copy
Which of the following is an aggregate function in SQL?
Max
click to copy
The concept of locking can be used to solve the problem of
Lost update
click to copy

DBMS → Transactions 3

Which of the following is the preferred way to recover a database after a transaction in progress terminates abnormally?
Rollback
click to copy
Which command is used to add a column to an existing table?
Alter
click to copy
A schedule S of n transactions is serializable if it is equivalent to some
Serial schedule of the same n transactions.
click to copy

DBMS → Concurrency Control 3

Concurrency control is important for which of the following reasons?
To ensure data integrity when updates occur to the database in a multiuser environment
click to copy
A deadlock exists in the system if and only if the wait for graph:
has a cycle in it
click to copy
In two-phase locking protocol.
All locking operations precede the first unlock operation.
click to copy

DBMS → Deadlock 3

The transaction log includes which of the following?
The essential data of the record
click to copy
Rollback of transactions is normally used to:
recover from transaction failure
click to copy
Transaction timestamp is:
Unique identifier assigned to each transaction.
click to copy

DBMS → Database Security 2

What is the type of Oracle backup in which all uncommitted changes have been removed from the datafiles?
Consistent backup
click to copy
The DBMS language component which can be embedded in a program is
The data manipulation language (DML).
click to copy

DBMS → PL/SQL 2

Which of the following is true concerning a procedure?
They include procedural and SQL statements.
click to copy
A DBMS query language is designed to
all of the above.
click to copy

DBMS → Introduction to DBMS 2

A CASE SQL statement is which of the following?
A way to establish an IF-THEN-ELSE in SQL.
click to copy
Which of the following is correct
None of these
click to copy

DBMS → Database Architecture 2

Which of the following statements is true concerning routines and triggers?
Both consist of procedural code.
click to copy
Which of the following is a valid SQL type?
All of the above
click to copy

DBMS → Data Models 2

How many bytes does each character in the UTF8 encoding take up?
All mentioned above
click to copy
Which of the following is a legal expression in SQL?
SELECT NAME FROM EMPLOYEE;
click to copy

DBMS → ER Model 2

PL/SQL has two types of subprograms, procedures and functions. Which subprogram isused to compute a value?
Function
click to copy
If every non-key attribute is functionally dependent on the primary key, then the relation will be in:
Third normal form
click to copy

DBMS → Relational Model 2

Which datatype is not allowed in the definition of PL/SQL record?
A Collection
click to copy
Given the functional dependencies X →W; X→Y; Y→Z and Z→PQ Which of the following doesn’t hold well?
W→Z
click to copy

DBMS → Normalization 2

In the SQL Cursor, which attribute is TRUE when a cursor has some remaining rows to fetch, and FALSE when a cursor has no rows left to fetch?
%FOUND
click to copy
Relations produced from an E-R model will always be in
Third normal form
click to copy

DBMS → Functional Dependency 2

For which Exception, if a SELECT statement attempts to retrieve data based on its conditions, this exception is raised when no rows satisfy the SELECT criteria?
DUP_VAL_ON_INDEX
click to copy
Third normal form is inadequate in situation where the relation
Has multiple candidate keys
click to copy

DBMS → SQL Basics 2

In the PL/SQL block below, how many rows will be inserted in the messages table? DECLARE v_start_salesNUMBER := 2; v_end_sales NUMBER := 100; BEGIN FOR i IN v_start_sales..v_end_sales LOOP INSERT INTO messages(msgid) VALUES v_start_sales; END LOOP; END;
99
click to copy
If a relation scheme is in BCNF, then it is also in
Third normal form
click to copy

DBMS → DDL Commands 2

Which collection types is also known as index-by tables, lets you look up elements Using arbitrary numbers and strings for subscript values?
Associative arrays
click to copy
A primary key when combined with a foreign key create
Parent child relationship between the tables that connect them.
click to copy

DBMS → DML Commands 2

Assigning a value to a collection element can cause exceptions, such as
All mentioned above
click to copy
The set of permitted value for each attribute is called its
Domain
click to copy

DBMS → Joins 2

Which is a procedural extension of Oracle- SQL that offers language constructs similar tothose in imperative programming languages?
PL/SQL
click to copy
The airline reservation system, the enables are date, flight number, place of departure, destination, type of plane & seats available. The primary key is
Flight number+ date
click to copy

DBMS → Views 2

Which of the following retains duplicate rows in the result of a query or in an Aggregate expression?
ALL
click to copy
A functional dependency of the form X→Y is trivial if
YC= X
click to copy