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 → Database Security 3

Which of the following specifies a boolean expression that must be true for the trigger to fire?
Trigger Restriction
click to copy
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 3

Which of the following trigger will be executed before modifying each row affected by the triggering statement?
Before Row Trigger
click to copy
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 3

Which of the following is not true in case of triggers?
Triggers accept parameters.
click to copy
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 3

A database is divided into logical storage units called as
Tablespaces
click to copy
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

A file used to govern the initialization of the instance is known as
Parameter file
click to copy
How many bytes does each character in the UTF8 encoding take up?
All mentioned above
click to copy

DBMS → ER Model 2

SGA stands for
System Global Area
click to copy
PL/SQL has two types of subprograms, procedures and functions. Which subprogram isused to compute a value?
Function
click to copy

DBMS → Relational Model 2

This statement fails when executed: CREATE OR REPLACE TRI GGER CALC_TEAM_AVG AFTER I NSERT ON PLAYER BEGIN INSERT INTO PLAYER_BATSTAT ( PLAYER_I D, SEASON_YEAR, AT_BATS, HI TS) VALUES ( : NEW. I D, 1 997, 0, 0) ; END; To which type must you convert the trigger to correct the error?
Row
click to copy
Which datatype is not allowed in the definition of PL/SQL record?
A Collection
click to copy

DBMS → Normalization 2

The OLD and NEW qualifiers can be used in which type of trigger?
Row level DML trigger
click to copy
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

DBMS → Functional Dependency 2

Trigger are not supported in
Views
click to copy
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

DBMS → SQL Basics 2

The CREATE TRIGGER statement is used to create the trigger. THE _____ clause specifies the table name on which the trigger is to be attached. The ______ specifies that this is an AFTERINSERT trigger.
On, for insert
click to copy
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

DBMS → DDL Commands 2

What are the after triggers ?
These triggers run after an insert, update or delete on a table
click to copy
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

DBMS → DML Commands 2

Which of the following is NOT an Oracle-supported trigger?
DURING
click to copy
Assigning a value to a collection element can cause exceptions, such as
All mentioned above
click to copy

DBMS → Joins 2

Which of the following is true concerning triggers?
They have an event, condition, and action.
click to copy
Which is a procedural extension of Oracle- SQL that offers language constructs similar tothose in imperative programming languages?
PL/SQL
click to copy

DBMS → Views 2

Which prefixes are available to Oracle triggers?
Both :new and : old
click to copy
Which of the following retains duplicate rows in the result of a query or in an Aggregate expression?
ALL
click to copy

DBMS → Indexes 2

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

DBMS → Transactions 2

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

DBMS → Concurrency Control 2

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

DBMS → Deadlock 2

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