Dbms Gate
Dbms Gate
View Answer Report Discuss Too Difficult! Search Google Table : Reservation
pid class tid
Answer: (a).127 ---------------
0 AC 8200
1 AC 8201
4. Database table by name Loan_Records is given below. 2 SC 8201
Borrower Bank_Manager Loan_Amount 5 AC 8203
Ramesh Sunderajan 10000.00 1 SC 8204
Suresh Ramgopal 5000.00 3 AC 8202
Mahesh Sunderajan 7000.00 What pids are returned by the following SQL query for the above instance
What is the output of the following SQL query? of the tables?
SELECT pid
SELECT Count(*) FROM Reservation ,
FROM ( (SELECT Borrower, Bank_Manager WHERE class ‘AC’ AND
FROM Loan_Records) AS S EXISTS (SELECT *
NATURAL JOIN (SELECT Bank_Manager, FROM Passenger
Loan_Amount WHERE age > 65 AND
FROM Loan_Records) AS T ); Passenger. pid = Reservation.pid)
a. 3 a. 1, 0
b. 9 b. 1, 2
c. 5 c. 1, 3
d. 6 d. 1, 5
View Answer Report Discuss Too Difficult! Search Google View Answer Report Discuss Too Difficult! Search Google
5. A relational schema for a train reservation database is given below. 6. Consider the following relational schema:
Passenger (pid, pname, age) Reservation (pid, class, tid)
Suppliers(sid:integer, sname:string, city:string,
Table: Passenger street:string)
pid pname age Parts(pid:integer, pname:string, color:string)
----------------- Catalog(sid:integer, pid:integer, cost:real)
0 Sachin 65
Consider the following relational query on the above s.salary >=e.salary)
database: Q2 : Select e.empId
From employee e
SELECT S.sname Where e.salary > Any
FROM Suppliers S (Select distinct salary From employee s Where
WHERE S.sid NOT IN (SELECT C.sid s.department = “5”)
FROM Catalog C
WHERE C.pid NOT IN (SELECT P.pid a. Q1 is the correct query
FROM Parts P
WHERE P.color<> 'blue')) b. Q2 is the correct query
Assume that relations corresponding to the above c. Both Q1 and Q2 produce the same answer
schema are not empty. Which one of the following is
the correct interpretation of the above query? d. Neither Q1 nor Q2 is the correct quer
a. Find the names of all suppliers who have supplied a View Answer Report Discuss Too Difficult! Search Google
non-blue part.
Answer: (b).Q2 is the correct query
b. Find the names of all suppliers who have not
supplied a non-blue part.
8. Given the following statements:
c. Find the names of all suppliers who have supplied
only blue parts.
S1: A foreign key declaration can always
be replaced by an equivalent check
d. Find the names of all suppliers who have not
assertion in SQL.
supplied only blue parts.
S2: Given the table R(a,b,c) where a and
b together form the primary key, the
View Answer Report Discuss Too Difficult! Search Google
following is a valid table definition.
CREATE TABLE S (
Answer: (a).Find the names of all suppliers who have supplied a non-blue part.
a INTEGER,
d INTEGER,
e INTEGER,
7. Consider the table employee(empId, name, department, PRIMARY KEY (d),
salary) and the two queries Q1 ,Q2 below. Assuming FOREIGN KEY (a) references R)
that department 5 has more than one employee, and we Which one of the following statements is CORRECT?
want to find the employees who get higher salary than
anyone in the department 5, which one of the a. S1 is TRUE and S2 is FALSE
statements is TRUE for any arbitrary employee table?
Q1 : Select e.empId b. Both S1 and S2 are TRUE
From employee e
Where not exists c. S1 is FALSE and S2 is TRUE
(Select * From employee s where s.department = “5”
and d. Both S1 and S2 are FALSE
View Answer Report Discuss Too Difficult! Search Google a. select R.* from R, S where R.a=S.a (D)
Answer: (d).Both S1 and S2 are FALSE b. select distinct R.* from R,S where R.a=S.a
You want to display the last names and hire dates of all latest hiresAnswer:
in (c).select R.* from R,(select distinct a from S) as S1 where R.a=S1.a
their respective departments
in the location ID 1700. You issue the following query: Bits
UGC NET MCQs
Networking MCQSoftware Engineering MCQSystems Programming
SQL> SELECT last-name, hire-date MCQUNIX System MCQNeural Networks MCQFuzzy Systems MCQ
FROM employees GATE CSE MCQs
WHERE (dept-id, hire-date) IN Computer Architecture MCQDBMS MCQNetworking MCQ
(SELECT dept-id, MAX(hire-date) C Programs
FROM employees JOIN departments USING(dept-id) C - Arrays and Pointers
WHERE location-id = 1700 C - Stacks and Queues
GROUP BY dept-id); C - Linked Lists
C - Matrices
What is the outcome? HOME /
b. Names of all the employees with at most one of their customers having a ‘GOOD’
14. Consider the relation account (customer, balance) where customer
rating. is a primary key and there are no null values. We would like to rank
customers according to decreasing balance. The customer with the
c. Names of all the employees with none of their customers having a ‘GOOD’ rating.
largest balance gets rank 1. ties are not broke but ranks are
skipped: if exactly two customers have the largest balance they
d. Names of all the employees with all their customers having a ‘GOOD’ rating.
each get rank 1 and rank 2 is not assigned
Query1:
View Answer Report Discuss Too Difficult! Search Google select A.customer, count(B.customer)
from account A, account B
Answer: (d).Names of all the employees with all their customers having a ‘GOOD’
whererating.
A.balance <=B.balance
group by A.customer
a. 2 and 5
c. remove
b. 1 and 3
d. drop
c. 1 and 4
View Answer Report Discuss Too Difficult! Search Google
d. 3 and 5 16. The following table has two attributes A and C where A is the primary
key and C is the foreign key referencing A with on-delete cascade.
View Answer Report Discuss Too Difficult! Search Google
AC
Answer: (c).1 and 4 -----
24
34
15. 43
Consider the relation "enrolled(student, course)" in which (student, course)
52
is the primary key, and the relation "paid(student, amount)" where student
72
is the primary key. Assume no null values and no foreign keys or integrity
constraints. Given the following four queries: 95
64
Query1: select student from enrolled where
student in (select student from paid) The set of all tuples that must be additionally deleted to preserve
Query2: select student from paid where referential integrity when the tuple (2,4) is deleted is:
student in (select student from enrolled)
Query3: select E.student from enrolled E, paid P a. (3,4) and (6,4)
where E.student = P.student
Query4: select student from paid where exists b. (5,2) and (7,2)
(select * from enrolled where enrolled.student
= paid.student) c. (5,2), (7,2) and (9,5)
Which one of the following statements is correct? d. (3,4), (4,3) and (6,4)
a. All queries return identical row sets for any database View Answer Report Discuss Too Difficult! Search Google
b. Query2 and Query4 return identical row sets for all databases butAnswer:
there (c).(5,2), (7,2) and (9,5)
exist databases for which Query1 and Query2 return different row sets.
c. There exist databases for which Query3 returns strictly fewer rows
17.thanThe relation book (title, price) contains the titles and prices of
Query2 different books. Assuming that no two books have the same price,
what does the following SQL query list?
d. There exist databases for which Query4 will encounter an integrity violation
at runtime. select title
from book as B
View Answer Report Discuss Too Difficult! Search Google where (select count(*)
from book as T
Answer: (a).All queries return identical row sets for any database where T.price > B.price) < 5
Student (rollno, name, address) a. the average salary is more than the average salary in the
Enroll (rollno, courseno, company
coursename)
b. the average salary of male employees is more than the average
where the primary keys are salary of all male employees in the company
rollno,courseno. The number of
tuples in the Student and Enroll c. the average salary of male employees is more than the average
tables are 120 and 8 respectively. salary of employees in the same department
What are the maximum and
minimum number of tuples that d. the average salary of male employees is more than the average
can be present in (Student * salary in the company
Enroll), where '*' denotes natural
join ? View Answer Report Discuss Too Difficult! Search Google
a. 8, 0 Answer: (d).the average salary of male employees is more than the average
salary in the company
b. 120, 8
c. 960, 8 20. Consider the set of relations shown below and the SQL query
that follows.
d. 960, 120
Students: (Roll_number, Name, Date_of_birth)
View Answer Report Discuss Too Difficult! Search Google Courses: (Course number, Course_name, Instructor)
Grades: (Roll_number, Course_number, Grade)
Answer: (a).8, 0
select distinct Name
from Students, Courses, Grades
where Students. Roll_number = Grades.Roll_number
and Courses.Instructor = Korth
and Courses.Course_number = Grades.Course_number
and Grades.grade = A Answer: (a).r has no duplicates and s is non-empty
b. Names of students who have got an A grade in all courses View Answer Report Discuss Too Difficult! Search Google
c. Names of students who have got an A grade in at least one of Answer: (c).x < 5 AND not (x = 5)
the courses taught by Korth
d. None of the above 23. Consider the following three table to store student
enrollements in different courses.
View Answer Report Discuss Too Difficult! Search Google
Student(EnrollNo, Name)
Answer: (c).Names of students who have got an A grade in at least one of theCourse(CourseID,
courses taught byName)
Korth
EnrollMents(EnrollNo, CourseID)
21. Given relations r(w, x) and s(y, z), the result of (EnrollNo,CourseID are primary keys)
Answer: (b).Name of all students who are enrolled in "DBMS" and "OS" c. the projection operation in relational algebra
ID salary DeptName View Answer Report Discuss Too Difficult! Search Google
1 10000 EC
2 40000 EC Answer: (d).the projection operation in relational algebra,
3 30000 CS except that select in SQL retains duplicates
4 40000 ME
5 50000 ME
6 60000 ME 26. Consider the following relation
7 70000 CS
Cinema (theater, address, capacity)
How many rows are there in the result of following query?
Which of the following options will be needed at the end of the
SELECT E.ID SQL query
FROM Employee E
WHERE EXISTS (SELECT E2.salary SELECT P1. address
FROM Employee E2 FROM Cinema P1
WHERE E2.DeptName = 'CS'
AND E.salary > E2.salary) Such that it always finds the addresses of theaters with maximum
capacity?
a. 0
a. WHERE P1. Capacity> = All (select P2. Capacity from Cinema P2)
b. 4
b. WHERE P1. Capacity> = Any (select P2. Capacity from Cinema P2)
c. 5
c. WHERE P1. Capacity > All (select max(P2. Capacity) from Cinema P2)
d. 6
d. WHERE P1. Capacity > Any (select max (P2. Capacity) from Cinema P2
View Answer Report Discuss Too Difficult! Search Google
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).WHERE P1. Capacity> = All (select P2. Capacity from Cinema P2)
28. A table 'student' with schema (roll, name, hostel, marks), and another table
'hobby' with schema (roll, hobbyname) contains records as shown below:
27. A company maintains records of sales made by its salespersons and pays them commission based on each individual's total
Table: Student
sales made in a year. This data is maintained in a table with following schema:
T2 ROLL HOBBYNAME
Update salesinfo 1798 chess
Set commission = commission * 1.04 1798 music
Where commission > 50000 and commission is < = 100000; 2154 music
2369 swimming
T3 2581 cricket
Update salesinfo 2643 chess
Set commission = commission * 1.06 2643 hockey
Where commission > 100000; 2711 volleyball
2872 football
2926
Which of the following options of running these transactions will cricket
update the commission of all salespersons correctly?
2959 photography
a. Execute T1 followed by T2 followed by T3 3125 music
3125 chess
b. Execute T2, followed by T3; T1 running concurrently throughout The following SQL query is executed on the above tables:
c. 2 a. 2000
d. 0 b. 2500
c. join selection factor between r(R) and s(S) is more than 0.5
b. for each school with more than 200 students in it,
the name of the school and the number of 100s d. join selection factor between r(R) and s(S) is less than 0.5
scored by its students
View Answer Report Discuss Too Difficult! Search Google
c. for each school with more than 200 students in it,
the name of the school and the number of its Answer: (a).relation r(R) is in the outer loop
students scoring 100 in at least one exam
A → B A → C CD → E B → D E → A
33. Consider a join (relation algebra) between relations r(R)and s(S) Which of the following functional dependencies is NOT
using the nested loop method. There are 3 buffers each of size implied by the above set?
equal to disk block size, out of which one buffer is reserved for
intermediate results. Assuming size(r(R)) < size(s(S)), the join a. CD → AC
will have fewer number of disk block accesses if
b. BD → CD
a. relation r(R) is in the outer loop
c. BC → CD 37. Which of the following relational query languages have the same
expressive power?
d. AC → BC
1.Relational algebra
View Answer Report Discuss Too Difficult! Search Google 2.Tuple relational calculus restricted to safe expressions
3.Domain relational calculus restricted to safe expressions
Answer: (b).BD → CD
a. II and III only
36. A database of research articles in a journal uses the following b. I and II only
schema.
c. I and III only
(VOLUME, NUMBER, STARTPGE, ENDPAGE, TITLE, YEAR,
PRICE) d. I, II and III
The primary key is (VOLUME, NUMBER, STARTPAGE, View Answer Report Discuss Too Difficult! Search Google
ENDPAGE) and the following functional dependencies exist in the
schema. Answer: (d).I, II and III
c. Min 2 and max 3 41. Consider the FDs given in above question. The relation R is
View Answer Report Discuss Too Difficult! Search Google b. in 2NF, but not in 3NF
d. in BCNF
40. Relation R has eight attributes ABCDEFGH. Fields of View Answer Report Discuss Too Difficult! Search Google
R contain only atomic values. F = {CH -> G, A -> BC,
B -> CFH, E -> A, F -> EG} is a set of functional Answer: (a).in 1NF, but not in 2NF
dependencies (FDs) so that F+ is exactly the set of
FDs that hold for R. How many candidate keys does
the relation R have?
42. Which of the following is TRUE?
a. 3
a. Every relation in 3NF is also in BCNF
b. 4
b. A relation R is in 3NF if every non-prime attribute of R is fully
c. 5 functionally dependent on every key of R
View Answer Report Discuss Too Difficult! Search Google Answer: (a).BankAccount_Num is candidate key
View Answer Report Discuss Too Difficult! Search Google View Answer Report Discuss Too Difficult! Search Google
46. Consider the following relational schemes for a library database: 48. Given the following two statements:
Book (Title, Author, Catalog_no, Publisher, Year, Price)
Collection (Title, Author, Catalog_no) with in the following S1: Every table with two single-valued
functional dependencies: attributes is in 1NF, 2NF, 3NF and BCNF.
I. Title Author --> Catalog_no S2: AB->C, D->E, E->C is a minimal cover for
II. Catalog_no --> Title, Author, Publisher, Year the set of functional dependencies
III. Publisher Title Year --> Price AB->C, D->E, AB->E, E->C.
Assume {Author, Title} is the key for both schemes. Which of the Which one of the following is CORRECT?
following statements is true?
a. S1 is TRUE and S2 is FALSE
a. Both Book and Collection are in BCNF
b. Both S1 and S2 are TRUE
b. Both Book and Collection are in 3NF only
c. S1 is FALSE and S2 is TRUE
c. Book is in 2NF and Collection is in 3NF
d. Both S1 and S2 are FALSE
d. Both Book and Collection are in 2NF only
View Answer Report Discuss Too Difficult! Search Google
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).S1 is TRUE and S2 is FALSE
Answer: (c).Book is in 2NF and Collection is in 3NF
49. The maximum number of superkeys for the relation
schema R(E,F,G,H) with E as the key is
47. Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, M} and the set of
functional dependencies {{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L},
a. K ->
5 {M}, L
-> {N} on R. What is the key for R?
b. 6
a. {E, F}
c. 7
b. {E, F, H}
d. 8
View Answer Report Discuss Too Difficult! Search Google >A}. What are the candidate keys of R?
Answer: (d).8
a. AE, BE
Data_of_Birth → Age
52. Consider a relation scheme R = (A, B, C, D, E, H) on which the Age → Eligibility
following functional dependencies hold: {A–>B, BC–>D, E–>C, D– Name → Roll_number
Roll_number → Name
Course_number → Course_name c. Relational algebra has the same power as safe relational calculus
Course_number → Instructor
(Roll_number, Course_number) → Grade d. None of the above
The relation (Roll_number, Name, Date_of_birth, Age) is: View Answer Report Discuss Too Difficult! Search Google
a. In second normal form but not in third normal form Answer: (c).Relational algebra has the same power as safe relational
calculus
b. In third normal form but not in BCNF
b. Lossless-join
55. Relation R with an associated set of functional dependencies, F is
decomposed into BCNF. The redundancy (arising out of functional c. BCNF definition
dependencies) in the resulting set relations is.
d. 3NF definition
a. Zero
d. Indeterminate
58. From the following instance of a relation scheme R (A, B, C), we can
View Answer Report Discuss Too Difficult! Search Google conclude that :
ABC
Answer: (a).Zero 111
110
232
232
56. With regard to the expressive power of the formal relational query
languages, which of the following statements is true? a. A functionally determines B and B functionally determines C
a. Relational algebra is more powerful than relational calculus
b. A functionally determines B and B does not functionally determine C
b. Relational algebra has the same power as relational calculus
c. B does not functionally determine C 61. R(A,B,C,D) is a relation. Which of the following does not have a
lossless join, dependency preserving BCNF decomposition?
d. A does not functionally determine B and B does not functionally
determine C a. A->B, B->CD
View Answer Report Discuss Too Difficult! Search Google b. A->B, B->C, C->D
d. A ->BCD
59. Consider a schema R(A,B,C,D) and functional dependencies A->B and
C->D. Then the decomposition of R into R1(AB) and R2(CD) is View Answer Report Discuss Too Difficult! Search Google
a. {P,R}→{S,T}
66. A table has fields Fl, F2, F3, F4, F5 with the following
b. {P,R}→{R,T} functional dependencies F1 → F3 F2→ F4 (F1 . F2) →
F5 In terms of Normalization, this table is in
c. {P,S}→{S}
a. 1 NF
b. 2 NF Answer: (d).not in 2NF
c. 3 NF
69. Which option is true about the SQL query given below?
d. none of the above
SELECT firstName, lastName
View Answer Report Discuss Too Difficult! Search Google FROM Employee
WHERE lastName BETWEEN 'A%' AND 'D%';
Answer: (a).1 NF
a. It will display all the employees having last names starting
with the alphabets 'A' till 'D' inclusive of A and exclusive of
67. Which of the following is NOT a superkey in a relational D.
schema with attributes V, W, X, Y, Z and primary key V
Y? b. It will throw an error as BETWEEN can only be used for
Numbers and not strings.
a. VXYZ
c. It will display all the employees having last names starting
b. VWXZ from 'A' and ending with 'D'.
a. Only S1 is conflict-serializable
c. A conflict serializable schedule
b. Only S2 is conflict-serializable
d. A schedule for which a precedence graph cannot
be drawn
c. Both S1 and S2 are conflict-serializable
View Answer Report Discuss Too Difficult! Search Google d. Neither S1 nor S2 is conflict-serializable
Answer: (b).A schedule that is not conflict serializable View Answer Report Discuss Too Difficult! Search Google
78. Which level of locking provides the highest degree of concurrencyb.in guarantee neither serializability nor deadlock-freedom
a relational data base?
c. guarantee serializability but not deadlock-freedom
a. Page
d. guarantee deadlock-freedom but not serializability
b. Table
View Answer Report Discuss Too Difficult! Search Google
c. Row
Answer: (a).guarantee serializability and deadlock-freedom
d. Page, table and row level locking allow the same degree of
concurrency 81. Suppose a database schedule S involves transactions T1, ....Tn.
Construct the precedence graph of S with vertices representing
View Answer Report Discuss Too Difficult! Search Google the transactions and edges representing the conflicts. If S is
serializable, which one of the following orderings of the vertices
Answer: (c).Row of the precedence graph is guaranteed to yield a serial
schedule?
79. Which one of the following is NOT a part of the ACID properties a. Topological order
of database transactions?
b. Depth-first order
a. Atomicity
c. Breadth-first order
b. Consistency
d. Ascending order of transaction indices
c. Isolation
View Answer Report Discuss Too Difficult! Search Google
d. Deadlock-freedom
Answer: (a).Topological order
d. S1 is conflict equivalent to S2, but not to S3
82. Consider the following database schedule with two
transactions, T1 and T2. View Answer Report Discuss Too Difficult! Search Google
S = r2(X); r1(X); r2(Y); w1(X); r1(Y); w2(X); a1; a2; Answer: (d).S1 is conflict equivalent to S2, but not to S3
Answer: (c).S does not have a cascading abort View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Only 2
83. Consider the following three schedules of transactions T1,
T2 and T3. [Notation: In the following NYO represents the
action Y (R for read, W for write) performed by transaction 85. An index is clustered, if
N on object O.]
a. it is on a set of fields that form a candidate key
(S1) 2RA 2WA 3RC 2WB 3WA 3WC 1RA 1RB 1WA 1WB
(S2) 3RC 2RA 2WA 2WB 3WA 1RA 1RB 1WA 1WB 3WC b. it is on a set of fields that include the primary key
(S3) 2RA 3RC 3WA 2WA 2WB 3WC 1RA 1RB 1WA 1WB
c. the data records of the file are organized in the same
Which of the following statements is TRUE? order as the data entries of the index
a. S1, S2 and S3 are all conflict equivalent to each other d. the data records of the file are organized not in the same
order as the data entries of the index
b. No two of S1, S2 and S3 are conflict equivalent to each
other View Answer Report Discuss Too Difficult! Search Google
c. S2 is conflict equivalent to S3, but not to S1 Answer: (c).the data records of the file are organized in the same order as the
data entries of the index b. b
c. c
86. A clustering index is defined on the fields which are of
type d. d
a. non-key and ordering View Answer Report Discuss Too Difficult! Search Google
d. 3 or 4
a. names of girl students with the highest marks
View Answer Report Discuss Too Difficult! Search Google
b. names of girl students with more marks than some boy
Answer: (c).1 and 2 only student
c. names of girl students with marks not less than some boy
92. Let R1 (A, B, C) and R2 (D, E) be two relation students4)
schema, where the primary keys are shown
underlined, and let C be a foreign key in R1 d. names of girl students with more marks than all the boy
referring to R2. Suppose there is no violation of the students
above referential integrity constraint in the
corresponding relation instances r1 and r2. Which View Answer Report Discuss Too Difficult! Search Google
one of the following relational algebra expressions
would necessarily produce an empty relation ? Answer: (d).names of girl students with more marks than all
the boy students
MCQs DBMS|UGC-
uses these timestamps only to
decide whether a transaction
should wait or roll back.
Explanation View/Hide
Correct Answer is A
Ans
Match the following :
(a) Create (i) The E-R Model Since BCNF is higher form of
(b) Select (ii) Relationship 3NF, so a relation in BCNF must
Model Explanation
9. be in 3NF but the reverse is not
(c) Rectangle (iii) DDL true
(d) Record (iv) DML
Codes :
(a) (b) (c) (d) The User Work Area (UWA) is a
set of Program variables
11. declared in the host program to
A. (iii) (iv) (i) (ii) communicate the contents of
individual records between
B. (iv) (iii) (ii) (i)
A. DBMS & the Host record
C. (iv) (iii) (i) (ii)
B. Host program and Host record
D. (iii) (iv) (ii) (i)
C. Host program and DBMS Which level of Abstraction
13. describes how data are stored in
the data base ?
Host program and Host
D.
language
A. Physical level
View/Hide
Correct Answer is C
Ans B. View level
B. R1 ∩ R2 → R1 B. Transitive Dependency
C. R1 ∩ R2 → R2 C. Normal Dependency
View/Hide
View/Hide Correct Answer is B
Correct Answer is A Ans
Ans
View/Hide
Referential integrity is directly Correct Answer is D
15. Ans
related to
D. Sequential
Lossless Join but not
C.
dependency preserving
View/Hide
Correct Answer is D
Ans
D. Lossless Join
Explanation
View/Hide
Correct Answer is A
Ans
Manager&rsquos salary details
are to be hidden from Employee
Explanation 25.
Table. This Technique is called
as
If D1,D2, ....Dn are domains in
a relational model, then the
23. A. Conceptual level Datahiding
relation is a table, which is a
subset of
B. Physical level Datahiding
A. D1+D2+... +Dn
C. External level Datahiding
B. D1ΧD2Χ ... ΧDn
D. Logical level Datahiding
C. D1∪D2∪... ∪Dn
View/Hide
Correct Answer is C
Ans
D. D1−D2−...−Dn
Explanation More columns than columns in
A.
original table
26. A Network Schema
B. More rows than original table
restricts to one to many
A.
relationship Same number of rows as the
C.
original table
permits many to many
B.
relationship Same number of columns as the
D.
original table
C. stores Data in a Database
View/Hide
Correct Answer is C
Ans
D. stores Data in a Relation
Explanation
View/Hide
Correct Answer is B
Ans
The employee information of an
Organization is stored in the
Explanation
relation : Employee (name, sex,
salary, deptname) Consider the
The relation “divides” on a set of following SQL query Select
27.
positive integers is ________. 29. deptname from Employee
Where sex = ‘M’ group by
A. Symmetric and transitive deptname having avg (salary) >
{select avg (salary) from
Employee} Output of the given
B. Anti symmetric and transitive query corresponds to
Explanation
A. Tree structure
View/Hide A. Record
Correct Answer is B
Ans
B. List
What property of the files
41. prevents sharing of files and C. Strings
directories?
D. Title list
A. Tree structure
View/Hide
B. One level structure Correct Answer is a
Ans
C. DDBMS View/Hide
Correct Answer is a,c
Ans
D. DML
Explanation
View/Hide
Correct Answer is c
Ans In an E-R diagram ellipses
47.
represents
Explanation
A. Entity sets
If every non-key attribute is
functionally dependent on the B. relationship among entity sets
45.
primary key, then the relation
will be in
C. attributes
A. 1NF
D. link in attributes & entity sets
B. 2NF
View/Hide
Correct Answer is c
Ans
C. 3NF
Explanation
D. 4NF
The set of permitted values for
48.
View/Hide each attribute is called its
Correct Answer is c
Ans
A. Attribute set
Explanation
B. attribute range
which of the following is record
46.
based logical model(s)?
C. domain
A. Network Model
D. group
B. Object-oriented model
View/Hide
Correct Answer is c
Ans
51.Redundancy is dangerous as it is a potential threat to
Explanation
dataA.IntegrityB.ConsistencyC.SufficiencyD.NoneView/Hide
Ans
Relations produced from an E-R
49. Correct Answer is a,b
model will always be in
Explanation
A. 1NF 52.Who is more concerned about the conceptual level of the
DBMSA.DBAB.The end userC.The Systems
B. 2NF programmerD.ClientView/Hide Ans
Correct Answer is a
C. 3NF Explanation
53.An Attribute of one table matching the primary key of
D. 4NF
another table is called asA.Foreign keyB.Secondary
keyC.Candidate keyD.CompositeView/Hide Ans
View/Hide
Correct Answer is a
Correct Answer is c Explanation
Ans
54.If a relation is in BCNF, then it is also
Explanation inA.1NFB.2NFC.3NFD.all of aboveView/Hide Ans
Correct Answer is c
50. E-R modeling technique is a Explanation
55.The way a particular application views the data from the
A. Top-down approach database that the application uses is aA.ModuleB.Relational
ModelC.SchemaD.Sub SchemaView/Hide Ans
B. Bottom-up approach Correct Answer is d
Explanation
C. Left-right approach 56.Locking can be used for:A.DeadlockB.Lost
UpdateC.Uncommitted dependencyD.Inconsistent
D. none of above dataView/Hide Ans
Correct Answer is bcd
View/Hide Explanation
Correct Answer is a
Ans 57.In relation Model Column is referred to as
:A.TupleB.EntityC.DegreeD.AttributeView/Hide Ans
Explanation Correct Answer is d
Explanation
58.ER Model Comes underA.Physical data ModelB.Record
Author Does Not claim of any answer these answers are as based logical ModelC.Object based logical ModelD.All of
per expert opinion aboveView/Hide Ans
Correct Answer is c
Explanation
59.Which of the following is the problem of file management Correct Answer is c
system? (a) Lack of data independence(b) Data redundancy(c) Explanation
Update (d) all Periodically adding, changing, & Deleting file 67.Transaction X holds a shared lock R. if transaction Y
records is called requests for a shared lock on R :A.result in deadlock
fileA.UpdatingB.UpgradingC.RestructuringD.RenewingView/Hi situationB.Immediately GrantedC.Immediately
de Ans rejectedD.Granted as is released by XView/Hide Ans
Correct Answer is d Correct Answer is b
Explanation60.Which of the following is a relational Explanation
databaseA.4th DimensionsB.FoxProC.dbase-IVD.All of the 68.command used to select only one copy of each set of
aboveView/Hide Ans duplicable rows :A.Select DistantB.Select UniqueC.Select
Correct Answer is a DifferentD.NoneView/Hide Ans
Explanation Correct Answer is a
61.The Index consists of :A.A list of keysB.Pointers to the Explanation
master listC.Both (a) & (b)D.None of aboveView/Hide Ans 69.Which of following is the characteristics of a relational
Correct Answer is d database model?A.TablesB.Treelike StructureC.Complex
Explanation logical relationshipD.recordsView/Hide Ans
62.Report generators are used toA.Store data input by a Correct Answer is acd
userB.retrieve information from filesC.Answer queriesD.Both Explanation
(b) & (c)View/Hide Ans 70.Which command is used to remove rows from a
Correct Answer is c table?A.DeleteB.RemoveC.TruncateD.Both (a) & (b)View/Hide
Explanation Ans
63.In a relational schema, each tuple is divided into fields Correct Answer is d
called :A.RelationsB.DomainsC.QueriesD.None of Explanation
aboveView/Hide Ans 71.Which command is used to remove a table or index from
Correct Answer is d the database in SQL?A.Delete TableB.Drop tableC.Erase
Explanation TableD.None of aboveView/Hide Ans
64.The set of permitted values for each attribute is called its Correct Answer is b
:A.Attribute setB.Attribute rangeC.DomainD.GroupView/Hide Explanation
Ans 72.A report generator is used to :A.Update filesB.Print files on
Correct Answer is b paperC.Data EntryD.NoneView/Hide Ans
Explanation Correct Answer is b
65.A DBMS consists of application programs called Explanation
:A.FORTRANB.AUTOFLOWC.BPLD.TOTALView/Hide Ans 73.The modify operation is likely to be done after
Correct Answer is c :A.DeleteB.Look-upC.InsertD.None of aboveView/Hide Ans
Explanation Correct Answer is b
66.A locked file can be :A.Accessed by only one Explanation
userB.modified by user with correct passwordC.is used to hide
sensitive informationD.NoneView/Hide Ans
74.The database environment has all of the following
A. Where data is located
components except :A.UsersB.Separate
filesC.DatabaseD.DBAView/Hide Ans
B. who owns it
Correct Answer is b
Explanation
C. size of disk storage device
75.If every non key attribute is functionally dependent on the
primary key, then the relation will be in
D. How the data is used
:A.1NFB.2NFC.3NFD.4NFView/Hide Ans
Correct Answer is c
View/Hide
Explanation Correct Answer is c
Ans
76.Director�s Salary details are hidden from the employee,
that is :A.Conceptual level HidingB.Physical level data Explanation
HidingC.External level data hidingD.None of aboveView/Hide
Ans Data item characteristics that
Correct Answer is c 82. are important in data
Explanation management include
77.Which of the following is record based logical
model(s)?A.Network ModelB.object oriented A. Width
modelC.Relational ModelD.E-R ModelView/Hide Ans
Correct Answer is ac B. language
Explanation
78.The distinguishable parts of a record are C. spelling
calledA.DataB.filesC.fieldsD.All of aboveView/Hide Ans
Correct Answer is c D. all of above
Explanation
79.Embedded pointers provideA.An inverted indexB.a View/Hide
Correct Answer is a
secondary access pathC.a physical record keyD.all of Ans
aboveView/Hide Ans
Correct Answer is b Explanation
Explanation
80.Which database handles full text data, image, audio and 83. A schema describes
video?A.Transaction databaseB.Graphics databaseC.Video on
demand databaseD.Multimedia databaseView/Hide Ans A. Record & files
Correct Answer is d
Explanation B. data elements
D. HLL Explanation
B. File
C. Record
D. Field
View/Hide
Correct Answer is c
Ans
Explanation