Ch 39: Database Security & Authorization

6 Questions6 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 1 – 6 of 6 Questions
Page 1 of 1
Q1
❓ MCQ📘 CS403📑 Lec 39🏷️ 39.1. Concept of Database ViewsEasy🔁⭐💡📄🎓VU🏛️VU
Which of the following statements is true about database views?
💻 sql Snippet
CREATE VIEW Sales_View AS
SELECT empId, empName, Salary
FROM EMPLOYEE
WHERE Dept = 'Sales';
  1. A.A view is always a complete set of all the tables in a database.
  2. B.A view cannot be used for retrieving data.
  3. C.The results of using a view are not permanently stored in the database.
  4. D.Rows cannot be updated or deleted in any view.
Q2
🧠 Long Problem📘 CS403📑 Lec 39🏷️ 39.3. Views for Security and SimplificationHard🔁⭐💡📄🎓VU🏛️VU
Write five advantages of using VIEWS.
💻 sql Snippet
CREATE VIEW Sales_Staff_View AS 
SELECT EmpID, EmpName, Dept 
FROM EMPLOYEE 
WHERE Dept = 'Sales';
Q3
🧠 Long Problem📘 CS403📑 Lec 39🏷️ 39.3. Views for Security and SimplificationHard🔁⭐💡🌟📄🎓VU🏛️VU
Define the concept of Database Views and write down five major advantages of utilizing views in a relational database management system.
💻 sql Snippet
CREATE VIEW Employee_Security_View AS 
SELECT empId, empName, empDept 
FROM EMPLOYEE 
WHERE empDept = 'Sales';
Q4
❓ MCQ📘 CS403📑 Lec 39🏷️ 39.1. Concept of Database ViewsMedium🔁⭐💡🌟📄🎓VU🏛️VU
Under standard relational database architectural guidelines, which of the following statements is strictly true about database views?
💻 sql Snippet
CREATE VIEW Active_Teachers AS
SELECT TeacherID, Name, Email
FROM Teacher
WHERE Office = 'F001';
  1. A.A view is always a complete, horizontally and vertically identical replica of all physical tables in a database.
  2. B.A view represents a virtual schema structure and cannot be used by end-users or applications to retrieve data.
  3. C.The data results retrieved using a standard view are not permanently stored as independent tuples in the database.
  4. D.Under no circumstances can individual rows (tuples) be updated, inserted, or deleted through any view structure.
Q5
📝 Short Q📘 CS403📑 Lec 39🏷️ 39.2. Horizontal and Vertical Subsets of a TableMedium🔁⭐💡🌟📄🎓VU🏛️VU
In relational SQL databases, a View is a logical virtual table defined by an underlying SELECT query. Write a SQL DDL command to create a view named 'CS_Students_View' that displays 'stId', 'stName', and 'cgpa' for students whose 'prName' (program name) is 'BSCS' and whose 'cgpa' is greater than or equal to 3.0.
💻 sql Snippet
CREATE VIEW CS_Students_View AS
SELECT stId, stName, cgpa
FROM STUDENT
WHERE prName = 'BSCS' AND cgpa >= 3.0;
Q6
❓ MCQ📘 CS403📑 Lec 39🏷️ 39.2. Horizontal and Vertical Subsets of a TableMedium🔁⭐💡🌟📄🎓VU🏛️VU
Write an SQL Data Definition Language (DDL) command to create a simple database view named 'A_Block_Classes' on the 'Class' table that displays only the 'ClassID', 'CourseCode', and 'Venue' columns, filtering the output specifically for classes scheduled in 'A Block'.
💻 sql Snippet
CREATE VIEW A_Block_Classes AS 
SELECT ClassID, CourseCode, Venue 
FROM Class 
WHERE Venue = 'A Block';
  1. A.CREATE VIEW A_Block_Classes AS SELECT ClassID, CourseCode, Venue FROM Class WHERE Venue = 'A Block';
  2. B.CREATE VIEW A_Block_Classes SELECT ClassID, CourseCode, Venue FROM Class WHERE Venue = 'A Block';
  3. C.SELECT ClassID, CourseCode, Venue INTO VIEW A_Block_Classes FROM Class WHERE Venue = 'A Block';
  4. D.CREATE VIEW A_Block_Classes AS SELECT * FROM Class HAVING Venue = 'A Block';