0% found this document useful (0 votes)
88 views35 pages

Dbms-Question-And-Answers (Previous Year)

This document contains 56 multiple choice questions related to data and databases. The questions cover topics such as data representation, file organization, database concepts, DBMS components and functions, entity relationship diagrams, database modeling, SQL queries, and basic operations in MySQL.

Uploaded by

KosayAudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views35 pages

Dbms-Question-And-Answers (Previous Year)

This document contains 56 multiple choice questions related to data and databases. The questions cover topics such as data representation, file organization, database concepts, DBMS components and functions, entity relationship diagrams, database modeling, SQL queries, and basic operations in MySQL.

Uploaded by

KosayAudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 35

Question and Answers

1) Data are known ___


a. Information
b. Facts
c. Decision
d. Tables

2) Data can be represented in ___


e. Alphabets and special characters
f. Only digits
g. Only alphabets and digits
h. Alphabets, digits and special characters
3) File is a collection of related data stored in secondary memory. All the
following are disadvantages of the file organization approach except
a. Data is related
b. Difficulty in accessing data
c. Data isolation
d. Integrity Problems

4) What is the full form of DBMS?


a. Data of Binary Management System
b. Database Management System
c. Database Management Service
d. Data Backup Management System
5) What is a database?
a) Organized collection of information that cannot be accessed, updated, and managed
b) Collection of data or information without organizing
c) Organized collection of data or information that can be accessed, updated and managed
d) Organized collection of data that cannot be updated

6) Which of the following is a feature of the database?


a) No-backup for the data stored
b) User interface provided
c) Lack of Authentication
d) Store data in multiple locations

7) Which of the following is not a function of the database?


a) Managing stored data
b) Manipulating data
c) Security for stored data
d) Analysing code
8) Which of the following is a function of the DBMS?
a) Storing data
b) Providing multi-users access control
c) Data Integrity
d) All of the above
9) What does an RDBMS consist of?
a) Collection of Records
b) Collection of Keys
c) Collection of Tables
d) Collection of Fields
10) Entity is a thing or object in the ___
a) Entity relationship diagram
b) Real world
c) Enhanced entity relation diagram
d) Database
11) In a given ERD scenario, entities are mostly identified using ___
a) Noun
b) Their cardinality
c) Their relationship type
d) Proper noun
12) Logical data refers to the data for the table created by the user in the ____
a. Primary memory
b. Secondary memory
c. All of the above
d. None of the above

13) Physical data refers to the data for the table created by the user in the ____
e. Primary memory
f. Secondary memory
g. All of the above
h. None of the above
14) The three level of architecture in the DBMS are
a. ERD, EER, SQL
b. Entity, attribute, cardinality
c. External, conceptual, internal
d. DBA, DA, DBMS

15) Application programmers and online users are example of database users.
Another example of database user is ___ user
e. MySQL
f. Naïve
g. ERD
h. Entity
16) All the following are database language except ___
a. Data definition language
b. Data manipulation language
c. Data control language
d. Database administrator language

17) Data definition language enable users to __


e. Create tables in the database
f. Manipulate table records in the database
g. Specify user authorization to the table data
h. None of the above
18) Data control language enable users to __
a. Create tables in the database
b. Manipulate table records in the database
c. Specify user authorization to the table data
d. None of the above

19) Data manipulation language enable users to __


e. Create tables in the database
f. Manipulate table records in the database
g. Specify user authorization to the table data
h. None of the above
20) 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
21) The entity relationship set is represented in E-R diagram as
a) Double diamonds
b) Undivided rectangles
c) Dashed lines
d) Diamond
22) An entity set that cannot exist without the existence of another entity is
termed as a __________
a) Strong entity set
b) Variant set
c) Weak entity set
d) Variable set
23) Weak entity set is represented as ___
a) Underline
b) Double line
c) Double diamond
d) Double rectangle

24) The relationship between Customer and Order is ___


a. Many-to-Many
b. Zero-to-Many
c. Zero-to-One-to-Many
d. One-to-Many
25) The maximum cardinality is ___ for Customer and __ for Order
a. Many and One
b. One and Many
c. Zero and Many
d. Many and Many

26) The minimum cardinality for both entities is ____


e. Many
f. Optional
g. Optional or One
27) The ___ attribute is a multivalued attribute
a. Hobby
b. Price
c. SKU
d. Email

28) The ___ attribute is a derived attribute


e. Hobby
f. Price
g. SKU
29) The possible attribute in the Product entity that could be used as foreign key in the User entity is
__________
a. Hobby
b. Price
c. SKU
d. Email

30) The possible attribute in the User entity that could be used as foreign key in the Product entity is
__________

e. Hobby
f. Price
g. SKU
31) The relationship between Lecturer and student in the ERD is ____
a. One Lecturer lectures Many Students
b. One Lecturer lectures Many Lecture and Many Students enrolls in
Many Lecture
c. Only A
d. Only B

32) The Many-to-Many relationship in the ERD can be seen between


