
DBMS-1
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
RAVINDER B
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not allowed when a table already has data in it?
ALTER TABLE ADD COLUMN
ALTER TABLE DROP COLUMN
ALTER TABLE RENAME COLUMN
ALTER TABLE MODIFY COLUMN data type
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following SQL command do?
TRUNCATE TABLE employees;
Deletes all rows and can't be rolled back
Deletes all rows and can be rolled back
Deletes the table structure and data
Deletes rows based on WHERE clause
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the result of this query?
SELECT * FROM students WHERE marks = NULL;
All rows with marks = NULL
Syntax error
No rows selected
Only NULL rows returned
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which DML command can insert multiple rows in one statement?
INSERT INTO ... VALUES
INSERT ALL
INSERT EACH
APPEND ROWS
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which query will give you the 3rd highest salary from a salaries table?
SELECT salary FROM salaries ORDER BY salary DESC LIMIT 3;
SELECT MAX(salary) FROM salaries LIMIT 2,1;
SELECT salary FROM (SELECT DISTINCT salary FROM salaries ORDER BY salary DESC LIMIT 2,1);
SELECT salary FROM salaries OFFSET 2 ROWS FETCH NEXT 1 ROW ONLY;
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following commands creates a new copy of a table with only structure and no data?
CREATE TABLE new_table LIKE old_table;
CREATE TABLE new_table AS SELECT * FROM old_table;
SELECT * INTO new_table FROM old_table;
CREATE TABLE new_table FROM old_table;
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the effect of this command: DELETE FROM orders WHERE 1=1;
Deletes no rows
Deletes all rows
Deletes only rows with ID=1
Causes syntax error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
External Devices
Quiz
•
University
10 questions
JSPS Competition Hackathon - HTML Language Grade 4 & 5
Quiz
•
4th Grade - University
15 questions
Ch3_Relational Data Model
Quiz
•
University
11 questions
Pre Test HTML
Quiz
•
University
13 questions
مراجعة للتطبيق الثاني تقن105
Quiz
•
University
10 questions
Scrum 101: The Introduction
Quiz
•
University
10 questions
LVTR M4 Basic Components of a Computer
Quiz
•
University
15 questions
Data Mining
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
