0% found this document useful (0 votes)
9 views

Database and SQL Language CA

Database and sql language CA

Uploaded by

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

Database and SQL Language CA

Database and sql language CA

Uploaded by

gracious pezoh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Database and sql language

1.Which of the following are some common RDBMS in use?


A.Oracle
B.MySQL
C.HeidiSQL
D.All of the above
2. What command is used to create a new table in SQL?
A.CREATE TABLE
B.BUILD TABLE
C.GENERATE TABLE
D.None of the above
3.What does the following statement in SQL do?
DROP TABLE student;
A.Deletes a table called student.
B.Creates a table called student.
C.Check if there is a table called student.
D.None of the above.
4.Which of the following commands are a part of Data Control Language?
A.Revoke
B.Grant
C.Both A and B
D.None of the above
5.What are rows of a relation known as?
A.Degree
B.Entity
C.Tuple
D.None
6.Which of the following allows you to uniquely identify a tuple?
A.Schema
B.Attribute
C.primary key
D.Domain

7.Which of the following matches the definition given below: It is an artificial key
that aims to uniquely identify each record.

A.Primary Key

B.Foreign Key

C.Surrogate Key

D.Composite Key

8.Primary key can be?


A.NULL
B.NOT NULL
C.Both NULL and NOT NULL
D.Depends on situation
9.Select the correct foreign key constraint?
A.Referential integrity
B.Entity integrity
C.Domain integrity
D.None of the above

10.What is the full form of SQL?

A.Structured Query List

B.Structure Query Language

C.Sample Query Language

D.None of these.

11.How many Primary keys can have in a table?

A.Only 1

B.Only 2

C.Depends on no of Columns

D.Depends on DBA

12.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

13.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

14.What is DBMS?

A. DBMS is a collection of queries

B. DBMS is a high-level language

C. DBMS is a programming language

D. DBMS stores, modifies and retrieves data

15.Which type of data can be stored in the database?

A. Image oriented data

B. Text, files containing data

C. Data in the form of audio or video

D.All of the above

16.In which of the following formats data is stored in the database management system?
A.Image
B.Text
C.Table
D. Graph

17.Which of the following is not an example of DBMS?


A.MySQL
B.Microsoft Acess
C.IBM DB2

D.Google

18.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

19.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

20.The DBMS acts as an interface between ________________ and ________________ of


an enterprise-class system.

A. Data and the DBMS

B. Application and SQL

C. Database application and the database

D.The user and the software


Section B

1a.what is meant by normalization in database? (2mark)

b. state and explain the different norm forms. (3marks)

2a. What is a database? (2marks)

b. What is DBMS, and what types of DBMS do you know? (2marks)

c. What is RDBMS? Give some examples of RDBMS. (2marks)

3a. What are tables and fields in SQL?


(2marks)

b. What is an SQL query, and what types of queries do you know?


(3marks)

4a. What is a constraint, and why use constraints?


(2marks)

b.What SQL constraints do you know? ( 4marks)

5a. What is a primary key?


(1mark)

b. What is a unique key?


( 1mark)

c. How to delete a table from a database?


(2mark)

6.What are entities? Give some examples.

You might also like