1. Which of the following joins are MYSQL default?
a) Inner
b) Equi
c) Outer
d) None of the Mentioned
Answer: a
2. Which of the following is not a class of constraint in MySQL?
a) UNIQUE
b) NOT NULL
c) CHECK
d) NULL
Answer: d
3. In MYSQL, Which command is used To SELECT Only One Copy Of Each Set Of
Duplicable Rows
a) SELECT UNIQUE
b) SELECT DISTINCT
c) SELECT DIFFERENT
d) All Of The Above
Answer: b
4. Which of the following command makes the updates performed by the transaction
permanent in the database?
a) ROLLBACK
b) TRUNCATE
c) DELETE
d) COMMIT
Answer : d
5. What SQL Command Can Be Used To Delete Columns From A Table?
a) MODIFY TABLE TableName DROP ColumnName
b) MODIFY TABLE TableName DROP COLUMN ColumnName
c) ALTER TABLE TableName DROP ColumnName
d) ALTER TABLE TableName DROP COLUMN ColumnName
Answer : d
6. With SQL, how do you select all the records from a table named "Persons" where
the value of the column "FirstName" ends with an "a"?
a) SELECT * FROM Persons WHERE FirstName=’a’
b) SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
c) SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
d) SELECT * FROM Persons WHERE FirstName=’%a%’
Answer: c
7. The UPDATE SQL clause can _____________
a) update only one row at a time
b) update more than one row at a time
c) delete more than one row at a time
d) delete only one row at a time
Answer: b
8. The UNION SQL clause can be used with _____________
a) SELECT clause only
b) DELETE and UPDATE clauses
c) UPDATE clause only
d) All of the mentioned
Answer: a
9. How can you change “Hansen” into “Nilsen” in the “LastName” column in the
Persons table?
a) UPDATE Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’
b) MODIFY Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’
c) MODIFY Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’
d) UPDATE Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’
Answer: d
10.Referential integrity is directly related to
a)primary key
b)foreign key
c)unique key
d)reference key
answer:b
11. The student name should not exceed 30 characters. this is
a)integrity constraint
b)referential constraint
c)feasible constraint
d)reference key
answer:a
12.Which is not true about MYSQL stored procedure
a)collection of pre-compiled SQL statements and stored in database
b)Stored Procedure increases the performance of the applications
c)Stored procedure reduces the traffic between application and database server.
d)less secure than queries
ans: d
13.State true or false
MYSQL allows to alter the body of stored procedure with out dropping and
recreating it.
a)true
b)false
ans:b
14.What is RIGHT JOIN?
a)selects all records from right table and matching records in the left table
b)select all records from left table with matching records from right table
c)selects all records from right table and non matching records in the left table
d)selects all the values from the right table, plus matched values from the left
table or NULL in case of no matching.
answer :a
15.The datatype used to store images audio and video is?
a)BLOB
b)JSON
c)spatial
d)special
answer:a