Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

PartB-Unit3-Database Management system

Uploaded by

Reeti Mahalwar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

PartB-Unit3-Database Management system

Uploaded by

Reeti Mahalwar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

INFORMATION TECHNOLOGY (CODE – 402)

Batch (2023-24)
Practice Worksheet
Unit 3: Database Management System
Attempt all Questions:
1. ___________ is a constraint in the table to check that every record in the table is unique.
a. Primary Key b. Foreign Key
c. Tuple d. Record
2. In which view you can enter the data in a table?
a. Design View b. Datasheet view
c. Form View d. Document view
3. An ___________ sign in the record selector indicates that the row is ready to receive a new
record.
a. Asterisk (*) b. Ampersand (&)
c. Pencil d. Arrow
4. An attractive interface that accept data from the user and inserts it in the corresponding table or
query, is called?
a. Reports b. Tables
c. Forms d. Queries
5. ___________ data field is used to store links to web pages, websites or files.
a. OLE b. Hyperlink
c. Lookup wizard d. Memo

6. _____________ key moves the cursor to next record in the Datasheet view.
a. down arrow key b. Tab key
c. Space Key d. Ctrl+A
7. ______________ prevents the user from entering inconsistent data.
a. Referential Integrity b. Primary Key
c. Relationship d. Sorting data
8. Which of the following is not a field property in Database system?
a. Validation Text b. Format
c. Caption d. Text
9. Which relationship is used if we wish to divide a large table to secure sensitive data in separate
table.
a. One-to-one b. One-to-many
c. Many-to-many d. Many-to-one
The ____________ function groups the records that have the same values in a particular field and
10. returns the count of those values.
a. Sum b. Average
c. Count d. Group By
If a column in table does not have a value, it’s considered as ___________.
11. a. Void b. Null
b. Empty d. Deleted
Which of the following can be used as a wildcard character?
12. a. Like b. When
c. Which d. Look
The _________ datatype is used to insert alphanumeric values in the database.
13. a. VARCHAR b. INTEGER
C. INSERT d. CREATE
DDL stands for_____________________.
14. a. Digital Documentation Language b. Digital Definition language
c. Data Definition language d. Data Defining language
If a column does not have any value in a table, it considered as ____________.
15. a. EMPTY b. NULL
c. DELETE d. Varchar
Which of the following SQL command will retrieve all records of failed student from table
16. RECORD?
a. SELECT * FROM RESULT WHERE RECORD= ‘FAIL’
b. SELECT * FROM RECORD WHERE RESULT= ‘FAIL’
c. SELECT * FROM RECORD WHERE STUDENT= ‘FAIL’
d. SELECT * FROM TABLE RECORD WHERE RESULT= ‘FAIL’
__________ view is used to enter or edit the data.
17.
a. Design View b. Layout View
c. Print View d. Form view
To open the property sheet in Access, press the _________ key.
18. a. Alt+Enter b. Ctrl+Enter
c. Shift+Enter d. Alt+Home
Which is not a part of Report Sections in Access.
19. a. View page b. Page Header
c. Details d. Page Footer
A __________ is established between two or more tables to retrieve data, collectively.
20. a. Redundancy b. Link
c. Relationship d. Bond

