0% found this document useful (0 votes)
41 views9 pages

Rdbms

Uploaded by

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

Rdbms

Uploaded by

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

RDBMS

1. A _________ is an organized collection of data.


a. Database
b. Digital Document
c. Spreadsheet

Answer ⟵a. Database


d. None of the above

2. A ________ is a software package that can be used for creating and managing databases.
a. Database Management System
b. Basedata Management System
c. Database Manage System

Answer ⟵a. Database Management System


d. None of the above

3. In an RDBMS data is stored in _________.


a. Table
b. Form
c. Query

Answer ⟵a. Table


d. Report

4. A_________________ database management system is referred to as a relational model.


a. DBMS
b. RDBMS
c. DB

Answer ⟵b. RDBMS


d. None of the above

5. Example of the database ________.


a. Microsoft Access
b. OpenOffice Base
c. MySQL

Answer ⟵d. All of the above


d. All of the above

6. DBMS Stands for __________.


a. Database Management System
b. Database Manage System
c. Data Manage System

Answer ⟵a. Database Management System


d. None of the above

7. A table refers to a _________ representation of data arranged in columns and rows.


a. Two dimensional
b. Three dimensional
c. Four dimensional

Answer ⟵a. Two dimensional


d. None of the above

8. __________ is used to manage databases in an RDBMS.


a. Structred Program
b. Structured Query Language (SQL)

Answer ⟵b. Structured Query Language (SQL)


c. Forms d. Report

9. MySQL commands are divided into different categories_________.


a. DDL, DMC and DDP
b. DDL, DML and DPP
c. DDL, DML and DCL

Answer ⟵c. DDL, DML and DCL


d. None of the above

10. _________ command is used to create databases and tables.


a. Create
b. Select
c. Insert

Answer ⟵a. Create


d. Modify

11. __________ statement is used to create a new database.


a. Select Database
b. Insert Database
c. Create Database

Answer ⟵c. Create Database


d. Modify Database

12. ___________ statement is used to create a new table.


a. Select Table
b. Insert Table
c. Create Table

Answer ⟵c. Create Table


d. Modify Table

13. The _________ statement is used to see the structure of a table.


a. Modify
b. Display
c. Describe

Answer ⟵c. Describe


d. Select

14. ALTER TABLE statement is used to change the structure of a table.


a. Modify Table
b. Display Table
c. Alter Table

Answer ⟵c. Alter Table


d. Select Table

15. _______ command is used to delete tables.


a. Delete Table
b. Cut Table
c. Drop Table

Answer ⟵c. Drop Table


d. None of the above

16. _________ statement is used to insert a new row in a table.


a. Insert into
b. Select into
c. Display into

Answer ⟵a. Insert into


d. Add into

17. Data stored in a single table is known as __________.


a. Flat File
b. Relational

Answer ⟵a. Flat File


c. Both a) and b) d. None of the above

18. Data is stored in multiple tables, which are connected together via a common field.
a. Flat File
b. Relational
c. Both a) and b)

Answer ⟵b. Relational


d. None of the above

19. The _______ statement is used to fetch data from one or more database tables.
a. Insert statement
b. Select statement
c. Display statement

Answer ⟵b. Select statement


d. Add statement

20. _________ means display all columns.


a. Insert *
b. Select *
c. Select %

Answer ⟵b. Select *


d. Select @

21. The __________ clause is used to select specific rows.


a. What clause
b. When clause
c. Where clause

Answer ⟵c. Where clause


d. None of the above

22. We can change the structure of a table ie. add, remove or change its column(s) using the _________ statement.
a. Insert Table
b. Alter Table
c. Display Table

Answer ⟵b. Alter Table


d. Add Table

23. The keyword _________ is used to eliminate redundant data from display.
a. Modify
b. Distinct
c. Describe

Answer ⟵b. Distinct


d. None of the above

24 Logical operators ________ are used to connect relational expressions in the WHERE clause.
a. OR
b. AND
c. NOT

Answer ⟵d. All of the above


d. All of the above

25. Logical operator _______ is used to negate a condition.


a. OR
b. AND
c. NOT
d. All of the above
Answer ⟵c. NOT
26. The _________ operator defines the range of values that the column values must fall into to make the condition
true.
a. Multiplication
b. Modular
c. Equalto

Answer ⟵d. Between


d. Between

27. The __________ operator selects values that match any value in the given list of values.
a. Multiplication
b. Modular

Answer ⟵c. IN
c. IN d. Between

28. Give the example of wild card character _______.


a. %
b. _

Answer ⟵c. Both a) and b)


c. Both a) and b) d. None of the above

29. The _________ symbol is used to represent any sequence of zero or more characters.
a. %
b. _
c. &

