0% found this document useful (0 votes)
45 views24 pages

MCQ and Question Answers Unit 1 and Unit 4

Uploaded by

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

MCQ and Question Answers Unit 1 and Unit 4

Uploaded by

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

RDBMS Class 11 MCQ

1. A _________ is an organized collection of data.


a. Database
b. Digital Document
c. Spreadsheet
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
d. None of the above

3. In an RDBMS data is stored in _________.


a. Table
b. Form
c. Query
d. Report

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


a. DBMS
b. RDBMS
c. DB
d. None of the above

5. Example of the database ________.


a. Microsoft Access
b. OpenOffice Base
c. MySQL
d. All of the above

Show Answer ⟶
6. DBMS Stands for __________.
a. Database Management System
b. Database Manage System
c. Data Manage System
d. None of the above

Show Answer ⟶
7. A table refers to a _________ representation of data arranged in columns and rows.
a. Two dimensional
b. Three dimensional
c. Four dimensional
d. None of the above

Show Answer ⟶
8. __________ is used to manage databases in an RDBMS.
a. Structred Program
b. Structured Query Language (SQL)
c. Forms
d. Report

Show Answer ⟶
9. MySQL commands are divided into different categories_________.
a. DDL, DMC and DDP
b. DDL, DML and DPP
c. DDL, DML and DCL
d. None of the above

Show Answer ⟶
RDBMS Class 11 MCQ

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


a. Create
b. Select
c. Insert
d. Modify

Show Answer ⟶
11. __________ statement is used to create a new database.
a. Select Database
b. Insert Database
c. Create Database
d. Modify Database

Show Answer ⟶
12. ___________ statement is used to create a new table.
a. Select Table
b. Insert Table
c. Create Table
d. Modify Table

Show Answer ⟶
13. The _________ statement is used to see the structure of a table.
a. Modify
b. Display
c. Describe
d. Select

Show Answer ⟶
14. ALTER TABLE statement is used to change the structure of a table.
a. Modify Table
b. Display Table
c. Alter Table
d. Select Table

Show Answer ⟶
RDBMS Class 11 MCQ

15. _______ command is used to delete tables.


a. Delete Table
b. Cut Table
c. Drop Table
d. None of the above

Show Answer ⟶
16. _________ statement is used to insert a new row in a table.
a. Insert into
b. Select into
c. Display into
d. Add into

Show Answer ⟶
17. Data stored in a single table is known as __________.
a. Flat File
b. Relational
c. Both a) and b)
d. None of the above

Show Answer ⟶
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)
d. None of the above

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

Show Answer ⟶
RDBMS Class 11 MCQ

20. _________ means display all columns.


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

Show Answer ⟶
21. The __________ clause is used to select specific rows.
a. What clause
b. When clause
c. Where clause
d. None of the above

Show Answer ⟶
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
d. Add Table

Show Answer ⟶
23. The keyword _________ is used to eliminate redundant data from display.
a. Modify
b. Distinct
c. Describe
d. None of the above

Show Answer ⟶
24 Logical operators ________ are used to connect relational expressions in the WHERE
clause.
a. OR
b. AND
c. NOT
d. All of the above

Show Answer ⟶
RDBMS Class 11 MCQ

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


a. OR
b. AND
c. NOT
d. All of the above

Show Answer ⟶
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
d. Between

Show Answer ⟶
27. The __________ operator selects values that match any value in the given list of values.
a. Multiplication
b. Modular
c. IN
d. Between

Show Answer ⟶
28. Give the example of wild card character _______.
a. %
b. _
c. Both a) and b)
d. None of the above

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

Show Answer ⟶
RDBMS Class 11 MCQ

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


a. %
b. _
c. &
d. #

Show Answer ⟶
31. _________ represents a value that is unavailable, unassigned, unknown or inapplicable.
a. None
b. NULL
c. Empty
d. None of the above

Show Answer ⟶
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
d. Where cause
Show Answer ⟶
33. ________ statement is used to modify existing data in a table.
a. Insert Table
b. Update Table
c. Display Table
d. Add Table

Show Answer ⟶
34. _________ statement is used to delete rows from a table.
a. Insert Statement
b. Alter Statement
c. Display Statement
d. Delete Statement

Show Answer ⟶
RDBMS Class 11 MCQ

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
d. None of the above

Show Answer ⟶
36. The unique field present in the table is called __________.
a. Primary Key
b. Candidate Key
c. Foreign Key
d. None of the above