e. Subjects and Lecture
f. Student and Lecture
g. Only A
h. A and B
33) There are 5 entities and ___ relationships in the ERD
a. 1
b. 2
c. 3
d. 4
34) Which of the following is not true about the model
a. Software product is a subclass of product
b. Product “is a” software product
c. Educational product is a child of product
d. Product is a generalized superclass
35) The software product entity has the following attributes
a. Name, price, and ageGroup
b. Price, name, platforms, and ageGroup
c. Price, name, and platforms
d. Product, software product, educational product
36) How many specialization of Employee are shown in the EERD
a. 4
b. 5
c. 7
d. 2
37) ___ is not a specialization of Employee
a. Secretary
b. Manager
c. Engineer
d. Project
38) Without counting any subclass entity, how many entities are shown in the
EERD?
a. 4
b. 5
c. 3
d. 2
39) The following are local attributes belonging to the Employee subclasses
a. Typing_speed, Tgrade, and Eng_type
b. Salary, Pay_scale, and Employee
c. Employee, Project, and Trade_union
d. Employee, Manager, and Project
40) The 3 subclasses of Employee are all attribute defined specialization based on
the ___ attribute
a. Ssn
b. Name
c. Job_type
d. disjoint
41) The basic constraints that can apply to specialization/generalization are
a. Disjoint, IS-A, and Overlapping
b. Total and Partial
c. Specialization and Generalization
d. Disjointness, Overlapping, and Completeness

42) If the subclasses are disjoint, then an entity occurrence can be a member of
___
e. Only one of the subclasses
f. Many subclasses
g. All of the above
h. None of the above
43) ___ applies when an entity occurrence may be a member of more than one
subclass
a. Overlapping constraint
b. Disjoint constraint
c. Total constraint
d. Partial constraint

44) Which of the following is a disjoint constraint


e. {mandatory}
f. {or}
g. {and}
h. {optional}
45) Which of the following is an overlapping constraint
a. {mandatory}
b. {or}
c. {and}
d. {optional}

46) Which of the following is a completeness total constraint


e. {mandatory}
f. {or}
g. {and}
h. {optional}
47) A subclass with more than one superclass is called a ___
a. Tree subclass
b. Specialized subclass
c. Shared subclass
d. Generalized subclass

48) In a lattice or hierarchy, a subclass inherits attributes not only of its direct
superclass, but also of all its predecessor
e. Subclasses
f. Superclasses
g. All of the above
h. None of the above
49) What will be the output of the following MySQL command?
SELECT *
FROM employee
WHERE title=’HEAD TELLER’;

a. All columns and rows belong to table employee


b. All columns but only those rows which contain ‘HEAD TELLER’ as a “title”
c. All columns don’t belong to table employee
d. None of the mentioned

50) What will be the output of the following MySQL command?


SELECT *
FROM employee
WHERE (title=’HEAD TELLER’) AND (start_date=2013-01-24);

e. All columns and rows belong to table employee


f. All columns but only those rows which contain ‘HEAD TELLER’ as a “title” and 2013-01-24 as a
“start_date”
g. All rows belong to table employee
h. None of the mentioned
51) What will be the output of the following MySQL command?
SELECT emp_id, fname, lname
FROM employee
WHERE title=’HEAD TELLER’ AND start_date=2008-11-24;

a) All columns
b) Only those columns which are mention with “SELECT” clause
c) Columns mention with “SELECT” clause and only those rows which contain ‘HEAD
TELLER’ as a “title” and start_date as 2008-11-24
d) None of the mentioned

52) What will be the output of the following MySQL command?


CREATE table PERSON(ID int(10), Name varchar(20), Phone varchar(10), Address varchar(100));

a) A table within database with new name will be created


b) New table named person without attributes will be created
c) A Person table with four attributes will be created
d) None of the above
53) What MySQL query will generate the following table?

a. select CUST_NAME, CUST_COUNTRY, OUTSTANDING_AMT FROM customer


WHERE CUST_COUNTRY = 'USA' AND OUTSTANDING_AMT > 3000;
b. select CUST_NAME, CUST_COUNTRY, OUTSTANDING_AMT FROM customer
WHERE CUST_COUNTRY = 'USA' AND OUTSTANDING_AMT >= 3000;
c. A and B
d. None of the above
54) What will be the output of the following MySQL command if we consider the
table below?
SELECT sum(outstanding_amt), max(outstanding_amt), min(outstanding_amt), avg(outstanding_amt) FROM CUSTOMER;

a. 600, 6000, 12000, and 600


b. 6000, 12000, 6000, and 9000
c. 12000, 6000, 6000, and 6000
d. 3000, 6000, 12000, and 600
55) The following query will add the Harry Potter record to the table on the
right-hand side.
a. Alter table customer add customer_id = 5, first_name = Harry, last_name = Potter,
age = 31, and country = ‘USA’;
b. Insert into customer values(5, ‘Harry’, ‘Potter;, 31, ‘USA’);
c. Insert into customer values(5, ‘Harry’, ‘Potter’, 31, ‘USA’);
d. Insert into customer value(5, ‘Harry’, ‘Potter’, 31, ‘USA’);
56) The following query will change John from the left-hand table to Johnny
as in the right-hand table
a. Alter table customer change first_name = ‘Johnny’ where first_name =
‘John’;
b. Update from customer first_name = ‘Johnny’ where customer_id = 1;
c. Alter table customer pdate first_name = ‘Johnny’ where customer_id = 1;
d. Update customer set first_name = ‘Johnny’ where customer_id = 1;

You might also like