Answer ⟵a. %
d. #

30. The _________ symbol is used to represent a single character.


a. %
b. _
c. &

Answer ⟵b. _
d. #

31. _________ represents a value that is unavailable, unassigned, unknown or inapplicable.


a. None
b. NULL
c. Empty

Answer ⟵b. NULL


d. None of the above

32. The results of the SELECT statement can be displayed in the ascending or descending order of a single column
or columns using _________ clause.
a. Non Order by
b. Modular
c. Order by

Answer ⟵c. Order by


d. Where cause

33. ________ statement is used to modify existing data in a table.


a. Insert Table
b. Update Table
c. Display Table

Answer ⟵b. Update Table


d. Add Table
34. _________ statement is used to delete rows from a table.
a. Insert Statement
b. Alter Statement
c. Display Statement

Answer ⟵d. Delete Statement


d. Delete Statement

35. When the same piece of data is stored in two or more locations, it is called ______________.
a. Data Redundancy
b. Data Integrity
c. Data Consistency

Answer ⟵a. Data Redundancy


d. None of the above

36. The unique field present in the table is called __________.


a. Primary Key
b. Candidate Key
c. Foreign Key

Answer ⟵a. Primary Key


d. None of the above

37. When the primary key is applied on multiple columns is known as __________.
a. Primary Key
b. Composite Primary Key
c. Foreign Key

Answer ⟵b. Composite Primary Key


d. None of the above

38. SQL stands for _____________.


a. Single Query Language
b. Structured Query Language
c. Semantic Query Language

Answer ⟵b. Structured Query Language


d. None of the above

39. A row also called a Record or _________ represents a single, data item in a table.
a. Column
b. Tuples
c. Fields

Answer ⟵b. Tuples


d. None of the above

40. Which datatype is used for storing date and time both in the database.
a. Date
b. Time
c. Timestamp

Answer ⟵c. Timestamp


d. None of the above

RDBMS Class 11 Questions and Answers


1. Write a short note on MySQL.
Answer – Based on structured query language, MySQL is a relational database management system (RDBMS)
created by Oracle (SQL). A systematic collection of data is called a database. Anything from a straightforward
shopping list to a photo gallery or a location to store the enormous volumes of information in a business network
may be it.
2. Mention features of a DBMS.
Answer – Features of a DBMS –
 Minimum Redundancy and Duplication. …
 Usage Of Query Languages. …
 Multi User Access. …
 Reduced amount of space and money spent on storage. …
 Data Organization. …
 Customization of the Database. …
 Data Retrieval. …
 Data Integrity is Maintained.

3. What is the difference between DBMS and RDBMS?


Answer – Database Management System is referred to as DBMS, and Relational Database Management System is
referred to as RDBMS. Unlike RDBMS, which stores data in the form of tables, DBMS stores data as a file.
4. List some features of MySQL.
Answer – Features of MySQL ae –
a. MySQL based on Client/Server Architecture
b. Free to use
c. Highly Flexibal
d. Compatible on many operating sytem
e. High performance
f. High productivity
g. Platform independent

5. How is Primary Key different from Candidate Key?


Answer – A record in a table is uniquely identified by its primary key, which must be both unique and non-null.
There can only be one primary key per table. A candidate key can be used in conjunction with a primary key to
uniquely identify records in a table.

6. Define the key(s) used in MySQL.


Answer – There are four different types of Keys –
a. Primary Key – The group of one or more columns used to uniquely identify each row of a relation is called its
Primary Key.
b. Cndidate Key – A column or a group of columns which can be used as the primary key of a relation is called a
Candidate key because it is one of the candidates available to be the primary key of the relation.
c. Alternate Key – A candidate key of a table which is not selected as the primary key is called its Alternate Key.
d. Foreign Key – A primary key of a base table when used in some other table is called as Foriegn Key.

7. State the similarity and difference between the Primary Key, Candidate Key, Alternate Key and Foreign
Key
Answer –
a. Primary Key – The group of one or more columns used to uniquely identify each row of a relation is called its
Primary Key.
b. Cndidate Key – A column or a group of columns which can be used as the primary key of a relation is called a
Candidate key because it is one of the candidates available to be the primary key of the relation.
c. Alternate Key – A candidate key of a table which is not selected as the primary key is called its Alternate Key.
d. Foreign Key – A primary key of a base table when used in some other table is called as Foriegn Key.

8. Which statement is used to select a database and make it current?


Answer – To choose data from a database, use the SELECT statement. The information received is kept in a result
table known as the result-set.
9. How is a database related to table(s)?
Answer – In databases, a table is a collection of data elements (values) organised using a model of vertical columns
(named) and horizontal rows, with a cell serving as the intersection of a row and a column. A table can have any
number of rows but only a certain number of columns.