Show Answer ⟶
37. When the primary key is applied on multiple columns is known as __________.
a. Primary Key
b. Composite Primary Key
c. Foreign Key
d. None of the above

Show Answer ⟶
38. SQL stands for _____________.
a. Single Query Language
b. Structured Query Language
c. Semantic Query Language
d. None of the above

Show Answer ⟶
39. A row also called a Record or _________ represents a single, data item in a table.
a. Column
b. Tuples
c. Fields
d. None of the above

Show Answer ⟶
RDBMS Class 11 MCQ

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

Show Answer ⟶
41. _____________ are used to identify which type of data we are going to store in
the database.
a. Datatype
b. DataItem
c. DataValue
d. DataCat

Show Answer ⟶
42. By default the length of the numerical data type is _______.
a. 05
b. 10
c. 20
d. 30

Show Answer ⟶
43. ________ means to arrange the data in either ascending order or descending order.
a. Filter
b. Sorting
c. Arrangement
d. None of the above

Show Answer ⟶
44. In database, data can be linked between two or more tables with the help of ____________.
a. Primary Key
b. Foreign Key
c. Both a) and b)
d. None of the above

Show Answer ⟶
RDBMS Class 11 MCQ
45. Referential Integrity helps to avoid ____________.
a. If you want to add a record in the related table and if there is no associated record available
in the primary key table.
b. Changing values in a primary if there are any dependent records in the related table.
c. Deleting records from a primary key table if there are any matching related records available
in the associated table.
d. All of the above

Show Answer ⟶
46. The connection or association between two or more table is known as ____________
a. Connection
b. Relationship
c. Connector
d. None of the above

Show Answer ⟶
47. Relationships between tables help to __________.
a. Save time
b. Reduce data-entry errors
c. Summarize data from related tables
d. All of the above

Show Answer ⟶
48. To retrieve all the columns in a table the syntax is ___________.
a. Select $ from <tablename>;
b. Select * <tablename>;
c. Select * from <tablename>;
d. Select % <tablename>;

Show Answer ⟶
49. A ____________ is a subset of DML that just deals with information retrieval.
a. Query Language
b. Structure Language
c. Both a) and b)
d. None of the above

Show Answer ⟶
50. A ______________ is a language that enables users to access and manipulate data in
a database.
a. Data Manipulation Language (DML)
b. Data Definition Language (DDL)
c. Both a) and b)
d. None of the above

Computer Organization Class 11 MCQ


1. Computer is an electronic device and works on electronic signals. In computer systems on
and off signals denote ________ respectively.
a. 1 and 0
b. 2 and 9
c. 3 and 8

Show Answer ⟶
4. 4 and 6

2. Computers understand only ___________ language.


a. Human Language
b. Binary Language
c. English Language

Show Answer ⟶
d. None of the above

3. _________ helps to convert high level languages to binary languages.


a. Translator
b. Reader
c. Converter

Show Answer ⟶
d. None of the above

4. The data and/or instructions given by the user to the machine are termed as Input and the
result
generated by the machine after processing the data is the __________.
a. Process
b. Output
c. Input

Show Answer ⟶
d. None of the above

Computer Organization Class 11 MCQ


5. Advantage/Characteristics of a computer system.
a. Diligence
b. Versatility
c. Accuracy

Show Answer ⟶
d. All of the above

6. IPO Cycle stands for ___________.


a. Input Process Output
b. Individual Person Outcome
c. Internal Process Outcome

Show Answer ⟶
d. None of the above

7. The _________ unit holds the data and instructions during the processing.
a. Input
b. Output
c. Memory

Show Answer ⟶
d. None of the above

8.What are the different types of computer storage devices __________.


a. Primary Memory
b. Secondary Memory
c. Both a) and b)

Show Answer ⟶
d. None of the above
9. ___________ memory is directly accessed by the CPU and it is also fast and expensive
memory.
a. Primary Memory
b. Secondary Memory
c. External Memory

Show Answer ⟶
d. None of the above

Computer Organization Class 11 MCQ


10. Give some examples of primary memory _________.
a. RAM
b. ROM
c. Both a) and b)

Show Answer ⟶
d. None of the above

11. RAM Stands for _______________.


a. Roman Access Memory
b. Random Access Memory
c. Randomly Accessible Memory

Show Answer ⟶
d. None of the above

12. RAM is also known as ____________.


a. Volatile memory
b. Non – Volatile memory
c. External memory

Show Answer ⟶
d. None of the above

13. Type of RAM ___________.


a. DRAM
b. SRAM
c. Both a) and b)

Show Answer ⟶
d. None of the above

14. DRAM stands for _____________.


a. Dynamic Random Access Memory
b. Digital Random Access Memory
c. Dynamic Random Accessible Memory

Show Answer ⟶
d. None of the above

Computer Organization Class 11 MCQ


15. SRAM Stands for ___________.
a. Sub Random Access Memory
b. Static Random Access Memory
c. Social Random Access Memory

Show Answer ⟶
d. Static Random Accessible Memory

16. ROM is also known as __________.


a. Volatile memory
b. Non – Volatile memory
c. External memory
d. None of the above
Show Answer ⟶
17. PROM Stands for ___________.
a. Programmable Read Only Memory
b. Program Read Only Memory
c. Prolog Read Only Memory

Show Answer ⟶
d. None of the above

18. EPROM Stands for ___________.


a. Electrically Erasable Programmable Read Only Memory
b. Electrically Erasable Program Read Only Memory
c. Electrically Erasable Prolog Read Only Memory

Show Answer ⟶
d. None of the above

19. Give an example of the device which belongs to Secondary Storage ___________.
a. Hard Disk
b. Compact Disk
c. Magnetic Tapes

Show Answer ⟶
d. All of the above

Computer Organization Class 11 MCQ


20. __________ is a chip-based computer component that makes retrieving data from the
computer’s memory more efficient.
a. Random Access Memory
b. Read Only Memory
c. Cache Memory

Show Answer ⟶
d. None of the above

21. ___________ coordinates with the peripheral devices to accept the input or display the
output. It is like a manager of all operations.
a. Control Unit
b. Arithmetic Logic Unit
c. Memory Unit

Show Answer ⟶
d. None of the above

22. ____________ retrieves the data from the storage unit and performs the arithmetic
calculations and/or comparisons on them and the processed data is then sent back to the
storage.
a. Control Unit
b. Arithmetic Logic Unit
c. Memory Unit

Show Answer ⟶
d. None of the above

23. __________ is the main circuit board which holds together various components like CPU,
memory, connectors for the hard drive and optical drives.
a. Hard Disk
b. MotherBoard
c. CPU

Show Answer ⟶
d. None of the above
24. __________ it is a large printer-like device that is used to take print of large maps,
architectural designs.
a. Plotter
b. Inkjet Printer
c. Laser Printer

Show Answer ⟶
d. All of the above

Computer Organization Class 11 MCQ


25. ____________it is an output device that gives an enlarged view of the output on a large
screen. It is generally used for giving a view of output to a large audience.
a. LED Monitor
b. Projector
c. LCD Monitor

Show Answer ⟶
d. All of the above

26. Give some examples of processor __________.


a. Dual – core
b. Quad – core
c. Octa – core

Show Answer ⟶
d. All of the above

27. Give some of the examples of processor manufacturing companies ___________.


a. Intel
b. AMD
c. Both a) and b)

Show Answer ⟶
d. None of the above

28. Speed of processors is usually measured in ____________.


a. Megahertz (MHz)
b. Gigahertz (GHz)
c. Both a) and b)

Show Answer ⟶
d. None of the above

29. All the data stored in the c drive of a computer is basically stored in ____________.
a. Hard disk
b. CD-ROM
c. Pen Drive

Show Answer ⟶
d. All of the above

Computer Organization Class 11 MCQ


30. 1 nibble = __________.
a. 4 bits
b. 8 bits
c. 16 bits

Show Answer ⟶
d. All of the above

31. 1024 MB = __________.


a. 1 GB
b. 1 TB
c. 1 PB

Show Answer ⟶
d. 1 Exabyte

32. Digital Video Disc(DVD) are examples of optical storage devices. Capacity of a DVD is
higher than ___________.
a. Hard Disk
b. Compact Disk
c. External Hard Disk

Show Answer ⟶
d. All of the above

33. Give some examples of Operating Systems ____________.


a. MS-Dos
b. Solaris
c. Windows 10

Show Answer ⟶
d. All of the above

34. Operating System as an Interface Functions of an Operating system can be broadly


categorized as___________.
a. Communication Manager
b. Resource Management
c. Process Management

Show Answer ⟶
d. All of the above

Computer Organization Class 11 MCQ


35. ____________communicating with the peripheral devices or the internet, are addressed by
the operating system.
a. Communication Manager
b. Resource Management
c. Process Management

Show Answer ⟶
d. All of the above

