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 → DDL Commands 3

Which of the following schemas does define a view or views of the database for particular users?
External schema
click to copy
A ________ in a table represents a relationship among a set of values.
Row
click to copy
State true or false: If a relation consists of a foreign key, then it is called a referenced relation of the foreign key dependency.
FALSE
click to copy

DBMS → DML Commands 3

Which of the following are the process of selecting the data storage and data access characteristics of the database?
Physical database design
click to copy
The term _______ is used to refer to a row.
Tuple
click to copy
Which of the following information does an SQL DDL not specify?
The operations on the tuples
click to copy

DBMS → Joins 3

Which of the following terms does refer to the correctness and completeness of the data in a database?
Data integrity
click to copy
The term attribute refers to a ___________ of a table.
Column
click to copy
Which of the following data types does the SQL standard not support?
String(n)
click to copy

DBMS → Views 3

A table can be logically connected to another table by defining a
Primary key
click to copy
For each attribute of a relation, there is a set of permitted values, called the ________ of that attribute.
Domain
click to copy
Which command is used to create a new relation in SQL
create table( , …)
click to copy

DBMS → Indexes 2

If the state of the database no longer reflects a real state of the world that the database is supposed to capture, then such a state is called
Inconsistent state
click to copy
Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time.
Schema, Instance
click to copy

DBMS → Transactions 2

Ensuring isolation property is the responsibility of the
Concurrency-control component of the DBMS
click to copy
Course(course_id,sec_id,semester) Here the course_id,sec_id and semester are __________ and course is a _________
Attributes, Relation
click to copy

DBMS → Concurrency Control 2

Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.
Procedural
click to copy
Department (dept name, building, budget) and Employee (employee_id, name, dept name, salary) Here the dept_name attribute appears in both the relations. Here using common attributes in relation schema is one way of relating ___________ relations.
Tuple of distinct
click to copy

DBMS → Deadlock 2

For select operation the ________ appear in the subscript and the ___________ argument appears in the paranthesis after the sigmA:)
Predicates, relation
click to copy
A domain is atomic if elements of the domain are considered to be ____________ units.
Indivisbile
click to copy

DBMS → Database Security 2

The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another.
Set-difference
click to copy
The tuples of the relations can be of ________ order.
Any
click to copy

DBMS → PL/SQL 2

In precedence of set operators, the expression is evaluated from
Left to right
click to copy
Choose the correct statement regarding superkeys
A superkey is an attribute or a group of multiple attributes that can uniquely identify a tuple
click to copy

DBMS → Introduction to DBMS 2

Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record?
Super key
click to copy
What is an Instance of a Database?
The state of the database system at any given point of time
click to copy

DBMS → Database Architecture 2

Consider attributes ID, CITY and NAME. Which one of this can be considered as a super key?
ID
click to copy
What is a foreign key?
A foreign key is an attribute of a relation that is a primary key of another relation
click to copy

DBMS → Data Models 2

A _____ is a property of the entire relation, rather than of the individual tuples in which each tuple is unique.
Key
click to copy
What action does ⋈ operator perform in relational algebra
Output specified attributes from all rows of the input relation and remove duplicate tuples from the output
click to copy

DBMS → ER Model 2

An attribute in a relation is a foreign key if the _______ key from one relation is used as an attribute in that relation.
Primary
click to copy
What does the “x” operator do in relational algebra?
Output all pairs of rows from the two input relations (regardless of whether or not they have the same values on common attributes)
click to copy

DBMS → Relational Model 2

The relation with the attribute which is the primary key is referenced in another relation. The relation which has the attribute as a primary key is called ______________
Referenced relation
click to copy
An attribute is a __________ in a relation.
Column
click to copy

DBMS → Normalization 2

The ______ is the one in which the primary key of one relation is used as a normal attribute in another relation.
Referenced relation
click to copy
What is the method of specifying a primary key in a schema description?
By underlining it using a bold line
click to copy

DBMS → Functional Dependency 2

A _________ integrity constraint requires that the values appearing in specified attributes of any tuple in the referencing relation also appear in specified attributes of at least one tuple in the referenced relation.
Referential
click to copy
Statement 1: A tuple is a row in a relation Statement 2: Existence of multiple foreign keys in a same relation is possible
Both the statements are true
click to copy

DBMS → SQL Basics 2

A relational database consists of a collection of
Tables
click to copy
Choose the option that correctly explains in words, the function of the following relational algebra expression σyear≥2009 (book ⋈ borrow)
Selects all the tuples from the natural join of book and borrow wherever the year is lesser than 2009
click to copy