10. Write SQL statement to view names of all the tables contained in the current database.
Answer – To display all the table in database –
SQL> SHOW TABLES;

11. In a database there is a table Cabinet. The data entry operator is not able to put NULL in a column of
Cabinet? What may be the possible reason(s)?
Answer – The data entry operator cannot enter duplicate values in a column of a cabinet; this is likely because the
column contains a primary key.

12. Do Primary Key column(s) of a table accept NULL values?


Answer – Primary Key column does not support NULL Values.
13. There is a table T1 with combination of columns C1, C2, and C3 as its primary key? Is it possible to
enter:
a. NULL values in any of these columns?
b. Duplicate values in any of these columns?
Answer –
a. No
b. Not possible
18. What are the differences between DELETE and DROP commands of SQL?
Answer – The DELETE command in Data Manipulation Language (DML) is used to remove tuples or records
from a relation or table. In contrast, the DDL command DROP is used to delete named schema elements such as
relations, tables, constraints, or the whole schema.

19. How many types of language are there in the database?


DDL (Data definition language) – Data definition language is used to design and modify the structure of a
database.
Common DDL commands are
a. Create – This command is used to create database
b. Alter – This command is used to modify the database.
c. Drop – This command is used to delete database tables.
DML (Data manipulation language) – Data manipulation language provides commands for manipulating data in
databases.
Common DML commands are
a. Select – This command is used to display information from the database.
b. Insert – This command is used to insert new records in the database.
c. Delete – This command is used to delete records from the database.
d. Update – This command is used to modify records in the database.

20. Consider the following table “Teachers”


Rollno Student_Name DOB Address Mobile_no Gender Percentage

1 Jugal 10/01/2003 Mumbai 5555555555 M 98

2. Pratigya 24/03/2002 Pune 4444444444 F 82


3 Sandeep 12/12/2003 Delhi 8888888888 M 91

4 Sangeeta 01/07/2004 Banglore 6666666666 F 96

5 Satti 05/09/2002 Mumbai 7777777777 M 89


Write SQL commands:
a. To display all the information from the table whose address is ‘Mumbai’.
Answer – Select * from students where address = “Mumbai”;
b. To list the details of all the students whose percentage is between 90 to 100.
Answer – Select * from students where percentage >= 90 and percentage <= 100;
c. To display the name of all the students whose gender is Female.
Answer – Select Subject from students where Gender = ‘F’;
d. To display the list of names of all the students in alphabetical order.
Answer – Select * from students order by Student_name;

21. Write the SQL commands to answer the queries based on Fabric table
FabricID Fname Type Disc

F001 Shirt Woolen 10

F002 Suit Cotton 20

F003 Tunic Cotton 10

F004 Jeans Denim 5


a. Write a query for insert the following record
(“F005”, “Kurta”, “Woollen”,5)
Answer – insert into Fabric values (‘F005’, ‘Kurta’, ‘Woolen’,5);
b. Write a query to display only those fabric whose disc is more than 10
Answer – select * from Fabric where Disc>10;
c. To display those record whose type is ‘Woolen’
Answer – select * from Fabric where type = ‘Woolen’;
d. To modify the fabric shirt by increasing discount by 10
Answer – update fabric set Disc = Disc + 10 where Fname = ‘Shirt’;
e. To delete the record of fabric F003 from table
Answer – delete from Fabric where FabricID =‘F003’;

22. Consider the following Vendor table and write the queries
VendorID VName DateofRegistration Location

V001 Mother Dairy 20-01-2009 Delhi

V002 Havmor 01-04-2015 Gujrat

V003 Amul 12-05-2012 Kolkata

V004 Kwality Walls 15-10-2013 Mumbai


a. Write a Query to display all records
Answer – Select * from Vendor;
b. Write a Query to add a new row with the following details
(„V005‟, „Vadilal‟, „2010-03-20‟, „Pune‟)
Answer – Insert into Vendor values (“V005‟, “Vadilal‟, “2010-03-20‟, “Pune‟);
c. Write a query to modify the location of V003 from Kolkata to Gujrat
Answer – Update Vendor Set location= “Gujrat‟ Where location= “Kolkata‟;

23. Consider the following table “ITEM”:


Itemno Iname Price Quantity

11 Soap 40 80

22 Powder 80 30

33 Face cream 250 25

44 Shampoo 120 100

55 Soap box 20 50

a. Display the total amount of each item. The amount must be calculated as the price multiplied by quantity
for each item.
Answer – Select price * quantity from item;
b. Display the details of items whose price is less than 50.
Answer – Select * from item where price < 50;

You might also like