36. _________ management helps to process the program currently executing in the memory or
waiting for the CPU.
a. Communication Manager
b. Resource Management
c. Process Management

Show Answer ⟶
d. All of the above

37. ____________ component of an operating system allocates memory to the processes in a


dynamic manner that is allocated on demand and released when not needed.
a. Communication Manager
b. Resource Management
c. Memory Management

Show Answer ⟶
d. File Management

38. __________ takes care of all the files and folders (directories) maintained on the computer
disk. The basic tasks that a user needs to perform on files are creation, renaming, deletion,
copying or moving of a file or folder.
a. Communication Manager
b. Resource Management
c. Memory Management

Show Answer ⟶
d. File Management

39. What are the different types of Operating System ____________.


a. Single – tasking and Multi – tasking Operating System
b. Single user and Multi user Operating System
c. Real Time Operating System

Show Answer ⟶
d. All of the above

Computer Organization Class 11 MCQ


40. __________ operating systems allow execution of only a single program at a time.
a. Single tasking Operating System
b. Multi tasking Operating System
c. Real time Operating System

Show Answer ⟶
d. Batch Processing System

41. _____________ operating system can execute more than one program simultaneously. The
processor time, in this case, is divided amongst various processes.
a. Single tasking Operating System
b. Multi tasking Operating System
c. Real time Operating System

Show Answer ⟶
d. Batch Processing System

42. ___________ operating systems allow only one user to use the system. The desktop
systems can be classified as typical single user systems
a. Single User Operating System
b. Multi User Operating System
c. Real time Operating System

Show Answer ⟶
d. Batch Processing System

43. ____________ operating systems allow many users to access the system by maintaining an
account of all the registered users.
a. Single User Operating System
b. Multi User Operating System
c. Real time Operating System

Show Answer ⟶
d. Batch Processing System

44. Operating systems which ensure that the response time is fixed are categorized as
______________.
a. Single User Operating System
b. Multi User Operating System
c. Real time Operating System

Show Answer ⟶
d. Batch Processing System

Computer Organization Class 11 MCQ


45. In a ________________, similar jobs are clubbed together and submitted as a block to the
processor for execution.
a. Single User Operating System
b. Multi User Operating System
c. Real time Operating System

Show Answer ⟶
d. Batch Processing System

46. If any computer hardware is not working then ___________.


a. You have to check the cable
b. Replace the hardware device
c. Destroy the hardware device

Show Answer ⟶
d. All of the above

47. To improve the performance of a computer you need to _____________.


a. Shutdown the computer
b. Close running programs that are not being used
c. Delete all files and folder from the computer

Show Answer ⟶
d. None of the above

48. What is a shortcut key for opening a Help window on a computer.


a. F5
b. F4
c. F3

Show Answer ⟶
d. F2

49. Troubleshoot the hardware problem, if the monitor is not showing any display or Screen is
blank.
a. Check the System is in Sleep mode
b. Check the Monitor cable
c. If Laptop, check the battery is low

Show Answer ⟶
d. All of the above

50. If the keyboard is not responding then what we have to do.


a. Check the cable connection
b. Check for any damage
c. If wireless keyboard, check the batteries
d. All of the above

Computer Organization Class 11 Question and


Answer
1. What are the different characteristics of a Computer?

Answer – The different characteristics of a computer are –

a. Speed – Computers are their ability to process data and instructions at a very high speed.

b. Versatility – is the ability of a computer to do a variety of jobs at the same time.

c. Accuracy – Not only does the machine perform varied jobs with high speed, but also does them with
high precision and accuracy.
d. Diligence – Another noteworthy feature of computers is its ability to perform the same task repeatedly
over and over again without getting bored.

e. Memory – One of the notable features of a computer is its memory. However, the computer’s main
memory is volatile, i.e., it is lost when we switch off the computer.

f. Storage – Huge amounts of data and information can be stored in a computer for future retrieval. The
human memory is limited and fades away with time, which is not true for a computer.

Computer Organization Class 11 Question and Answer

2. What are the different memories in the computer system?


Answer – There are two different type of memory in computer system –
a. Primary Memory
b. Secondary memory

Primary Memory – Data stored in Primary Memory is directly accessible by the CPU. The inputs
received in the above steps are stored in the computer memory, called random access memory ( RAM).
This storage is relatively fast and expensive as compared to the secondary storage.

Secondary Memory – The memory which is external to the computer system forms the secondary
storage, for example, the magnetic tapes, compact disks, pen drives are all examples of the secondary
storage. These are not directly connected to the CPU.

