MySQL Practice Test 1
Q1. Write full form of DBMS.
Q2. Define the following term Primary Key Foreign Key Candidate Key Alternate Key
Q3. A group of rows and columns is called _______________
Q4. Candidate Key – Primary key = ___________________
Q5. Give two examples of DBMS software.
Q6. What is the difference between Data and Information?
Q7. A primary key is one of the candidate key. (True/False)
Q8. What do you mean by degree and cardinality in DBMS?
Q9. What is the alternate name of column in table?
Q10. What is the alternate name of row in table?
SOLUTIONS:
Q1. Write full form of DBMS. Ans. Database Management System
Q2. A field which uniquely identifies each and every record. A FOREIGN KEY is a field (or collection of fields) in one table
that refers to the PRIMARY KEY in another table. It is used to link two tables. Those fields which can act as a primary key
are called candidates key
Q3. Table
Q4. Alternate Key
Q5. Oracle, MS Access, MySQL
Q6. RawRaw facts and figures is called Data. Processed data is called information
Q7. True
Q8. Number of rows in a table is called cardinality Number of columns in a table is called degree.
Q9. Attribute and Field
Q10. Record and Tuple
MySQL Practice Test 2
Q1. What do you mean by data redundancy?
Q2. What do you mean by data inconsistency?
Q3. Define the term data model.
Q4. Name 3 types of data models.
Q5. A ___________ is a collection of logically related data.
Q6. Answer the following questions on the basis the given table.
a. How many attributes are there in above table?
b. How many tuples are there in above table?
c. What is the degree of above table?
d. What is the cardinality of above table? e. Name the primary key in the table.
Q7. Write any five attributes of book entity.
Q8. Write any two advantages of database.
Q9. What is the purpose of creating primary key in table.
Q10. Which field you choose as primary key out of following in "Employee" table
Emp_id
Emp_name
Emp_salary
Emp_desig
MySQL Practice Test 3
Q1. Write two advantages of SQL.
Q2. MySQL is an ___________Software. (open source/Proprietary)
Q3. Name two types of SQL commands.
Q4. What is the difference between DDL and DML Commands?
Q5. Identify the DDL and DML commands from the following.
Create
Alter
Insert
Update
Drop
Delete
Select
Grant
Revoke
Q6. What do you mean by data type?
Q7. Name two numeric data type in MySQL.
Q8. Name two String Data type in MySQL.
Q9. Which data type is used for “Date of birth” field in Student table.
Q10. What is the difference between Char and Varchar.
SOLUTIONS:
Q1. It is very easy to learn
It is not a case sensitive language.
Q2.Open source
Q3. DDL
DML
Q4. What is the difference between DDL and DML Commands?
DDL DML
It stands for Data Definition It stands for Data Manipulation
Language. Language
These commands allow to These commands are used to
perform tasks related to the manipulate data
structure of the table
Q5.
DDL
DDL
DML
DML
DDL
DML
DML
DDL
DDL
Q6.Data type refers to the type of data we are entering in the column of the table.
Q7. Integer and Smallint
Q8. Char and Varchar
Q9. Date
Q10. Char is fixed length data type while Varchar is variable length data type.