MySQL Assessment Sheet
Sacred Heart School | Topic: MYSQL | Class XII
30:00
Question Palette
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Marks: 20 | Date: 04-05-2026
1. What does SQL stand for?
A) Structured Query Language
B) Standard Query Language
C) Simple Query Language
D) Sequential Query Language
2. Which of the following is used to uniquely identify each record in a MySQL table?
A) Unique Key
B) Primary Key
C) Foreign Key
D) Master Key
3. In the relational model, what is a "row" also known as?
A) Attribute
B) Relation
C) Tuple
D) Field
4. Which command is used to fetch data from a table?
A) GET
B) EXTRACT
C) OPEN
D) SELECT
5. How do you select all columns from a table named "Users"?
A) SELECT Users;
B) SELECT * FROM Users;
C) SELECT ALL FROM Users;
D) RETRIEVE * FROM Users;
6. Which clause is used to filter records based on a specific condition?
A) HAVING
B) SORT BY
C) WHERE
D) FILTER
7. Which keyword is used to sort the result-set in descending order?
A) DESC
B) DOWN
C) BACK
D) SORT-DESC
8. Which SQL statement is used to remove all data from a table without deleting the table structure itself?
A) DROP
B) REMOVE
C) TRUNCATE
D) DELETE TABLE
9. Which of these is the correct command to create a new database?
A) NEW DATABASE dbname;
B) ADD DATABASE dbname;
C) CREATE DATABASE dbname;
D) BUILD DATABASE dbname;
10. What is the correct way to delete a table named students?
A) REMOVE TABLE students;
B) DELETE TABLE students;
C) DROP TABLE students;
D) CLEAR TABLE students;
11. If a statement asks for the average price "for each" product category, which clause must you include?
A) WHERE
B) ORDER BY
C) GROUP BY
D) HAVING
12. A school database has a Students table. You run a query to find the "Total number of students in each class." However, your result shows only one class and its total. Which keyword did you likely forget?
A) WHERE
B) GROUP BY
C) ORDER BY
D) DISTINCT
13. You want to give a 10% bonus to the salary of all employees in the 'Sales' department. Which statement structure is logically correct?
A) SELECT salary * 1.1 FROM employees WHERE dept = 'Sales';
B) UPDATE employees SET salary = salary * 1.1 WHERE dept = 'Sales';
C) ALTER TABLE employees MODIFY salary = salary * 1.1;
D) INSERT INTO employees (salary) VALUES (salary * 1.1);
14. If you use SELECT COUNT(grade) FROM Students; and there are 10 students, but 2 students haven't been assigned a grade yet (the value is NULL), what will be the output?
A) 10
B) 0
C) 8
D) Error
15. Look at these two commands: 1. DELETE FROM Students; 2. DROP TABLE Students; What is the logical difference?
A) 1 removes the students; 2 removes the school.
B) 1 leaves an empty table; 2 deletes the table and the data entirely.
C) Both do exactly the same thing.
D) 1 is for rows; 2 is for columns.
16. You have a Teachers table where teacher_id is the Primary Key. You try to insert a new teacher with an ID that already exists in the table. What is the logical result?
A) MySQL overwrites the old teacher with the new data.
B) MySQL adds the teacher but gives them a temporary ID.
C) The operation fails because a Primary Key must be unique.
D) The operation succeeds, but a warning is issued.
17. Which keyword is used to insert data?
A) ADD
B) INSERT INTO
C) PUT
D) UPDATE
18. Which keyword is used to combine rows from multiple tables?
A) CONNECT
B) JOIN
C) MERGE
D) UNION
19. You want to display only students whose status is "Active".
A) SELECT * FROM student_table WHERE s_status = 'Active';
B) SELECT Active FROM student_table;
C) SELECT * FROM student_table HAVING s_status = 'Active';
D) FILTER * FROM student_table WHERE s_status = 'Active';
20. You want to change phone number of a student with adm_no = 101.
A) UPDATE student_table SET f_phone='9999999999' WHERE adm_no=101;
B) MODIFY student_table SET f_phone='9999999999';
C) CHANGE student_table SET f_phone='9999999999';
D) UPDATE student_table f_phone='9999999999';
Previous
Next
Final Submit