Quiz Space

Database Management Systems · Quiz 1 · 13 Jul 2025 · May 2025 term

Question 2: Consider the following SQL statements executed in sequenc…

Question 2

+4 marksOne correct option

Consider the following SQL statements executed in sequence on a table students:

sql
CREATE TABLE students (
roll_no INT PRIMARY KEY,
name VARCHAR(50),
marks INT
);
INSERT INTO students VALUES (1, 'Amit', 80);
INSERT INTO students VALUES (2, 'Neha', 90);
INSERT INTO students VALUES (3, 'Ravi', 70);
UPDATE students
SET marks = marks + 10
WHERE marks < 85;
DELETE FROM students
WHERE name = 'Neha';
INSERT INTO students (roll_no, name, marks)
VALUES (4, 'Neha', 95);

What will be the content of the students table after execution?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 2 of 14 in the IIT Madras BS Database Management Systems (DBMS) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term (IIT M DIPLOMA AN EXAM QDD2 13 July 2025). It carries 4 marks.

More questions from this paper

  1. Q1Consider the following table Sales: | EmpID | Region | Amount | |---|---|---| | 101 | East | 5000 | | 102 | East | 3000…
  2. Q3Consider the following relations:\ auto_part(<u>pid</u>, pname, color)\ auto_suppliers(<u>sid</u>, sname, location)\ ca…
  3. Q4Consider the relational schema Employees: Employees(<u>EmpId</u>, Name, Salary, Department, Experience) Now consider th…
  4. Q5Consider the relational schemas Student, Course and Enrollment: Student(<u>SId</u>, Name, Age, DOB, Phone_Number)\ Cour…
  5. Q6Consider the relational schemas Student, Professor, Course, Enrolled and Teaches: Student(<u>StudentId</u>, Name, Age) …
  6. Q7Your task is to create a table Employee (EmpID, Name, Email, PAN, Department) The following rules must be enforced: Eve…
  7. Q8Consider the relation Product shown in Table 1: | pid | pname | price | |---|---|---| | P1 | Sunscreen cream | 70 | | P…
  8. Q9Figure question
  9. Q10Consider the following relations: Book(<u>bookid</u>, title, genre) Author(<u>authorid</u>, name) Writes(<u>bookid, aut…
  10. Q11Which of the following is the main role of the query parser in query processing?
  11. Q12Figure question
  12. Q13Figure question
  13. Q14Consider the tables Department, Employee and Project given below: | DeptID | DeptName | |---|---| | 1 | HR | | 2 | IT |…