Computer Organization Class 11 Question and Answer

3. What are the different types of RAM?


Answer – RAM is a temporary storage device it is also known as Volatile memory. RAM is divided into
two type –

 DRAM
 SRAM
4. What is the difference between SRAM and DRAM?
Answer – SRAM is a memory semiconductor that is more energy-efficient and faster than DRAM. A
memory device called a DRAM can store more data than an SRAM chip, but it also consumes more
power.

5. What is Cache Memory?


Answer – Cache memory is a particularly fast memory that helps the CPU keep up with its high speed. It
serves as a buffer and is often positioned between the CPU and primary memory. It is quite pricey but
decreases the average access time to data from the main memory.

Computer Organization Class 11 Question and Answer

6. Briefly describe the roles of the ALU and CU?


Answer –
ALU – Arithmetic Logic Unit is referred to as ALU. It is a crucial component of the CPU. It does all
fundamental arithmetic operations, including addition, subtraction, multiplication, and division, as well as
logical operations.
CU – Control Unit is referred to as CU. It is one of the CPU’s core components. Choosing the most
effective approach to work is the major responsibility of the CU. It directs all associated operations to the
various processing components.

7. Establish a distinction between input and output devices.


Answer – An output device is connected to a computer that receives incoming data, whereas an input
device is connected to a computer that puts out data to the computer. The output device copies or
displays the data that was sent by the input device to the computer for processing.

Computer Organization Class 11 Question and Answer

8. Describe the function of cache memory.


Answer – The effectiveness of data retrieval is increased by cache memory, which is crucial. It saves
information that the CPU will probably need later on, such as data or programme instructions, that are
frequently employed in the execution of programmes.

9. Describe the computer’s storage components.


Answer – A storage device is any piece of computer hardware that is used to store, transfer, or extract
data files and objects. Information can be temporarily or permanently stored by storage devices. They
could be internal to a computer, server, or other computing equipment or external.

Computer Organization Class 11 Question and Answer

10. Write a short note on Optical storage devices?


Answer – Low-power laser beams are used in optical storage, an electronic storage media, to store and
retrieve digital (binary) data. In optical storage technology, a laser beam creates tiny pits that are placed
in a spiral pattern on the surface of an optical, or laser, disc to encode digital data.

11. Explain the role of the Power Supply Unit.


Answer – A power supply unit (PSU) transforms mains AC electricity into low-voltage, regulated DC
power for a computer’s internal components. Switched-mode power supply are used in every modern
personal computer.

Computer Organization Class 11 Question and Answer

12. List the various functions of an operating system.


Answer – The various functions of an operating system are –

a. Communication manager – The operating system handles the system’s communication


requirements, whether they include connecting to the internet or peripheral devices.

b. Resource Management – The management of a computer system’s resources has a significant


impact on how well it functions. The resources we discuss in this article include the computer’s memory,
CPU time, files, secondary storage, input/output devices, and more.

c. Process Management – A programme that is now running in memory or waiting for the CPU is
referred to as a process. There are numerous processes running simultaneously in a computer. All of the
processes running on the computer are managed, regulated, and scheduled by the OS.
d. Memory Management – The memory management section of an operating system dynamically
allocates memory to the processes as needed and releases it when not in use.

e. File Management – All of the files and folders (directories) kept on the computer drive are taken care
of by the operating system. The fundamental operations that a user must carry out on files include
creating, renaming, deleting, copying, and relocating files and folders.

Computer Organization Class 11 Question and Answer

13. Compare batch processing systems and multiprogramming systems?


Answer – Multiprogramming is the capacity of an operating system to run numerous programmes at the
same time on a single processor machine. Batch processing is the grouping of several processing jobs to
be completed one after another by a computer without any human input.

14 What is FAT? Give an example.


Answer – The file system known as File Allocation Table (FAT) was created for hard drives and at first
used 12 or 16 bits for each cluster item. The operating system (OS) makes use of it to control files on
hard drives and in other computer systems.
Example of FAT file system are – FAT16, FAT32 and NTFS

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.
RDBMS Class 11 Questions and Answers

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.

RDBMS Class 11 Questions and Answers

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.

RDBMS Class 11 Questions and Answers


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.

RDBMS Class 11 Questions and Answers

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.

RDBMS Class 11 Questions and Answers

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 “Students”

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

RDBMS Class 11 Questions and Answers

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

RDBMS Class 11 Questions and Answers

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

RDBMS Class 11 Questions and Answers

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

RDBMS Class 11 Questions and Answers

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