
DBMS LAb Quiz II
Authored by Dr Surendra Kumar
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
STUDENTS (student_code, first_name, last_name, email, phone_no, date_of_birth, honours_subject, percentage_of_marks);
Which of the following query would display all the students whose first name starts with the character ‘A’?A
select first_name from students where first_name like ‘A%’;
select first_name from students where first_name like ‘%A’;
select first_name from students where first_name like ‘%A%’;
select first_name from students where first_name like ‘A’;
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
With SQL, how can you return the number of not null records in the “Persons” table?
SELECT COUNT() FROM Persons
SELECT COLUMNS() FROM Persons
SELECT COLUMNS(*) FROM Persons
SELECT COUNT(*) FROM Persons
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
You have a "Products" relation that contains information about products, including their prices. You want to find the products with a price greater than $100. What relational algebra operation would you use?
SELECT
PROJECT
JOIN
DIFFERENCE
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
You have two relations, "Employees" and "Departments." The "Employees" relation contains employee information, and the "Departments" relation contains department information. You want to find all employees in the "HR" department. What relational algebra operation would you use
SELECT
PROJECT
JOIN
INTERSECT
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
SQL query to find all the cities whose humidity is 95.
SELECT city WHERE humidity = 95
SELECT city FROM weather WHERE humidity = 95
SELECT city FROM weather
SELECT humidity = 89 FROM weather
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following statement is true?
DELETE does not free the space containing the table and TRUNCATE free the space containing the table
Both DELETE and TRUNCATE free the space containing the table
Both DELETE and TRUNCATE does not free the space containing the table
DELETE free the space containing the table and TRUNCATE does not free the space containing the table
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1. A database contains a table named employees with columns employee_id, employee_name, and salary. A user initiates a transaction to increase the salary of all employees by 10%. Which SQL statement should be used to update the salary within the transaction?
UPDATE employees SET salary = salary * 1.10;
MODIFY employees SET salary = salary * 1.10;
ALTER employees SET salary = salary * 1.10;
CHANGE employees SET salary = salary * 1.10;
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
15 questions
POST-TEST MODUL 1 APSI
Quiz
•
University
13 questions
Word Session Quiz
Quiz
•
7th Grade - University
10 questions
Chapter 5: Hardware Security Controls
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
10 questions
Perkakasan Multimedia
Quiz
•
University
10 questions
DP-100 Day 2
Quiz
•
University - Professi...
10 questions
Computing Paradigms
Quiz
•
University
13 questions
Week6-ERD-2
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University