Ch 27: SQL Integrity Constraints

16 Questions16 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 11 โ€“ 16 of 16 Questions
Page 2 of 2
Q11
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 27๐Ÿท๏ธ 27.4. Insertion, Deletion and Update CommandsEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write a SQL DML query to update the 'status' field to 'enable' in the table 'name_table' for the row matching the phone number 34657.
๐Ÿ’ป sql Snippet
UPDATE name_table SET status = 'enable' WHERE phone = 34657;
Q12
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 27๐Ÿท๏ธ 27.3. Data Manipulation Language (DML) OverviewMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
State the definition of Procedural DML and distinguish it from Non-Procedural DML.
Q13
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 27๐Ÿท๏ธ 27.1. Alter Table StatementMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Analyze the following SQL DDL statement: ```sql ALTER TABLE exams RENAME COLUMN Q_description TO Question_Descp, Std_ID to Student_ID; ``` True or False: The syntax of this ALTER TABLE statement is NOT correct.
๐Ÿ’ป sql Snippet
ALTER TABLE exams RENAME COLUMN Q_description TO Question_Descp, Std_ID to Student_ID;
  1. A.True
  2. B.False
Q14
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 27๐Ÿท๏ธ 27.4. Insertion, Deletion and Update CommandsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which DML statement changes the values of one or more columns based on some conditions, and what is its standard SQL syntax?
Q15
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 27๐Ÿท๏ธ 27.1. Alter Table StatementMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Analyze the following SQL DDL statement: ```sql ALTER TABLE exams RENAME COLUMN Q_description TO Question_Descp, Std_ID to Student_ID; ``` True or False: The syntax of this ALTER TABLE statement is NOT correct because standard SQL and SQL Server do not support renaming multiple columns within a single RENAME COLUMN clause.
๐Ÿ’ป sql Snippet
-- Incorrect syntax attempting multi-column rename:
ALTER TABLE exams RENAME COLUMN Q_description TO Question_Descp, Std_ID to Student_ID;
  1. A.True
  2. B.False
Q16
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 27๐Ÿท๏ธ 27.4. Insertion, Deletion and Update CommandsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which Data Manipulation Language (DML) statement is used to change or modify the existing values of one or more columns in a table based on specified filtering conditions?
๐Ÿ’ป sql Snippet
UPDATE STUDENT SET cgpa = 3.5 WHERE stId = 'S1018';