DBMS - QB - Sem Iii V - Ec
DBMS - QB - Sem Iii V - Ec
22 1 Which component manages the allocation of space on disk storage B 1 Buffer manager File manager Transaction Authorization
and the data structures used to represent information stored on manager manager
disk?
23 1 ____________ is the skeleton structure that represents the logical C 1 Data Storage structure DB Schema Mapping
view of the entire database. Independence
24 1 Translates DML statements into low level instructions that the C 1 Query Evaluation Integrity DML Compiler DDL Interpreter
query evaluation engine understands. Engine Manager
25 1 Which of the following is a component of the DBMS? D 1 Buffer manager File manager Transaction All of these
manager
26 1 Procedural DMLs require a user to specify what data are needed A 1 TRUE FALSE
and how to get those data.
27 1 Declarative DMLs (also referred to as nonprocedural DMLs) A 1 TRUE FALSE
require a user to specify what data are needed without specifying
how to get those data.
28 1 Data Manipulation Languages are used for - D 1 Insert update Delete All of these
Information into Information Information
Database
29 1 The Statement that requests a retrieval of information from B 1 Control Query Manipulation None of these
database is called as ________. Statement Statement
30 1 Database Administrator is responsible for which of the following D 1 Defining Security Defining Granting the All of these
function? Constraints Integrity Data Access
Constraints
31 1 The Users who use " easy to use menu" are called B 1 Sophisticated end Naïve user Stand alone users Casual end users
_______________________________ user
32 1 Schema Definition is written by __________. A 1 Database Application Naïve user Casual end users
Administrator Programmer
33 1 User who interacts with the system using database query language A 1 Sophisticated end Naïve user Stand alone users Casual end users
is called as ___________. user
34 1 Farmer goes to ATM Center to withdraw an amount of Rs.300/-. B 1 Sophisticated end Unophisticated Application Specialized User
Which type of user farmer is ? user end user Programmer
35 1 Which of the following is/are functions of the database D 1 Schema Access method Backup and All of these
administrator? definition definition Recovery
Page 1 of 7
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS)
Question Bank (SEM-III & V-2023-24 EC Engineering)
Note : This question bank is only for reference purpose . L.J.U Test question paper may not be completely set from this question bank.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
36 1 Which of the following is a function of the DBMS? D 1 Storing data ensuring data providing multi- All of these
integrity user access
control
37 1 Which type of independence separates external level from A 1 Logical Data Physical Data Structural Data Relational Data
conceptual view? Independence Independence Independence Independence
38 1 In which type of model, multiple parents for one node are allowed C 1 Hierarchical Relational model Network model Entity-
which allows many to many relationships model relationship
model
39 2 The number of tuples in a relation is known as D 1 degree relation attribute cardinality
40 2 Which of the following aspects of data is the concern of a D 1 data data integrity data structure all of these
relational database model? manipulation
41 2 A relational database consists of a collection of A 1 Tables Fields Records Keys
42 2 Which of the following is used to denote the selection operation in B 1 Pi (Greek) Sigma (Greek) Lambda (Greek) Omega (Greek)
relational algebra?
43 2 For select operation the ________ appear in the subscript and the A 1 Predicates, Relation, Operation, Relation,
___________ argument appears in the paranthesis after the sigma. relation Predicates Predicates Operation
44 2 The ___________ operation, denoted by −, allows us to find tuples B 1 Union Set-difference Difference Intersection
that are in one relation but are not in another.
45 2 A Set of Possible data value is called ______________________. D 1 Attribute Degree Tuple Domain
46 2 A list of records that satisfies a particular condition is displayed A 1 Select Project Union Cross Product
using ___ operation.
47 2 The minimal set of attributes that can uniquely identify a tuple is A 1 Candidate key Canon key Super key Superb key
known as a ______.
48 2 The Statement that requests a retrieval of information from B 1 Control Query Manipulation Both A & B
database is called as _____ Statement Statement
49 2 What will be the output of following query? A 1 Names of the Names of the Names of the Name of Book
∏ author (Books) ∪ ∏ author (Articles) authors who have authors who have authors who have and Article
either written a written a book written an article
book or an article only only
or both
50 2 If STUD_NO and STUD_PHONE both are candidate keys for D 1 Super key Foreign Key Primary key Alternate key
relation STUDENT and STU_NO is Primary key then
STUD_PHONE will be ____________.
51 2 Key to represent relationship between tables is called? C 1 Primary key Secondary Key Foreign Key Alternate Key
52 2 Set of tuples is called as_________. A 1 Relation Domain Attribute Relational
Database
53 2 Which of the following is/are procedural query language: A 1 Relational Tuple Relational Domain Both A,B
Algebra Calculus Relational
Calculus
54 2 The candidate key other than the primary key is called an A 1 Alternate key Temporary key Flash key Relational key
……………...
55 2 Which of the following is used to denote the projection operation A 1 Pi (Greek) Sigma (Greek) Lambda (Greek) Omega (Greek)
in relational algebra?
56 2 _____________ is a candidate key choosen by database designer D 1 Super key Composite key Alternate key Primary Key
to identify tupples uniquely in a relation.
57 2 Which of the following are the logical operations in the relational A 1 Select,Project Union,Intersect Set Difference all of these
algebra?
58 2 Which of the following is NOT a type of relational operation? D 1 Select Operator Projection Set Difference Set Updates
Operator
59 2 Using the select operation, you can select ___ that satisfy certain A 1 Tupples Entity Attributes Operators
criteria.
60 2 If there are 2 types of tuples, A & B, the ___ operation contains all B 1 Union Set Difference Cartesian Projection
the tuples that are in B but not in A. Product
61 2 The operation of a relation X, produces Y, such that Y contains A 1 Projection Intersection Union Set Difference
only selected attributes of X. Such an operation is :
62 2 Which one of the following attribute can be taken as a primary C 1 Name Street ID Department
key?
63 If there are 2 types of tuples, A & B, the ___ operation contains all B 1 Intersection Union Set Difference Cartesian product
the tuples that are either in B or in A or both.
64 Who creates the original database schema by executing a set of C 1 End user Unsophisticated Database Naïve user
DDL statements? end user Administrator
65 2 Consider the relational database given below. Give an expression 5
in the relational algebra to express each of the following
statements:
Customer(Cust_name, Cust_street, Cust_city)
Branch(Branch_name, Branch_city, Assets)
Account (Branch_name, Account_number, Balance)
Loan(Branch_name, Loan_number, Amount)
Depositor(Cust_name, Account_number)
Borrower(Cust_name, Loan_number)
Player relation (Player Id, Team Id, Country, Age, Runs, Wickets)
1.Find the names of all the customers who have taken a loan from
the bank and also have an account at the bank.
2. Find all tuples from player relation for which country is India.
3.Select all the tuples for which runs are greater than or equal to
15000.
4.Select all the players whose runs are greater than or equal to
6000 and age is less than 25.
5.List all the countries in Player relation.
1) Find the names of all employees in this database who live in the
same city as the
company for which they work.
2) Find the names, street address, and cities of residence of all
employees who work
for HCL and earn more than $10,000 per annum.
Page 2 of 7
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS)
Question Bank (SEM-III & V-2023-24 EC Engineering)
Note : This question bank is only for reference purpose . L.J.U Test question paper may not be completely set from this question bank.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
67 2 Consider the following relational database, where the primary keys 4
are underlined. Give an expression in the relational algebra to
express each of the following queries:
1. List all pairs of employee names and the project numbers they
work on.
2. List out department number, department name and department
budget.
3. List all projects that Raj Yadav works on by project name.
4. List the names of employees who supervise themselves.
68 2 Solve the queries for the following database using Relational 6
Algebra.
branch (branch-name, branch-city, assets)
customer (customer-name, customer-street, customer-only)
account (account-number, branch-name, balance)
loan (loan-number, branch-name, amount)
depositor (customer-name, account-number)
borrower (customer-name, loan-number)
1)Find all loans of over $1200
2)Find the loan number for each loan of an amount greater than
$1200
3)Find the names of all customers who have a loan, an account, or
both, from the bank
4)Find the names of all customers who have a loan and an account
at bank.
5)Find the names of all customers who have a loan at the
Perryridge branch.
6)Find the names of all customers who have a loan at the
Perryridge branch but do not have an account at any branch of the
bank.
69 2 The relational database schema is given below. 4
employee (person-name, street, city)
works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)
1.Find the names of all employees who work for First Bank
Corporation.
2.Find the names and cities of residence of all employees who
work for First Bank Corporation.
3.. Find the names, street address, and cities of residence of all
employees who work for First Bank Corporation and earn more
than $10,000 per annum.
4. Find the names of all employees in this database who do not
work for First Bank Corporation.
70 2 Write Relational algebra statement for following. 3
i.Display the details of all female customers having age less than
32.
ii.Display the name of all branches of ‘Ahmedabad’ and ‘Baroda’
city.
iii.List out all loans of over 100000 from Vastarpur Branch.
iv.Display the name and balance of all customers from ‘Surat’ city.
v.Find the name and address of all male customers who have a
loan at Sola Branch.
Page 3 of 7
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS)
Question Bank (SEM-III & V-2023-24 EC Engineering)
Note : This question bank is only for reference purpose . L.J.U Test question paper may not be completely set from this question bank.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
73 2 Consider the relations 5
City(city_name,state) , Hotel(hname,address) ,
City_Hotel(hname,city_name,owner)
Answer the following queries in relational algebra
i)Display all the record of hotel name,city name and owner of
the Hotel.
ii)List the name of cities which have no Hotel.
iii)List the Name of hotels owned by ‘Taj Group’
iv)List the hname and owner who belongs to Gujarat State.
v)Find the name of city Whose state is either Gujarat or
Rajasthan or both.
74 2 Consider the following schema for products: 5
Product(maker, model, type)
PC(model, speed, ram, hd, price)
Laptop(model, speed, ram, hd, screen, price)
Printer(model, color, type, price)
80 3 Types of SQL Commands are _____ D 1 DDL DML DCL All of the above
81 3 Which of the following is not a type of SQL statement? D 1 Data Data Definition Data Control Data
Manipulation Language (DDL) Language (DCL) Communication
Language (DML) Language (DCL)
82 3 Commands that comes under DDL is/are – D 1 DROP CREATE TRUNCATE All of the above
83 3 Command that comes under DML is/are – C 1 ROLLBACK GRANT UPDATE All of the above
84 3 Command that comes under DCL is/are - C 1 GRANT REVOKE Both A. and B. None of the
above
85 3 Which of the following is generally used for performing tasks like D 1 DML(Data Query Relational DDL(Data
creating the structure of the relations, deleting relation? Manipulation Schema Definition
Language) Language)
86 3 You can add a row using SQL in a database with which of the C 1 ADD CREATE INSERT MAKE
following?
87 3 Which of the following syntax is true for adding a new record in A 1 INSERT INTO INSERT INTO INSERT INTO INSERT IN
table ? table_name (column1, table_name table_name
(column1, column2, (column1, (column1,
column2, column3, ...) column2, column2,
column3, ...) VALUES column3, ...) column3, ...)
VALUES (value1, value2, (value1, value2, VALUES
(value1, value2, value3, ...); value3, ...); (value1, value2,
value3, ...); value3, ...);
88 3 The FROM SQL clause is used to______? A 1 specify what specify range for specify search None of these
table we are search condition condition
selecting or
deleting data
FROM
89 3 The table records can be retrieved using which command? B 1 RETRIEVE SELECT CREATE ALTER
90 3 What default value gets stored in columns of the table? A 1 NULL 0 1 -1
Page 4 of 7
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS)
Question Bank (SEM-III & V-2023-24 EC Engineering)
Note : This question bank is only for reference purpose . L.J.U Test question paper may not be completely set from this question bank.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
91 3 Which of the following is wrong? D 1 select * from alter table alter table None of these
table_name; table_name add table_name
column_name rename to
column_datatype new_table_name;
;
92 3 From the set of results, in order to remove the duplicate values B 1 Where Distinct Remove Drop
from a particular column, _______ clause is used within select
clause.
93 3 Which of the following statement removes database including its A 1 DROP DELETE REMOVE None of the
related components? DATABASE DATABASE DATABASE mentioned
94 3 Command that is used to add attributes to an existing relation, is A 1 Alter Tailor Modify Eliminate
said to be
95 3 Which statement would add a column CGPA to a table Student A 1 ALTER TABLE ALTER TABLE ALTER TABLE Both A and C
which is already created Student ADD CGPA Student (CGPA
COLUMN NUMBER(3,1); NUMBER(3,1));
CGPA
NUMBER;
96 3 To delete a particular column in a relation the command used is: D 1 UPDATE TRUNCATE DELETE ALTER , DROP
TABLE COLUMN COLUMN
97 3 Data manipulation language (DML) includes statements that B 1 Structure Data User Size
modify the _____ of a database.
98 3 INSERT INTO instructor VALUES (101, ‘Aaryan’, ‘Chemistry’, C 1 Inserts column Modifies Inserts record Modifies record
70000) structure of table
What does the above query do?
99 3 How is an expression evaluated in set-difference in terms of C 1 Left to left left to right right to left none of the above
precedence?
100 3 What will be the result of following SQL query? D 1 Creates a new Creates a new Deletes tableCreates a new
CREATE TABLE Student_info AS SELECT * FROM Student; table named table named Student and table named
Student with Student_info creates a newStudent_info
specified with specified table named with columns
columns by user columns by user Student_info taken from
existing table
Student
101 3 Which of the following is correct if you want to change the name B 1 Update name= Update employee Update empId=2 Update name
of the employee whose empId is 2 in table named Employee to ‘Ram’ where set name= ‘Ram’ in employee set =’Ram’ in
‘Ram’? empId=2; where empId=2; name= ‘Ram’ ; employee;
102 3 Which command is used to change the structure of an existing C 1 INSERT CREATE ALTER UPDATE
table in SQL?
103 3 Which of the following is correct to delete records of student with A 1 Delete from Delete 100 from Delete Alter table
roll_no 100 from Student table. student where student; roll_no=100 student delete
roll_no=100; from student roll_no=100;
table;
104 3 Which command is used to change the structure of an existing D 1 Insert Delete Update Alter
table in SQL?
105 3 Write queries for the following tables: 2
T1 ( Empno, Ename , Salary, Designation) ,T2 (Empno, Deptno.)
(1) Add a new column Deptname in table T2.
(2) Change the designation of Geeta from ‘Manager’ to ‘Senior
Manager’.
Page 5 of 7
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS)
Question Bank (SEM-III & V-2023-24 EC Engineering)
Note : This question bank is only for reference purpose . L.J.U Test question paper may not be completely set from this question bank.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
Page 6 of 7
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS)
Question Bank (SEM-III & V-2023-24 EC Engineering)
Note : This question bank is only for reference purpose . L.J.U Test question paper may not be completely set from this question bank.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
Page 7 of 7