RDBMS
RDBMS
a) Tables
b) Fields
c) Records
d) Keys
View Answer
Answer:a
Explanation:Fields are the column of the relation or tables.Records are each row in relation.Keys are the
constraints in a relation .
a) Column
b) Key
c) Row
d) Entry
View Answer
Answer:c
Explanation:Column has only one set of values.Keys are constraints and row is one whole set of
attributes.Entry is just a piece of data.
b) Tuple
c) Field
d) Instance
View Answer
Answer:b
Explanation:Tuple is one entry of the relation with several attributes which are fields.
a) Record
b) Column
c) Tuple
d) Key
View Answer
Answer:b
Explanation:Attribute is a specific domain in the relation which has entries of all tuples.
5. For each attribute of a relation, there is a set of permitted values, called the ________ of that
attribute.
a) Domain
b) Relation
c) Set
d) Schema
View Answer
Answer:a
Explanation:The values of the attribute should be present in the domain.Domain is a set of values
permitted .
6. 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.
a) Instance, Schema
b) Relation, Schema
c) Relation, Domain
d) Schema, Instance
View Answer
Answer:d
7.Course(course_id,sec_id,semester)
Here the course_id,sec_id and semester are __________ and course is a _________ .
a) Relations, Attribute
b) Attributes, Relation
c) Tuple, Relation
d) Tuple, Attributes
View Answer
Answer:b
Here the dept_name attribute appears in both the relations .Here using common attributes in relation
schema is one way of relating ___________ relations.
a) Attributes of common
b) Tuple of common
c) Tuple of distinct
d) Attributes of distinct
View Answer
Answer:c
a) Different
b) Indivisbile
c) Constant
d) Divisible
View Answer
Answer:b
Explanation:None.
a) Any
b) Same
c) Sorted
d) Constant
View Answer
Answer:a
Explanation:The values only count .The order of the tuples does not matter.
1. Which one of the following is a set of one or more attributes taken collectively to uniquely identify a
record?
a) Candidate key
b) Sub key
c) Super key
d) Foreign key
View Answer
Answer:c
2. Consider attributes ID , CITY and NAME . Which one of this can be considered as a super key ?
a) NAME
b) ID
c) CITY
d) CITY , ID
View Answer
Answer:b
Explanation:Here the id is the only attribute which can be taken as a key. Other attributes are not
uniquely identified .
View Answer
Answer:a
Explanation:The subset of a set cannot be the same set.Candidate key is a set from a super key which
cannot be the whole of the super set
4. A _____ is a property of the entire relation, rather than of the individual tuples in which each tuple is
unique.
a) Rows
b) Key
c) Attribute
d) Fields
View Answer
Answer:b
a) Name
b) Street
c) Id
d) Department
View Answer
Answer:c
Explanation:The attributes name , street and department can repeat for some tuples.But the id attribute
has to be unique .So it forms a primary key.
a) Id
b) Register number
c) Dept_id
d) Street
View Answer
Answer:d
Explanation:Street is the only attribute which can occur more than once.
7. A attribute in a relation is a foreign key if the _______ key from one relation is used as an attribute in
that relation .
a) Candidate
b) Primary
c) Super
d) Sub
View Answer
Answer:b
Explanation:The primary key has to be referred in the other relation to form a foreign key in that
relation .
8. The relation with the attribute which is the primary key is referenced in another relation. The relation
which has the attribute as primary key is called
a) Referential relation
b) Referencing relation
c) Referenced relation
d) Referred relation
View Answer
Answer:b
Explanation:None.
9. The ______ is the one in which the primary key of one relation is used as a normal attribute in another
relation .
a) Referential relation
b) Referencing relation
c) Referenced relation
d) Referred relation
View Answer
Answer:c
Explanation:None.
10. 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.
a) Referential
b) Referencing
c) Specific
d) Primary
View Answer
Answer:a
Explanation:A relation, say r1, may include among its attributes the primary key of another relation, say
r2. This attribute is called a foreign key from r1, referencing r2. The relation r1 is also called the
referencing relation of the foreign key dependency, and r2 is called the referenced relation of the foreign
key.
a) Query
b) Relational
c) Structural
d) Compiler
View Answer
Answer:a
Explanation:Query language is a method through which the database entries can be accessed.
a) Name
b) Dept
c) Tot_cred
d) ID
View Answer
Answer:d
Explanation:The attributes name ,dept and tot_cred can have same values unlike ID .
c) Relational algebra
d) Query language
View Answer
Answer:c
4. The_____ operation allows the combining of two relations by merging pairs of tuples, one from each
relation, into a single tuple.
a) Select
b) Join
c) Union
d) Intersection
View Answer
Answer:b
Explanation:Join finds the common tuple in the relations and combines it.
5. The result which operation contains all pairs of tuples from the two relations, regardless of whether
their attribute values match.
a) Join
b) Cartesian product
c) Intersection
d) Set difference
View Answer
Answer:b
a) Union
b) Join
c) Product
d) Intersect
View Answer
Answer:a
7. The most commonly used operation in relational algebra for projecting a set of tuple from a relation is
a) Join
b) Projection
c) Select
d) Union
View Answer
Answer:c
Explanation:Select is used to view the tuples of the relation with or without some constraints.
8. The _______ operator takes the results of two queries and returns only rows that appear in both
result sets.
a) Union
b) Intersect
c) Difference
d) Projection
View Answer
Answer:b
Explanation:The union operator gives the result which is the union of two queries and difference is the
one where query which is not a part of second query .
9. A ________ is a pictorial depiction of the schema of a database that shows the relations in the
database, their attributes, and primary keys and foreign keys.
a) Schema diagram
b) Relational algebra
c) Database diagram
d) Schema flow
View Answer
Answer:a
Explanation:None.
10. The _________ provides a set of operations that take one or more relations as input and return a
relation as an output.
a) Schematic representation
b) Relational algebra
c) Scheme diagram
d) Relation flow
View Answer
Answer:b
Explanation:None.
1. Which one of the following is used to define the structure of the relation ,deleting relations and
relating schemas ?
a) DML(Data Manipulation Langauge)
c) Query
d) Relational Schema
View Answer
Answer:b
Explanation: Data Definition language is the language which performs all the operation in defining
structure of relation.
2. Which one of the following provides the ability to query information from the database and to insert
tuples into, delete tuples from, and modify tuples in the database ?
c) Query
d) Relational Schema
View Answer
Answer:a
a) DML
b) DDL
c) View
d) Integrity constraint
View Answer
Answer:b
Explanation:Data Definition language is the language which performs all the operation in defining
structure of relation.
a) DML
b) DDL
c) View
d) Integrity constraint
View Answer
Answer:a
Explanation: Select operation just shows the required fields of the relation. So it forms a DML
5. The basic data type char(n) is a _____ length character string and varchar(n) is _____ length character.
a) Fixed, equal
b) Equal, variable
c) Fixed, variable
d) Variable, equal
View Answer
Answer:c
Explanation: Varchar changes its length accordingly whereas char has a specific length which has to be
filled by either letters or spaces .
6. An attribute A of datatype varchar(20) has the value “Avi” . The attribute B of datatype char(20) has
value ”Reed” .Here attribute A has ____ spaces and attribute B has ____ spaces .
a) 3, 20
b) 20, 4
c) 20 , 20
d) 3, 4
View Answer
Answer:a
Explanation: Varchar changes its length accordingly whereas char has a specific length which has to be
filled by either letters or spaces.
a) Delete
b) Purge
c) Remove
d) Drop table
View Answer
Answer:d
Explanation: Drop table deletes the whole structure of the relation .purge removes the table which
cannot be obtained again.
a) Remove relation
c) Delete fields
d) Delete rows
View Answer
Answer:b
a) Query
b) DML
c) Relational
d) DDL
View Answer
Answer:b
a) Integrity constraints
b) Transaction control
c) Authorization
d) DDL constraints
View Answer
Answer:a
a) From
b) Rename
c) As
d) Join
View Answer
Answer:c
b) Employee
c) “Comp Sci”
d) From
View Answer
Answer:c
3. Select emp_name
from department
Which one of the following has to be added into the blank to select the dept_name which has Computer
Science as its ending string ?
a) %
b) _
c) ||
d) $
View Answer
Answer:a
4. ’_ _ _ ’ matches any string of ______ three characters. ’_ _ _ %’ matches any string of at ______ three
characters.
a) Atleast, Exactly
b) Exactly, Atleast
c) Atleast, All
d) All , Exactly
View Answer
Answer:b
Explanation:None.
5. Select name
from instructor
order by name;
a) Descending
b) Any
c) Same
d) Ascending
View Answer
Answer:d
6. Select *
from instructor
a) Ascending, Descending
b) Asc, Desc
c) Desc, Asc
d) Descending, Ascending
View Answer
Answer:c
Explanation:None.
7. Select name
from instructor
a) Select name
from instructor
b) Select name
from employee
c) Select name
from employee
d) Select name
from instructor
where salary between 100000 and 90000;
View Answer
Answer:a
Explanation: SQL includes a between comparison operator to simplify where clauses that specify that a
value be less than or equal to some value and greater than or equal to some other value.
8. Select instructor.*
d) Only the some attributes from instructed and teaches are selected
View Answer
Answer:b
Explanation:The asterisk symbol “ * ” can be usedin the select clause to denote “all attributes.”
9. In SQL the spaces at the end of the string are removed by _______ function .
a) Upper
b) String
c) Trim
d) Lower
View Answer
Answer:c
a) &
b) %
c) ||
d) _
View Answer
Answer:c
a) n
b) U
c) –
d) *
View Answer
Answer:b
Explanation:Union operator combines the relations.
a) Different
b) Common
c) All
d) Repeating
View Answer
Answer:b
Explanation:Intersection operator ignores unique tuples and takes only common ones.
a) Adds tuples
d) Eliminates duplicate
View Answer
Answer:d
Explanation:None.
a) Union all
b) Union some
c) Intersect all
d) Intersect some
View Answer
Answer:a
5. (Select course id
from section
except
(select course id
from section
b) Only tuples from the first part which has the tuples from second part
View Answer
Answer:d
a) i-only
b) ii-only
View Answer
Answer:a
a) Cardinality
b) Degree
c) Tuples
d) Entity
View Answer
Answer:b
Explanation:None.
a) Select
b) Group-by
c) Having
d) Order by
View Answer
Answer:c
a) Outer
b) Inner
c) Equi
View Answer
Answer:b
10. The _____________ is essentially used to search for patterns in target string.
a) Like Predicate
b) Null Predicate
c) In Predicate
d) Out Predicate
View Answer
Answer:a
a) Empty tuple
b) New value
c) Null value
d) Old value
View Answer
Answer:c
Explanation:None.
2. If the attribute phone number is included in the relation all the values need not be entered into the
phone number column . This type of entry is given as
a) 0
b) –
c) Null
d) Empty space
View Answer
Answer:c
3. The predicate in a where clause can involve Boolean operations such as and.The result of true and
unknown is_______, false and unknown is _____, while unknown and unknown is _____.
View Answer
Answer:d
Explanation:None.
4. Select name
from instructor
Selects
View Answer
Answer:b
5. In a employee table to include the attributes whose value always have some value which of the
following constraint must be used ?
a) Null
b) Not null
c) Unique
d) Distinct
View Answer
Answer:b
6. Using the ______ clause retains only one copy of such identical tuples.
a) Null
b) Unique
c) Not null
d) Distinct
View Answer
Answer:d
Explanation:Unique is a constraint.
Some of these insert statements will produce an error. Identify the statement.
View Answer
Answer:c
Explanation:Not null constraint is specified which means sone value (can include 0 also) should be given.
a) Unique
b) Not null
c) Both a and b
d) Either a or b
View Answer
Answer:c
Explanation:Primary key must satisfy unique and not null condition for sure.
from inventory;
Why does this statement cause an error when QUANTITY values are null?
View Answer
Answer:a
a) Xor
b) Or
c) And
d) Not
View Answer
Answer:d
Explanation:Since unknown does not hold any value the value cannot have a reverse value.
1. Aggregate functions are functions that take a ___________ as input and return a single value.
a) Collection of values
b) Single value
c) Aggregate value
d) Both a & b
View Answer
Answer:a
Explanation:None.
2. Select __________
from instructor
Which of the following should be used to find the mean of the salary ?
a) Mean(salary)
b) Avg(salary)
c) Sum(salary)
d) Count(salary)
View Answer
Answer:b
from teaches
If we do want to eliminate duplicates, we use the keyword ______in the aggregate expression.
a) Distinct
b) Count
c) Avg
d) Primary key
View Answer
Answer:a
Explanation:Distinct keyword is used to select only unique items from the relation.
4. All aggregate functions except _____ ignore null values in their input collection.
a) Count(attribute)
b) Count(*)
c) Avg
d) Sum
View Answer
Answer:b
5. A Boolean data type that can take values true, false, and________ .
a) 1
b) 0
c) Null
d) Unknown
View Answer
Answer:d
6. The ____ connective tests for set membership, where the set is a collection of values produced by a
select clause. The ____ connective tests for the absence of set membership.
a) Or, in
b) Not in, in
c) In, not in
d) In, or
View Answer
Answer:c
Explanation:In checks if the query has the value but not in checks if it does not have the value.
7. Which of the following should be used to find all the courses taught in the Fall 2009 semester but not
in the Spring 2010 semester .
from section
from section
from instructor
c) (Select course id
from section
from takes
where (course id, sec id, semester, year) in (select course id, sec id, semester, year
from teaches
where teaches.ID= 10101);
View Answer
Answer:a
Explanation:None.
d) > some
View Answer
Answer:d
9. Which of the following is used to find all courses taught in both the Fall 2009 semester and in the
Spring 2010 semester .
a) Select course id
from section as S
exists (select *
from section as T
b) Select name
from instructor
from takes
where (course id, sec id, semester, year) in (select course id, sec id, semester, year
from teaches
d) (Select course id
from section
View Answer
Answer:a
Explanation:None.
10. We can test for the nonexistence of tuples in a subquery by using the _____ construct.
a) Not exist
b) Not exists
c) Exists
d) Exist
View Answer
Answer:b
a) One
b) Two
c) Several
d) Null
View Answer
Answer:a
View Answer
Answer:a
3. Which one of the following deletes all the entries but keeps the structure of the relation .
View Answer
Answer:d
from student
c) Insert into course values (’CS-437’, ’Database Systems’, ’Comp. Sci.’, 4);
d) Not possible
View Answer
Answer:b
Explanation:Using select statement in insert will include rows which are the result of the selection.
5. Which of the following deletes all tuples in the instructor relation for those instructors associated with
a department located in the Watson building which is in department relation.
where building=’Watson’;
from department
d) Both a and c
View Answer
Answer:c
6. Update instructor
a) Where
b) Set
c) In
d) Select
View Answer
Answer:b
7. _________ are useful in SQL update statements,where they can be used in the set clause.
a) Multiple queries
b) Sub queries
c) Update
d) Scalar subqueries
View Answer
Answer:d
Explanation:None.
a) Set
b) Where
c) Case
d) When
View Answer
Answer:c
a) Case
...
end
b) Case
...
else result0
end
c) Case
...
else result0
View Answer
Answer:b
Explanation:None.
1. The____condition allows a general predicate over the relations being joined.
a) On
b) Using
c) Set
d) Where
View Answer
Answer:a
c) Inner join
d) Natural join
View Answer
Answer:c
Explanation:INNER JOIN: Returns all rows when there is at least one match in BOTH tables.
3. Select *
a) Select *
c) Select *
d) Both a and b
View Answer
Answer:a
4. What type of join is needed when you wish to include rows that do not have matching values?
a) Equi-join
b) Natural join
c) Outer join
View Answer
Answer:c
Explanation:An outer join does not require each record in the two joined tables to have a matching
record..
a) One
b) Two
c) Three
Answer:d
a) Cross join
b) Natural join
View Answer
Answer:d
a) 2
b) 3
c) 4
d) 5
View Answer
Answer:d
Explanation:Types are inner join,left outer join,right outer join,full join,cross join.
8. Which join refers to join records from the right table that have no matching key in the left table are
include in the result set:
View Answer
Answer:b
Explanation:RIGHT OUTER JOIN: Return all rows from the right table, and the matched rows from the
left table.
a) Join
b) Selection
c) Union
d) Cross product
View Answer
Answer:a
Explanation:None.
View Answer
Answer:b
Explanation:None.
1. Which of the following creates a virtual relation for storing the query ?
a) Function
b) View
c) Procedure
View Answer
Answer:b
Explanation:Any such relation that is not part of the logical model, but is made visible to a
2. Which of the following is the syntax for views where v is view name ?
View Answer
Answer:c
represented by v.
3. Select course_id
from physics_fall_2009
Here the tuples are selected from the view.Which one denotes the view.
a) Course_id
b) Watson
c) Building
d) physics_fall_2009
View Answer
Answer:c
Explanation:View names may appear in a query any place where a relation name may appear.
View Answer
Answer:b
Explanation:None.
d) Cannot determine
View Answer
Answer:a
Explanation:None.
6. SQL view is said to be updatable (that is, inserts, updates or deletes can be applied on the view) if
which of the following conditions are satisfied by the query defining the view?
c) The select clause contains only attribute names of the relation, and does not have any expressions,
aggregates, or distinct specification.
View Answer
Answer:d
7. Which of the following is used at the end of the view to reject the tuples which do not satisfy the
condition in where clause ?
a) With
b) Check
c) With check
View Answer
Answer:c
Explanation:Views can be defined with a with check option clause at the end of the view definition;
then, if a tuple inserted into the view does not satisfy the view’s where clause condition, the insertion is
rejected by the database system.
If we insert tuple into the view as insert into instructor info values (’69987’, ’White’, ’Taylor’);
What will be the values of the other attributes in instructor and department relations?
a) Default value
b) Null
c) Error statement
d) 0
View Answer
Answer:b
Explanation:The values take null if there is no constraint in the attribute else it is a Erroneous statement.
10. Create view faculty as
from instructor;
a) Instructor
b) Select
c) View …as
View Answer
Answer:d
a) Transaction
b) Commit
c) Rollback
d) Flashback
View Answer
Answer:a
Explanation:Transaction is a set of operation until commit.
a) View
b) Commit
c) Rollback
d) Flashback
View Answer
Answer:b
3. In order to undo the work of transaction after last commit which one should be used ?
a) View
b) Commit
c) Rollback
d) Flashback
View Answer
Answer:c
Explanation:Rollback work causes the current transaction to be rolled back; that is, it undoes all the
updates performed by the SQL statements in the transaction.
Transaction…..
Commit;
Rollback;
d) No action
View Answer
Answer:d
Explanation:Once a transaction has executed commit work, its effects can no longer be undone by
rollback work.
5. In case of any shut down during transaction before commit which of the following statement is done
automatically ?
a) View
b) Commit
c) Rollback
d) Flashback
View Answer
Answer:c
Explanation:Once a transaction has executed commit work, its effects can no longer be undone by
rollback work.
a) Commit
b) Atomic
c) Flashback
d) Retain
View Answer
Answer:b
Explanation:By atomic , either all the effects of the transaction are reflected in the database, or none
are (after rollback).
d) Maintaining a data
View Answer
Answer:a
Explanation:None.
a) Committed
b) Aborted
c) Rolled back
d) Failed
View Answer
Answer:a
9. Which of the following is used to get back all the transactions back after rollback ?
a) Commit
b) Rollback
c) Flashback
d) Redo
View Answer
Answer:c
Explanation:None.
a) Transaction
b) Flashback
c) Rollback
d) Abort
View Answer
Answer:c
Explanation:Flashback will undo all the statements and Abort will terminate the operation.
1. The database administrator who authorizes all the new users, modifies database and takes grants
privilege is
a) Super user
b) Administrator
View Answer
Answer:d
to ‘user/role list’;
on ‘user/role list’
to ‘user/role list’
on ‘user/role list’;
View Answer
Answer:a
Explanation:The privilege list allows the granting of several privileges in one command .
View Answer
Answer:b
Explanation:This grant statement gives user Raj update authorization on the budget attribute of the
department relation.
4. Which of the following statement is used to remove the privilege from the user Amir ?
View Answer
Answer:b
Explanation:revoke on from ;
to instructor;
to instructor;
View Answer
Answer:c
Explanation:The role is first created and the authorization is given on relation takes to the role.
a) The user who creates a view cannot be given update authorization on a view without having update
authorization on the relations used to define the view.
b) The user who creates a view cannot be given update authorization on a view without having update
authorization on the relations used to define the view.
c) If a user creates a view on which no authorization can be granted, the system will allow the view
creation request.
View Answer
Answer:c
Explanation:A user who creates a view does not necessarily receive all privileges on that view.
7. If we wish to grant a privilege and to allow the recipient to pass the privilege on to other users, we
append the __________ clause to the appropriate grant command.
a) With grant
b) Grant user
View Answer
Answer:d
Explanation:None.
8. In authorization graph if DBA provides authorization to u1 which inturn gives to u2 which of the
following is correct ?
c) Both a and b
View Answer
Answer:c
Explanation:A user has an authorization if and only if there is a path from the root of the authorization
graph down to the node representing the user.
9. Which of the following is used to avoid cascading of authorizations from the user ?
View Answer
Answer:b
Explanation:The revoke statement may specify restrict in order to prevent cascading revocation.The
keyword cascade can be used instead of restrict to indicate that revocation should cascade.
10. The granting and revoking of roles by the user may cause some confusions when that user role is
revoked .To overcome the above situation
View Answer
Answer:a
Explanation:The current role associated with a session can be set by executing set role role name. The
specified role must have been granted to the user, else the set role statement fails.
1. Any recursive view must be defined as the union of two subqueries: a _______ query that is
nonrecursive and a __________ query.
a) Base, recursive
b) Recursive, Base
c) Base, Redundant
d) View, Base
View Answer
Answer:a
Explanation:First compute the base query and add all the resultant tuples to the recursively defined
view relation.
a) Group by
b) Order by
c) Having
d) Both a and b
View Answer
Answer:b
Explanation:Order by clause arranges the values in ascending or descending order where default is
ascending order .
View Answer
Answer:b
Explanation:Example . rank() over (order by (GPA) desc).
4. The __________ function that does not create gaps in the ordering.
a) Intense_rank()
b) Continue_rank()
c) Default_rank()
d) Dense_rank()
View Answer
Answer:d
Explanation:For dense_rank() the tuples with the second highest value all get rank 2, and tuples with the
third highest value get rank 3, and so on .
order by GPA
____________;
a) Limit 10
b) Upto 10
c) Only 10
d) Max 10
View Answer
Answer:a
Explanation:However, the limit clause does not support partitioning, so we cannot get the top n within
each partition without performing ranking; further, if more than one student gets the same GPA, it is
possible that one is included in the top 10, while another is excluded.
6. If there are n tuples in the partition and the rank of the tuple is r , then its ________ is defined as (r -
1)/(n-1) .
a) Ntil()
b) Cum_rank
c) Percent_rank
d) rank()
View Answer
Answer:c
7. Inorder to simplify the null value confusion in the rank function we can specify
a) Not Null
b) Nulls last
c) Nulls first
d) Either b or c
View Answer
Answer:d
Explanation:select ID, rank () over (order by GPA desc nulls last) as s rank from student grades;.
8. Suppose we are given a view tot credits (year, num credits) giving the total number of credits taken by
students in each year.The query that computes averages over the 3 preceding tuples in the specified sort
order is
a) Select year, avg(num credits)
c) Both a and b
d) Either a or b
View Answer
Answer:a
Explanation:Suppose that instead of going back a fixed number of tuples, we want the window to
consist of all prior years we use rows unbounded preceding.
9. The functions which construct histograms and use buckets for ranking is
a) Rank()
b) Newtil()
c) Ntil()
View Answer
Answer:c
Explanation:For each tuple, ntile(n) then gives the number of the bucket in which it is placed, with
bucket numbers starting with 1.
10. The command ________________ such tables are available only within the transaction executing the
query, and are dropped when the transaction finishes.
a) Create table
c) Create view
View Answer
Answer:b
Explanation:None.
View Answer
Answer:a
a) Multidimensional
b) Singledimensional
c) Measured
d) Dimensional
View Answer
Answer:a
Explanation:Given a relation used for data analysis, we can identify some of its attributes as measure
attributes, since they measure some value, and can be aggregated upon.Dimension attribute define the
dimensions on which measure attributes, and summaries of measure attributes, are viewed.
3. The generalization of cross-tab which is represented visually is ____________ which is also called as
data cube.
b) Multidimensional cube
c) N-dimensional cube
d) Cuboid
View Answer
Answer:a
Explanation:Each cell in the cube is identified for the values for the three dimensional attributes.
4. The process of viewing the cross-tab (Single dimensional) with a fixed value of one attribute is
a) Slicing
b) Dicing
c) Pivoting
d) Both a and b
View Answer
Answer:d
Explanation:For eg., The item name and colour is viewed for a fixed size.
5. The operation of moving from finer-granularity data to a coarser granularity (by means of aggregation)
is called a ________.
a) Rollup
b) Drill down
c) Dicing
d) Pivoting
View Answer
Answer:a
a) Slice
b) Dice
c) Pivot
View Answer
Answer:a
Explanation:pivot (sum(quantity) for color in (’dark’,’pastel’,’white’)) .
7. { (item name, color, clothes size), (item name, color), (item name, clothes size), (color, clothes size),
(item name), (color), (clothes size), () }
a) group by rollup
b) group by cubic
c) group by
View Answer
Answer:d
a) OLAP
b) OLTP
d) Operational databases
View Answer
Answer:a
Explanation:None .
from sales
group by rollup(item name, color, clothes size);
a) 8
b) 4
c) 2
d) 1
View Answer
Answer:b
Explanation:{ (item name, color, clothes size), (item name, color), (item name), () } .
10. Which one of the following is the right syntax for DECODE ?
View Answer
Answer:d
Explanation:None .
1. An ________ is a set of entities of the same type that share the same properties, or attributes .
a) Entity set
b) Attribute set
c) Relation set
d) Entity model
View Answer
2. Entity is a
a) Object of relation
d) Model of relation
View Answer
Answer:c
a) Entity
b) Attribute
c) Relation
d) Model
View Answer
Answer:b
Explanation:Possible attributes of the instructor entity set are ID, name, dept name, and salary.
4. The function that an entity plays in a relationship is called that entity’s _____________.
a) Participation
b) Position
c) Role
d) Instance
View Answer
Answer:c
5. The attribute name could be structured as a attribute consisting of first name, middle initial, and last
name . This type of attribute is called
a) Simple attribute
b) Composite attribute
c) Multivalued attribute
d) Derived attribute
View Answer
Answer:b
Explanation:Composite attributes can be divided into subparts (that is, other attributes).
a) Single valued
b) Multi valued
c) Composite
d) Derived
View Answer
Answer:d
Explanation:The value for this type of attribute can be derived from the values of other related
attributes or entities.
a) NA
b) 0
c) NULL
d) Blank Space
View Answer
Answer:c
a) Phone_number
b) Name
c) Date_of_birth
View Answer
Answer:a
a) Register_number
b) Address
c) SUBJECT_TAKEN
d) Reference
View Answer
Answer:a
Explanation:None.
10. In a relation between the entities the type and condition of the relation should be specified . That is
called as______attribute
a) Desciptive
b) Derived
c) Recursive
d) Relative
View Answer
Answer:a
Explanation:Consider the entity sets student and section, which participate in a relationship set takes.
We may wish to store a descriptive attribute grade with the relationship to record the grade that a
student got in the class.
1. Which of the following gives a logical structure of the database graphically ?
a) Entity-relationship diagram
b) Entity diagram
c) Database diagram
d) Architectural representation
View Answer
Answer:a
Explanation:E-R diagrams are simple and clear—qualities that may well account in large part for the
widespread use of the E-R model.
a) Double diamonds
b) Undivided rectangles
c) Dashed lines
d) Diamond
View Answer
Answer:d
a) Entity set
b) Relationship set
c) Attributes of a relationship set
d) Primary key
View Answer
Answer:a
Explanation:The first part of the rectangle , contains the name of the entity set. The second part
contains the names of all the attributes of the entity set.
4. Consider a directed line(->) from the relationship set advisor to both entity sets instructor and
student. This indicates _________ cardinality
a) One to many
b) One to one
c) Many to many
d) Many to one
View Answer
Answer:b
Explanation:This indicates that an instructor may advise at most one student, and a student may have at
most one advisor.
5. We indicate roles in E-R diagrams by labeling the lines that connect ___________ to __________.
a) Diamond , diamond
b) Rectangle, diamond
c) Rectangle, rectangle
d) Diamond, rectangle
View Answer
Answer:d
6. An entity set that does not have sufficient attributes to form a primary key is termed a __________ .
b) Variant set
d) Variable set
View Answer
Answer:c
Explanation:An entity set that has a primary key is termed a strong entity set.
7. For a weak entity set to be meaningful, it must be associated with another entity set, called the
a) Identifying set
b) Owner set
c) Neighbour set
View Answer
Answer:a
Explanation:Every weak entity must be associated with an identifying entity; that is, the weak entity set
is said to be existence dependent on the identifying entity set. The identifying entity set is said to own
the weak entity set that it identifies.It is also called as owner entity set.
b) Double line
c) Double diamond
d) Double rectangle
View Answer
Answer:c
Explanation:An entity set that has a primary key is termed a strong entity set.
9. If you were collecting and storing information about your music collection, an album would be
considered a(n) _____.
a) Relation
b) Entity
c) Instance
d) Attribute
View Answer
Answer:b
Explanation:An entity set is a logical container for instances of an entity type and instances of any type
derived from that entity type.
10. What term is used to refer to a specific record in your music database; for instance; information
stored about a specific album?
a) Relation
b) Instance
c) Table
c) Column
View Answer
Answer:b
1. Let us consider phone_number ,which can take single or several values . Treating phone_numberas an
_________ permits instructors to have several phone numbers (including zero) associated with them.
a) Entity
b) Attribute
c) Relation
d) Value
View Answer
Answer:a
Explanation:Treating a phone as an attribute phone_number implies that instructors have precisely one
phone number each.
a) Dashed line
b) Double line
c) Double rectangle
d) Circle
View Answer
Answer:b
3. Given the basic ER and relational models, which of the following is INCORRECT?
c) In a row of a relational table, an attribute can have more than one value
d) In a row of a relational table, an attribute can have exactly one value or a NULL value
View Answer
Answer:c
Explanation:It is possible to have several values for a single attribute provide it is a multi-valued
attribute.
4. Which of the following indicates the maximum number of entities that can be involved in a
relationship?
a) Minimum cardinality
b) Maximum cardinality
c) ERD
View Answer
Answer:b
Explanation:In SQL (Structured Query Language), the term cardinality refers to the uniqueness of data
values contained in a particular column (attribute) of a database table.
a) Ellipse
b) Dashed ellipse
c) Rectangle
d) Triangle
View Answer
Answer:d
a) Unary
b) Binary
c) Ternary
d) Quaternary
View Answer
Answer:b
a) Insert
b) Update
c) Delete
d) Directory
View Answer
Answer:d
a) Primary key
b) Secondary Key
c) Foreign Key
View Answer
Answer:c
Explanation:Primary key of one relation used as an attribute in another relation is called foreign key.
a) Schema
b) View
c) Query
d) Data dictionary
View Answer
Answer:b
View Answer
Answer:a
Explanation:Using the two relationships mother and father provides us a record of a child’s mother,
even if we are not aware of the father’s identity; a null value would be required if the ternary
relationship parent is used. Using binary relationship sets is preferable in this case.
1. The entity set person is classified as student and employee .This process is called
a) Generalization
b) Specialization
c) Inheritance
d) Constraint generalization
View Answer
Answer:b
a) ISA
b) AIS
c) ONIS
d) WHOIS
View Answer
Answer:a
Explanation:In terms of an E-R diagram, specialization is depicted by a hollow arrow-head pointing from
the specialized entity to the other entity.
3. The refinement from an initial entity set into successive levels of entity subgroupings represents a
________ design process in which distinctions are made explicit.
a) Hierarchy
b) Bottom-up
c) Top-down
d) Radical
View Answer
Answer:c
Explanation:The design process may also proceed in a bottom-up manner, in which multiple entity sets
are synthesized into a higher-level entity set on the basis of common features.
4. There are similarities between the instructor entity set and the secretary entity set in the sense that
they have several attributes that are conceptually the same across the two entity sets: namely, the
identifier, name, and salary attributes. This process is called
a) Commonality
b) Specialization
c) Generalization
d) Similarity
View Answer
Answer:c
Explanation:Generalization is used to emphasize the similarities among lower-level entity sets and to
hide the differences.
5. If an entity set is a lower-level entity set in more than one ISA relationship, then the entity set has
a) Hierarchy
b) Multilevel inheritance
c) Single inheritance
d) Multiple inheritance
View Answer
Answer:d
Explanation:The attributes of the higher-level entity sets are said to be inherited by the lower-level
entity sets.
6. A _____________ constraint requires that an entity belong to no more than one lower-level entity set.
a) Disjointness
b) Uniqueness
c) Special
d) Relational
View Answer
Answer:a
Explanation:For example, student entity can satisfy only one condition for the student type attribute; an
entity can be either a graduate student or an undergraduate student, but cannot be both.
7. Consider the employee work-team example, and assume that certain employees participate in more
than one work team . A given employee may therefore appear in more than one of the team entity sets
that are lower level entity sets of employee. Thus, the generalization is _____________.
a) Overlapping
b) Disjointness
c) Uniqueness
d) Relational
View Answer
Answer:a
Explanation:In overlapping generalizations, the same entity may belong to more than one lower-level
entity set within a single generalization.
8. The completeness constraint may be one of the following: Total generalization or specialization ,
Partial generalization or specialization . Which is the default ?
a) Total
b) Partial
c) Should be specified
d) Cannot be determined
View Answer
Answer:b
Explanation:Partial generalization or specialization – Some higher-level entities may not belong to any
lower-level entity set.
a) Key dependencies
b) Relation dependencies
c) Database dependencies
View Answer
Answer:a
a) Child
b) Owner
c) Dominant
View Answer
Answer:a
budget number,
a) Teaches
b) Course
c) Department
d) Section
View Answer
Answer:c
Explanation:Department is the only relation which forms the main part of the university database .
2. The department relation has the an entry budget whose type has to be replaced by
a) Varchar (20)
b) Varchar2 (20)
c) Numeric (12,2)
d) Numeric
View Answer
Answer:c
Explanation:Department is the only relation which forms the main part of the university database.
3. In the course relation the title field should throw an error in case of any missing title . The command
to be added in title is
a) Unique
b) Not null
c) 0
d) Null
View Answer
Answer:b
4. In the above DDL command the foreign key entries are got by using the keyword
a) References
b) Key reference
c) Relating
View Answer
Answer:a
Explanation:References (table_name) give the prior table name for the entry.
a) No error
View Answer
Answer:a
Explanation:The building and the sec_id have varchar values and year is of numeric type. So no such
errors are found in the relation.
6. The following entry is given in to the instructor relation .
(100202,Drake,Biology,30000)
a) Row(s) inserted
b) Error in ID of insert
View Answer
Answer:b
7. Which of the following can be used as a primary key entry of the instructor relation.
a) DEPT_NAME
b) NAME
c) ID
View Answer
Answer:c
Explanation:The value ID can only be primary key unlike dept_name which is used as a foreign key.
a) Course_id
b) Course_id,sec_id
c) Room_number
d) Course_id,sec_id,room_number
View Answer
Answer:a
9. In order to include an attribute Name to the teaches relation which of the following command is used
?
View Answer
Answer:d
where r is the name of an existing relation, A is the name of the attribute to be added, and D is the type
of the added attribute.
10. To replace the relation section with some other relation the initial step to be carried out is
a) Delete section;
b) Drop section;
View Answer
Answer:b
Explanation: Droping the table drops all the references to that table .
1. Which of the following command is used to display the departments of the instructor relation ?
View Answer
Answer:c
Explanation:Only one field is necessary for the query and where clause is not needed for the selection.
2. How can we select the elements which have common Dept_name in both the relation ?
View Answer
Answer:a
a) 4
b) 3
c) 5
d) Error
View Answer
Answer:a
4. Suppose the Authority want to include a new instructor for the title Neuroscience what command
should be inserted ?
View Answer
Answer:c
5. If a person all the people in Music department gets fired which of the following has to be performed
on the instructor relation ?
View Answer
Answer:b
What will be displayed as the value of name for the above query ?
a) Hayley
b) Jackson
d) Crick
View Answer
Answer:d
Explanation:Only the greatest salary in Comp.Sci dept is selected for the query .
7. select Name
from instructor
where salary > some (select salary from instructor where dept_name = ‘Comp.Sci.’);
a) 3
b) 4
c) 2
d) 1
View Answer
Answer:d
Explanation:This displays the names of instructors with salary greater than that of some (at least one)
instructor in the Biology department .
a) Select Name
from instructor
b) Select Name
from course
from instructor
d) Select Name
from instructor
View Answer
Answer:a
a) Dist
b) Distinct
c) Count
d) Count,Dist
View Answer
Answer:a
10. Which function is used to identify the title with Least scope ?
a) Min(Credits)
b) Max(Credits)
c) Min(title)
d) Min(Salary)
View Answer
Answer:a
Explanation:Max is used to find the highest element and Min is used to find the lowest element .
c) Relational scheme
d) Functional dependencies
View Answer
Answer:d
Explanation:For eg.,Suppose an instructor entity set had attributes dept name and dept address, and
there is a functional dependency dept name -> dept address.
2. If a multivalued dependency holds and is not implied by the corresponding functional dependency, it
usually arises from one of the following sources.
View Answer
Answer:d
Explanation:For a many-to-many relationship set each related entity set has its own schema and there is
an additional schema for the relationship set. For a multivalued attribute, a separate schema is created
consisting of that attribute and the primary key of the entity set.
3. Which of the following has each related entity set has its own schema and there is an additional
schema for the relationship set.
d) Both a and b
View Answer
Answer:a
Explanation:If a multivalued dependency holds and is not implied by the corresponding functional
dependency, it usually arises from this source.
4. In which of the following , a separate schema is created consisting of that attribute and the primary
key of the entity set.
d) Both a and b
View Answer
Answer:b
Explanation:If a multivalued dependency holds and is not implied by the corresponding functional
dependency, it usually arises from this source.
4. Suppose the user finds the usage of room number and phone number in a relational schema there is
confusion.This is reduced by
a) Unique-role assumption
b) Unique-key assignment
View Answer
Answer:a
Explanation:A desirable feature of a database design is the unique-role assumption, which means that
each attribute name has a unique meaning in the database.
a) Relational-and
b) Concatenation
c) Dot representation
View Answer
Answer:b
a) Denormalization
b) Redundant optimization
c) Optimization
d) Realization
View Answer
Answer:a
7. In the schema (dept name, size) we have relations total inst 2007, total inst 2008 . Which dependency
have lead to this relation ?
b) Year->size
c) Dept name->size
d) Size->year
View Answer
Answer:a
8. Relation dept year(dept name, total inst 2007, total inst 2008, total inst 2009) .Here the only
functional dependencies are from dept name to the other attributes .This relation is in
a) Fourth NF
b) BCNF
c) Third NF
d) Second NF
View Answer
Answer:b
9. Thus a _______ of course data gives the values of all attributes, such as title and department, of all
courses at a particular point in time.
a) Instance
b) Snapshot
c) Both a and b
View Answer
Answer:b
Explanation:We use the term snapshot of data to mean the value of the data at a particular point in
time.
10. Representations such as the in the dept year relation, with one column for each value of an attribute,
are called _______; they are widely used in spreadsheets and reports and in data analysis tools.
a) Cross-tabs
b) Snapshot
c) Both a and b
View Answer
Answer:a
Explanation:SQL includes features to convert data from a normal relational representation to a crosstab.
a) RAID level 1
b) RAID level 2
c) RAID level 0
d) RAID level 3
View Answer
Answer:a
a) Helical scanning
b) DAT
c) a laser beam
d) RAID
View Answer
Answer:d
a) Striping
b) Dividing
c) Mirroring
d) Dividing
View Answer
Answer:a
Explanation:Data striping consists of splitting the bits of each byte across multiple disks; such striping is
called bitlevel striping.
View Answer
Answer:d
Explanation:Block-level striping stripes blocks across multiple disks. It treats the array of disks as a single
large disk, and it gives blocks logical numbers.
a) RAID 1+0
b) RAID 0
c) RAID 2
d) Both a and b
View Answer
Answer:d
Explanation:Mirroring without striping can also be used with arrays of disks, to give the appearance of a
single large, reliable disk.
6. Where performance and reliability are both important, RAID level ____ is used.
a) 0
b) 1
c) 2
d) 0+1
View Answer
Answer:d
Explanation:Mirroring without striping can also be used with arrays of disks, to give the appearance of a
single large, reliable disk.
7. ______________ partitiones data and parity among all N+1 disks, instead of storing data in N-disks
and parity in one disk.
c) Bit parity
View Answer
Answer:b
Explanation:In level 5, all disks can participate in satisfying read requests, unlike RAID level 4, where the
parity disk cannot participate, so level 5 increases the total number of requests that can be met in a
given amount of time.
8. Hardware RAID implementations permit _________; that is, faulty disks can be removed and replaced
by new ones without turning power off.
a) Scrapping
b) Swapping
c) Hot swapping
View Answer
Answer:c
Explanation:Hot
swapping reduces the mean time to repair, since replacement of a disk does not have to wait until a
time when the system can be shut down.
9. ___________ is popular for applications such as storage of log files in a database system, since it offers
the best write performance.
a) RAID level 1
b) RAID level 2
c) RAID level 0
d) RAID level 3
View Answer
Answer:a
a) RAID level 1
b) RAID level 2
c) RAID level 5
d) RAID level 3
View Answer
Answer:a
Explanation:In level 5, all disks can participate in satisfying read requests, unlike RAID level 4, where the
parity disk cannot participate, so level 5 increases the total number of requests that can be met in a
given amount of time.
a) Message digest
b) Message summary
c) Encrypted message
Answer: c
a) Two
b) Three
c) Four
Answer: b
Answer: b
Explanation: In this the data items are place in a tree like hierarchical structure .
4. The property (or set of properties) that uniquely defines each row in a table is called the:
a) Identifier
b) Index
c) Primary key
d) Symmetric key
Answer: c
5. The separation of the data definition from the program is known as:
a) Data dictionary
b) Data independence
c) Data integrity
d) Referential integrity
Answer: b
Explanation: Data dictionary is the place where the meaning of the data are organized .
Answer: d
Explanation: The server has all the database information and the client access it .
7. The traditional storage of data that is organized by customer, stored in separate folders in filing
cabinets is an example of what type of ‘database’ system?
a) Hierarchical
b) Network
c) Object oriented
d) Relational
Answer: a
8. The database design that consists of multiple tables that are linked together through matching data
stored in each table is called a) Hierarchical database
b) Network database
d) Relational database
Answer: d
Explanation: A relational database is a collection of data items organized as a set of formally described
tables from which data can be accessed or reassembled.
b) The relationship between the class diagram and the tables in the database
Answer: a
Explanation: The tables are always related in the database to form consistency .
Explanation: The is binary n-array association meaning more than two classes are involved in the
relationship.