0% found this document useful (0 votes)
22 views5 pages

Model Private School, Abu Dhabi: Name: - Class & Div.: - Roll No.

Uploaded by

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

Model Private School, Abu Dhabi: Name: - Class & Div.: - Roll No.

Uploaded by

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

MODEL PRIVATE SCHOOL, ABU DHABI

GRADE 7-WORKSHEET(Module 3&4)

Subject: Computer Science

Name: ___________________________ Class & Div.: __________Roll No. :__


I CHOOSE THE CORRECT ANSWER

1. Which of the following applications use a database?


a) Facebook b) Instagram c) Google d) All of the above
2. SQL stands for
a) Structured Quick Language
b) Structured Query Language
c) Structure Query Language
d) Structure Quick Language
3. MySQL is
a) An RDBMS
b) A presentation software
c) A file
d) All of the above
4. ER model is also known as ______________ database management system.
a)Oracle
b)Relational
c)Network
d)Document
5. Which of the following statements is used to display the structure of the table?
a) Create
b) Desc
c) Drop
d) Truncate
6. _____________ holds a string with a maximum length of 255 characters.
a) Varchar
b) Char
c) float
d) decimal
7. A ___________ is a column that refers to the primary key of another relationship table.
a) Relation
b) Attribute
c) Foreign Key
d) Tuple
8. The command to enable a database is
a) ENABLE
b) USE
c) SHOW
d) DESCRIBE
9. Which of the following is not a DBMS.
a) Oracle
b) SQL
c) MS Excel
d) MS Access
10. Consider the following query. Which of the following constraints is used to make sure that the id colum
uniquely identifies each row in the table?
(a) FOREIGN
(b) UNIQUE
(c) NOT NULL
(d) PRIMARY

II. FILL IN THE BLANKS

1. _____________is the software that provides an interface between a user and a database.

2. RDBMS stands for ___________________________.

3. A _________ key is a column that will have a unique value for each entity.

4. SQL statements are classified into ________ categories.

5. ____________ commands are used to define the structure of the database or schema.

6. The _____ data type is used to store fixed-length character strings.

7. The __________ data type is used to store variable-length character strings.


8. _____________ is used to define the rules to allow or restrict what values can be stored in columns.

9. The___________ constraint in MySQL does not allow you to insert a duplicate value in a column.

10. In Mysql ____________ constraint allows to specify that a column can not contain any NULL value.

III. MATCH THE FOLLOWING

1. Entity Rows in a table

2. Relation Columns in a table

3. Attributes Objects in the real world

4. Relationship Two dimensional table

5. Tuples Association among tables

6. VARCHAR Holds a fixed-length string

7. CHAR Holds a variable-length string

IV SHORT ANSWER QUESTIONS


What is DBMS?
1.
………………………………………………………………………………………………………

………………………………………………………………………………………………………

………………………………………………………………………………………………………

………………………………………………………………………………………………………
List the CRUD operations.
2.
……………………………………………………………………………………………………..

………………………………………………………………………………………………………

………………………………………………………………………………………………………
Differentiate between the primary key and foreign key in a relation.
3.
………………………………………………………………………………………………………

………………………………………………………………………………………………………

………………………………………………………………………………………………………

………………………………………………………………………………………………………

………………………………………………………………………………………………………

………………………………………………………………………………………………………
Consider the table STUDENT
4. Identify and list an example of the mentioned ones from the
table
a) Attribute –

b) Primary key –

c) Relation-

d) Entity-

5. Name the DDL commands to

a) Create Database objects -

b) Delete a database object -

c) Modify database objects -

d)Delete the data inside the table only-

6. Explain the difference between the CHAR and VARCHAR data types in MySQL.

…………………………………………………………………………………………

……………………………………………....................................................................

…………………………………………………………………………………………
V LONG ANSWER QUESTION
Write SQL commands for
1. a) Create a database named LIBRARY

……………………………………………………………………………………………………

…………………………………………………………………………………………………

Create a table BOOK with the following fields


2.
BookId int Primary Key
BookName varchar(20)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy