Free tutorials & notes in Hindi & English · Clean code examples 🧰 Free PDF & Image Tools →
MySQL + SQL · Lesson 127

MySQL Test 1 – DBMS and RDBMS Concepts

In this lesson: Free online DBMS/RDBMS test — 50 marks, timer, instant result and answer review. Check your preparation now. In Hindi & English.

MySQL Test 1 – DBMS and RDBMS Concepts (50 Marks)

This is an interactive MySQL/SQL test. It shows one question at a time with timer, next/previous buttons, question palette, result and answer review.
Question 1/5050:00

Question Palette

Green = answered, Purple = review, White = not answered.

Answer key with explanations

Attempt the test and submit it first, then use this key to revise. Each answer has a short explanation so you understand why it is correct.

Show all 50 answers
  1. What is a DBMS?

    Answer: B. Software to create, store, manage and query databases – A Database Management System (MySQL, Oracle, PostgreSQL) lets users define, store, retrieve and protect data.

  2. Which is an advantage of a DBMS over a file system?

    Answer: C. Reduced data redundancy and better consistency – A DBMS stores shared data once and enforces constraints, so copies do not go out of sync.

  3. In RDBMS, data is stored in the form of:

    Answer: A. Tables (relations) – A relational database organises data into tables made of rows and columns.

  4. A row in a table is also called a:

    Answer: C. Tuple – Row = tuple = record. Column = attribute = field.

  5. A column in a table is also called an:

    Answer: D. Attribute – Each column describes one property (attribute) of the entity.

  6. The number of rows in a relation is called its:

    Answer: D. Cardinality – Cardinality counts rows (tuples); degree counts columns (attributes).

  7. The number of columns in a relation is called its:

    Answer: B. Degree – A table with columns RollNo, Name, Marks has degree 3.

  8. The set of allowed values for an attribute is called its:

    Answer: D. Domain – Example: the domain of Gender could be {'M','F','O'}; the domain of Marks could be 0–100.

  9. Which key uniquely identifies each row and cannot be NULL?

    Answer: D. Primary key – A primary key must be unique and NOT NULL; a table has only one primary key.

  10. All attributes or attribute sets that can uniquely identify a row are:

    Answer: B. Candidate keys – From the candidate keys, one is chosen as primary key; the rest become alternate keys.

  11. A candidate key that is NOT chosen as primary key is called:

    Answer: B. Alternate key – If RollNo is the primary key, AadhaarNo (also unique) is an alternate key.

  12. A column in one table that refers to the primary key of another table is a:

    Answer: A. Foreign key – Foreign keys link tables, e.g. Marks.RollNo references Students.RollNo.

  13. A primary key made of two or more columns is called a:

    Answer: B. Composite key – Example: (RollNo, Subject) together identify a row in a Marks table.

  14. A super key is:

    Answer: A. Any set of attributes that uniquely identifies a row – Every candidate key is a minimal super key; adding extra columns to a key still gives a super key.

  15. Referential integrity ensures that:

    Answer: D. A foreign key value matches an existing primary key value or is NULL – You cannot insert marks for a student RollNo that does not exist in Students.

  16. Which of these is NOT a DBMS model?

    Answer: A. Spreadsheet model – Classic data models: hierarchical, network, relational, and object-oriented.

  17. The overall logical design of a database is called the:

    Answer: D. Schema – Schema is the structure; instance is the data stored at a particular moment.

  18. The data stored in a database at a particular moment is called:

    Answer: B. Instance – The instance changes with every insert/update/delete; the schema changes rarely.

  19. Data about data (table names, column types) is called:

    Answer: A. Metadata – The data dictionary/information_schema stores metadata.

  20. Which level of data abstraction describes how data is physically stored?

    Answer: B. Physical (internal) level – Three levels: physical, logical/conceptual, and view/external.

  21. Physical data independence means:

    Answer: C. Changing storage structure without changing the logical schema – E.g. adding an index or moving files does not require changing application queries.

  22. In an ER diagram, an entity is shown by a:

    Answer: B. Rectangle – Rectangle = entity, ellipse = attribute, diamond = relationship.

  23. In an ER diagram, a relationship is shown by a:

    Answer: A. Diamond – Example: Student —<Enrolls>— Course.

  24. A Student can enrol in many Courses and a Course has many Students. The relationship is:

    Answer: D. Many-to-many – M:N relationships are implemented with a separate linking table such as Enrollment(RollNo, CourseID).

  25. An attribute that can be calculated from other attributes (e.g. Age from DOB) is:

    Answer: A. Derived attribute – Derived attributes are usually not stored; they are computed when needed.

  26. An attribute that can have several values for one entity (e.g. phone numbers) is:

    Answer: B. Multivalued attribute – In a relational design, multivalued attributes are moved to a separate table.

  27. First Normal Form (1NF) requires that:

    Answer: C. Every column holds atomic (single) values – A column like Subjects = 'Maths, Science' violates 1NF.

  28. A table is in 2NF if it is in 1NF and:

    Answer: B. No non-key attribute depends on only part of a composite key – 2NF removes partial dependencies, which only arise with composite keys.

  29. 3NF removes which type of dependency?

    Answer: B. Transitive dependency – If RollNo → PinCode and PinCode → City, then City depends transitively on RollNo; move it to a PinCode table.

  30. BCNF is a stricter form of:

    Answer: D. 3NF – In BCNF, every determinant must be a candidate key.

  31. The main purpose of normalisation is to:

    Answer: A. Reduce redundancy and update anomalies – Normalised tables avoid insert, update and delete anomalies.

  32. Deleting the last student of a course also deletes the course details. This is a:

    Answer: A. Delete anomaly – It happens when unrelated facts are stored in the same table.

  33. Which property of a transaction means 'all or nothing'?

    Answer: D. Atomicity – ACID: Atomicity, Consistency, Isolation, Durability.

  34. Which ACID property ensures committed data survives a power failure?

    Answer: B. Durability – InnoDB writes a redo log so committed transactions are not lost.

  35. Which ACID property keeps concurrent transactions from seeing each other's uncommitted changes?

    Answer: B. Isolation – Isolation levels (READ COMMITTED, REPEATABLE READ…) control this.

  36. Which of the following is an open-source RDBMS?

    Answer: A. MySQL – MySQL (and MariaDB, PostgreSQL) are open-source relational database systems.

  37. The default storage engine in MySQL 8 is:

    Answer: B. InnoDB – InnoDB supports transactions, row-level locking and foreign keys.

  38. Which storage engine does NOT support transactions?

    Answer: B. MyISAM – MyISAM uses table-level locking and has no COMMIT/ROLLBACK.

  39. SQL stands for:

    Answer: B. Structured Query Language – SQL is the standard language for relational databases.

  40. Which category of SQL commands defines structure (CREATE, ALTER, DROP)?

    Answer: C. DDL – DDL = Data Definition Language.

  41. Which category includes INSERT, UPDATE and DELETE?

    Answer: D. DML – DML = Data Manipulation Language.

  42. GRANT and REVOKE belong to:

    Answer: D. DCL – DCL = Data Control Language, used for permissions.

  43. COMMIT, ROLLBACK and SAVEPOINT belong to:

    Answer: D. TCL – TCL = Transaction Control Language.

  44. Which constraint prevents NULL values in a column?

    Answer: C. NOT NULL – NOT NULL forces a value to be supplied for that column.

  45. Which constraint allows only distinct values but (in MySQL) permits multiple NULLs?

    Answer: B. UNIQUE – Unlike PRIMARY KEY, a UNIQUE column can contain NULLs.

  46. A CHECK constraint is used to:

    Answer: C. Allow only values that satisfy a condition – Example: CHECK (Marks BETWEEN 0 AND 100). MySQL enforces CHECK from version 8.0.16.

  47. A view in SQL is:

    Answer: A. A virtual table based on a SELECT query – Views store the query, not the data; they simplify complex queries and hide columns.

  48. An index is mainly used to:

    Answer: A. Speed up searching and sorting – Indexes make SELECT faster but add a small cost to INSERT/UPDATE.

  49. Which person is responsible for managing users, backups and performance of a database?

    Answer: B. Database Administrator (DBA) – The DBA controls access, backups, tuning and recovery.

  50. Two tables are joined using a common column. In a good design this column is usually:

    Answer: D. A primary key in one table and a foreign key in the other – PK–FK pairs define the relationship and keep data consistent.

🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

Next topicMySQL Test 2 – SQL Commands (50 Marks) Your progress: 127 / 151 (84%) · Lesson 128 / 151 Continue →

How was this lesson?

Your feedback helps us make the content better.

Write a review or suggestion (optional)

After approval, your name and city may appear publicly with your review. Please do not write your email or phone number.

▶ CodingEasily on YouTube

Learn with video lessons in easy Hindi

Featured video: RDBMS Part 3 – Class XI Commerce IT

▶ Subscribe – it’s free