Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ICE4132 Lab Quiz

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Bangladesh Army University of Engineering &Technology (BAUET)

Department of Information and Communication Engineering


4th Year 7th Semester Sessional Examination- Fall 2020
Course Title: Database Management System Sessional
Course Code: ICE 4132
Lab Quiz
Time: 30 minutes Marks: 20

Multiple Choice Questions (1-10): 1 Marks for each question


1) The term "SQL" stands for
a. Standard query language

b. Sequential query language

c. Structured query language

d. Server-side query language

2) Which of the following is generally used for performing tasks like creating the
structure of the relations, deleting relation?
a. DML (Data Manipulation Language)

b. Query

c. Relational Schema

d. DDL (Data Definition Language)

3) Which of the following provides the ability to query information from the database
and insert tuples into, delete tuples from, and modify tuples in the database?
a. DML (Data Manipulation Language)

b. DDL (Data Definition Language)

c. Query

d. Relational Schema

4) Which one of the following given statements possibly contains the error?
a. select * from emp where empid = 10003;

b. select empid from emp where empid = 10006;

c. select empid from emp;

d. select empid where empid = 1009 and Lastname = 'GELLER' from emp;

5) Which one of the following is a type of Data Manipulation Command?


a. Create

b. Alter

c. Delete

d. All of the above


6) Which of the following command is a type of Data Definition language command?
a. Create

b. Update

c. Delete

d. Merge

7) Which one of the following commands is used for removing (or deleting) a relation
forms the SQL database?
a. Delete

b. Drop

c. Remove

d. All of the above

8) Which of the following is a legal expression in SQL?

a. SELECT NULL FROM SALES;

b. SELECT NAME FROM SALES;

c. SELECT * FROM SALES WHEN PRICE = NULL;

d. SELECT # FROM SALES;

9) Which of the following keys is generally used to represents the relationships


between the tables?
a. Primary key

b. Foreign key

c. Secondary key

d. None of the above

10) Which one of the following commands is used to modify a column inside a
table?
a. Drop

b. Update

c. Alter

d. Set

Short Questions (11-15): 2 Marks for each question


11. What do you understand by DDL and DML?
12. Differentiate char() and varchar() datatype in SQL.
13. Define the following constraints: not null, unique.
14. Differentiate between drop and truncate.
15. Write SQL statement for creating a table named:
Course (Course_Code, Course_Name, Semester_Name).

You might also like