Ch 26: SQL Data Definition Language (DDL)

12 Questions12 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 โ€“ 10 of 12 Questions
Page 1 of 2
Q1
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.3. Create Table StatementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following represents the correct standard SQL Data Definition Language (DDL) syntax to instantiate and create a new database table structure?
๐Ÿ’ป sql Snippet
CREATE TABLE Student (
    stId CHAR(5) PRIMARY KEY,
    stName VARCHAR(50)
);
  1. A.CREATE TABLE name;
  2. B.CREATE RELATION name;
  3. C.CREATE SCHEMA name;
  4. D.CREATE DATABASE TABLE name;
Q2
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.3. Create Table StatementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following represents the correct ANSI SQL Data Definition Language (DDL) syntax to instantiate and create a new database table schema?
๐Ÿ’ป sql Snippet
CREATE TABLE Program (
    prName char(4),
    totSem tinyint,
    prCredits smallint
);
  1. A.CREATE MYSQL TABLE name;
  2. B.CREATE TABLE name;
  3. C.CREATE TABLE;
  4. D.TABLE name CREATE;
Q3
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.2. DDL Commands OverviewEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is the correct SQL Data Definition Language (DDL) syntax to initialize and create a physical database named 'employee' on a database server?
๐Ÿ’ป sql Snippet
CREATE DATABASE employee;
  1. A.CREATE TABLE employee;
  2. B.CREATE MYSQL DATABASE employee;
  3. C.CREATE SQL DATABASE employee;
  4. D.CREATE DATABASE employee;
Q4
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.2. DDL Commands OverviewEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Under standard relational database query classifications, which of the following SQL statements is NOT classified as a Data Manipulation Language (DML) command?
๐Ÿ’ป sql Snippet
CREATE DATABASE employee;
  1. A.UPDATE
  2. B.INSERT
  3. C.SELECT
  4. D.CREATE
Q5
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.2. DDL Commands OverviewEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is another alternate name for the Data Dictionary in a relational database management system?
๐Ÿ’ป sql Snippet
-- Querying information schema columns from system catalog:
SELECT * FROM INFORMATION_SCHEMA.TABLES;
  1. A.Index
  2. B.Metadata
  3. C.Data
  4. D.System Catalog
Q6
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.2. DDL Commands OverviewMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following database commands is formally classified as a Data Definition Language (DDL) command (or DDL hybrid) rather than a Data Manipulation Language (DML) command?
๐Ÿ’ป sql Snippet
TRUNCATE TABLE Employee;
  1. A.INSERT
  2. B.UPDATE
  3. C.GRANT
  4. D.TRUNCATE
Q7
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.4. Specifying Integrity Constraints (Primary Key, Foreign Key)Medium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which keyword is available in SQL to enforce referential integrity?
๐Ÿ’ป sql Snippet
CREATE TABLE Orders (
    OrderID INT PRIMARY KEY,
    CustomerID INT REFERENCES Customers(CustomerID)
);
  1. A.Check
  2. B.Primary Key
  3. C.References (Foreign Key)
  4. D.Unique
Q8
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.4. Specifying Integrity Constraints (Primary Key, Foreign Key)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following keywords or constraints is available in SQL to declare checking conditions and assist in enforcing referential and domain integrity within a table schema?
๐Ÿ’ป sql Snippet
CREATE TABLE Student (
    stId CHAR(5) CONSTRAINT ST_PK PRIMARY KEY,
    CONSTRAINT ST_CK CHECK (stId LIKE 'S[0-9][0-9][0-9][0-9]')
);
  1. A.Check
  2. B.Primary Key
  3. C.Set Default
  4. D.Unique
Q9
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.1. SQL Server Installation and ConfigurationsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When installing Microsoft SQL Server during database administration setup, which of the following is the standard, default system instance authentication mode that combines both Windows Authentication and SQL Server logins?
๐Ÿ’ป text Snippet
-- System Administrator login enabled in Mixed Mode:
-- Login Username: sa
  1. A.Windows Only Authentication Mode
  2. B.Mixed Mode Authentication
  3. C.Active Directory Directory Integration Mode
  4. D.Kerberos Single-Sign-On Mode
Q10
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 26๐Ÿท๏ธ 26.1. SQL Server Installation and ConfigurationsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During the installation of Microsoft SQL Server, which security configuration authentication mode allows database administrators and applications to connect using both Windows local/domain accounts and native, database-specific SQL Server login credentials?
๐Ÿ’ป text Snippet
-- Default System Administrator username enabled in Mixed Mode:
-- Username: sa
  1. A.Windows Only Authentication Mode
  2. B.Mixed Mode (Windows Authentication and SQL Server Authentication)
  3. C.Active Directory Directory Integration Mode
  4. D.Single Sign-On (SSO) Kerberos Authentication Mode