What is the name of the table in the given query- INSERT INTO SAMPLE (STU_ID,
21. STU_NAME, RESULT?
a. STU_ID b. STU_NAME
c. SAMPLE d. RESULT
Which SQL command is used to create a table in the database?
22.
a. INSERT b. SELECT
c. CREATE d. DROP
A __________ command is a type of DML command.
23. a. INSERT b. SELECT
c. DROP d. CREATE
The properties of a form can be customised through the _________ dialog box.
24. a. FORM b. Property Form
c. Layout d. Property Sheet
DBMS is a program that controls the creation, maintenance and use of database. Here,
25. DBMS refers to
a. Digital Base Management System b. Data Build Management System
c. Data Base Managing System d. Data Base Management System
Which of these is not a type of Database?
26. a. Hierarchical Database b. Network Database
c. Relational Database d. Translational Database
The Hierarchical Database is also known as ________ structure.
27.
a. Tree b. Graphics
c. Table d. Inverted tree
Which of the following is not the advantage of database?
28. a. Sharing of data b. Reducing Data Redundancy
c. Increase Data Inconsistency d. Data Security
Which of the following store command to retrieve data from database?
29. a. Forms b. Query
c. Reports d. Tables
By default, the length of varchar data type is _________
30. a. 20 b. 30
c. 40 d. 50

Which language help to extract/fetch data from table?


31.
a. MYSQL b. PYTHON
c. OOBase d. HTML
Which of the clause return records in ascending order?
32. a. Order By b. Where
c. Order Asc d. Order Des
Shortcut to execute query in Create Query in SQL View is:
33. a. F5 Key b. F7 Key
c. F2 Key d. F6 Key
In a datasheet, what does each column represent?
34. a. Field b. Data type
c. Record d. Text
___________ data types are used for storing photos, music files etc.
35. a. Binary b. Alphanumeric
c. Numeric d. Special
By default, the length of the Integer data type is ________
36. a. 10 b. 15
c. 20 d. 25
The task of arranging data in order is called:
37. a. Searching b. Sorting
c. Ordering d. Arranging
COMPETENCY BASED QUESTIONS (Write the Answers)
38. Anand is using MS Access for creating a database. He created a table with name Customer. Help him
write the correct query to enter data in the above table having fields- cust_ID, cust_Name,
cust_Contact, Company, cust_address.
39. Sara has entered 30 records of students in Student_Mark table. She wants to change some values in
the record. Suggest the view in which she can edit the data in the database.
40. Honey entered 200 records in product table for his shop. He wants to sort the record in the
descending order according to product_rate field. Write a SQL query that will help him to
accomplish the task.
41. Consider the table STUDENT with the following details and answer the SQL queries.
STU_ID Name Stream Marks Class
1 Armaan Science 87.5 11A
2 Vickey Commerce 88.7 11B
3 Meeta Humanities 76.8 11C
4 Vanisha Science 79.5 11A
5 Kanika Science 77.9 11A
6 Anandi Commerce 86.7 11B
a) Write the command to select all commerce students from the table STUDENT.
b) Modify the marks of Kanika as 85.5
c) Write command to delete all records that belong to SCIENCE stream.
d) Add the record of new student “Rashmi” of “Humanities” stream in class “11B” and her
marks are “70.9”.
42. Answer the following SQL queries for the given table “EMPLOYEE”.
Emp_ID Emp_Name Salary
1 Suman 20000
2 Sanjay 32000
3 Ravi 30000
4 Raj 21000
a) Write an SQL query to create the above table EMPLOYEE.
b) Display the salary of all employees less than 30000.
c) Display the details of the employee whose name is RAJ.
d) Display the record of the employee having “j” as the last alphabet of his/her name.
Very Short Questions:
Q43. Define Reports in a Database.
Q44. Mention any two integer data types of a table field in database.
Q45. Name the relationship in which one column of the primary key table is associated with all the columns
of the associated table and vice-versa.
Q46. What do you mean by Flat file DBMS?
Q47. Give two examples each of:
a. Object-oriented DBMS
b. Relational DBMS
Q48. What is the use of following commands in SQL?
a. SELECT
b. CREATE
c. DROP
Q49. Fill ups:
a. When a primary key constraint is applied to one or more columns in a table is known as _______.
b. A row that represents a single, data item in a table is known as_______.
Q50. Define:
a. Reports
b. Record
c. Table
d. Data types
e. Sorting
f. Foreign Key
g. Datasheet view
h. Design view
Q51. Differentiate between validation text and validation filter.
Q52. Give two advantages and disadvantages of database.
Q53. Write the rules for naming a table.
Q54. What do you mean by data consistency and data integrity?
Short Questions:
Q55. What is a primary key in database? Give its significance.
Q56. What is Database Management System? What are its advantages?
Q57. Differentiate between primary key and foreign key.
Q58. Explain the term Referential Integrity.
Q59. Differentiate between One-to-one and One-to-Many relationship.
Q60. What is the main purpose of DMBS?
Q61. Answer the following questions on the basis of following table:
Table:Student
Stu_i
Stu_Name Class Fees
d
1 Aman IX 3000
2 Anil X 3200
Table:Teacher
Stu_i
T_id T_Name T_Sal Subject
d
Mrs.
3210 65000 2 Maths
Rajshree
3211 Mr. Sahani 72000 1 Science
3241 Mrs. Dixit 75000 1 English
i. Identify the primary key field in Student and Teacher table.
ii. Identify the foreign key in Teacher table.
iii. Write the SQL query to display the teacher’s name teaching “Stu_id=1”.
Long Questions:
Q62. State the difference between Flat File based database management system and Hierarchical database
management system along with the help of examples.
Q63.What are database objects?
Q64. Differentiate between record and field in a table. Give example.
Q65. Consider the following table: STUDENT

Regd.N
NAME BRANCH
o
0001 RAM CSE
0002 HARI MECH
0003 PRADEEP EEE
0004 DEEPAK ETC
I. Write a SQL command which will show the entire STUDENT table.
II. Write a SQL command which will show the Regd.No of PRADEEP.
III. Write a SQL command which will show the NAME and BRANCH column.
IV. Write a SQL command which will count the number of rows existing in STUDENT table.
V. I want another column in the STUDENT table as “address”. How can I do that?

You might also like