SQL Exam Full 50 Items
SQL Exam Full 50 Items
( ) a. varchar
(*) b. datetime
( ) c. int
( ) d. image
( ) b. NEW DATABASE
( ) c. MAKE DATABASE
( ) d. INIT DATABASE
( ) c. Removes duplicates
( ) d. Creates a table
( ) b. MAKE TABLE
( ) c. NEW TABLE
( ) d. BUILD TABLE
( ) a. DEFAULT
( ) b. UNIQUE
( ) d. CHECK
( ) a. int
( ) b. datetime
(*) c. varchar
( ) d. money
( ) a. LIKE
(*) b. IN
( ) c. BETWEEN
( ) d. IS NULL
( ) a. One character
( ) b. No character
( ) d. Only numbers
10. Which of the following is a valid constraint for setting a default value?
( ) a. PRIMARY KEY
(*) b. DEFAULT
( ) c. NOT NULL
( ) d. UNIQUE
11. Which SQL data type is used for exact numeric values?
( ) a. real
( ) b. float
(*) c. int
( ) d. text
( ) a. SELECT
( ) b. ADD
(*) c. OR
SQL Fundamentals Exam
( ) d. MULTIPLY
( ) a. GROUP BY
(*) b. ORDER BY
( ) c. HAVING
( ) d. SORT BY
14. To remove all rows from a table without deleting the table, use:
( ) a. DROP TABLE
( ) c. DELETE TABLE
( ) d. REMOVE TABLE
( ) a. MODIFY TABLE
( ) c. UPDATE TABLE
( ) d. CHANGE TABLE
16. Which of the following creates a primary key during table creation?
( ) a. UNIQUE KEY
( ) b. PRIMARY CONSTRAINT
( ) d. FOREIGN KEY
( ) a. DEFAULT
( ) b. NOT NULL
( ) c. CHECK
(*) d. UNIQUE
( ) a. DROP TABLE
( ) c. DELETE DATABASE
SQL Fundamentals Exam
( ) d. REMOVE DATABASE
( ) a. ORDER BY
( ) b. DISTINCT
(*) c. WHERE
( ) d. LIMIT
( ) d. Sorts values
21. Which data type is best suited for storing large text documents?
( ) a. char
(*) b. text
( ) c. varchar
( ) d. int
( ) a. Data Manipulation
( ) b. Data Query
( ) c. Data Control
( ) a. Ensures uniqueness
( ) b. Prevents NULLs
( ) d. Sets a default
( ) a. MODIFY COLUMN
( ) c. CHANGE TABLE
SQL Fundamentals Exam
( ) d. INSERT COLUMN
( ) a. UNIQUE
( ) b. CHECK
( ) d. DEFAULT
( ) a. UPDATE
( ) b. MERGE
(*) c. INSERT
( ) d. ADD
( ) a. ORDER BY
( ) b. SELECT
(*) c. WHERE
( ) d. GROUP BY
( ) a. SELECT ALL
( ) b. SELECT EVERYTHING
( ) d. SELECT COLUMNS
( ) b. Sorting
( ) c. Arithmetic
( ) d. Grouping
( ) a. Date values
( ) b. Range limits
SQL Fundamentals Exam
( ) d. Character length
( ) a. Matches pattern
( ) b. Checks NULL
( ) d. Selects duplicates
( ) a. GROUP BY
( ) b. ORDER BY
(*) c. DISTINCT
( ) d. COUNT
( ) d. DROP ROW
( ) a. ALTER
(*) b. UPDATE
( ) c. MODIFY
( ) d. CHANGE
( ) a. WHERE Age = 18
(*) a. IS NULL
( ) b. IS EMPTY
SQL Fundamentals Exam
( ) c. IS BLANK
( ) d. EQUALS NULL
( ) a. %
(*) b. _
( ) c. *
( ) d. ?
( ) a. Insert data
( ) b. Update data
( ) d. Delete data
( ) a. Random order
( ) d. Duplicate order
( ) a. DROP
(*) b. TRUNCATE
( ) c. DELETE
( ) d. CLEAR
( ) a. GROUP BY name
( ) c. FILTER BY name
( ) d. SORT name
( ) a. EQUAL NULL
(*) b. IS NULL
( ) c. = NULL
( ) d. NOT NULL
( ) a. SET Section
( ) c. MODIFY Students
( ) a. LIKE
( ) b. IN
(*) c. BETWEEN
( ) d. RANGE
( ) d. SET column=value
( ) a. Deletes table
( ) b. Removes schema
( ) b. Nothing
SQL Fundamentals Exam
( ) d. Syntax error
49. Which command is used to filter records with specific values in a list?
( ) a. SELECT ALL
( ) b. BETWEEN
(*) c. IN
( ) d. GROUP
( ) a. LIKE 'J_'
( ) c. IN ('J')
( ) d. BETWEEN 'J'