
Week 2-3
Quiz
•
Computers
•
University
•
Medium
DBS Semester
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following queries trying to find out average marks in 2 different ways yield the same answer in every case:
(a) sum(marks)/count(*)
(b) average(marks)
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a correct manner to convert an “NULLIF(a,b)” to an equivalent “IF(x,y,z)” expression?
IF(a == null, b, a)
Cannot convert an nullif() statement to an if() statement
IF(a=b, NULL, a)
IF(a is null, a, b)
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Find the number of rows in the following relations for T1(ID, name) and T2(grades, name) as shown. SELECT * FROM T1 NATURAL JOIN T2;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose what would be seen on running this query on MySQL Workbench:
select coalesce(1.0/0.0, NULL," ","DBS");
NULL
1.0/0.0
DBS
6.
FILL IN THE BLANK QUESTION
3 mins • 2 pts
Find the average length of movies belonging to each rental_rate category. Output the rental_rate and the corresponding average length. Write an SQL query for the same. (table name: film)
PS: No need to alias tables/columns. Retain the underscores. All lowercase
7.
DRAG AND DROP QUESTION
1 min • 1 pt
How will you output the top 3 students according to marks?
select * from students
order by marks
(a) (b) ;
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is returned when the following query is executed?
select COALESCE(1/0,NULL,1/0,NULL);
Error, as there is no non-NULL value
1/0
NULL
9.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the correct alternative:
If we want to return all names having 'a' in their first position and 'e' in their fifth:
select * from table
where name <?>;
= 'a__%e%'
= 'a___e%'
like 'a%e_'
like 'a___e%'
Similar Resources on Wayground
10 questions
Operating System (Virtual Memory)
Quiz
•
University
13 questions
Computer Science: CPU performance
Quiz
•
University
11 questions
Database Management
Quiz
•
12th Grade - University
10 questions
Démo 2: CSS
Quiz
•
University
10 questions
C++ linked list
Quiz
•
University
14 questions
IOTA : Web Development Bootcamp Quiz 2
Quiz
•
University
11 questions
Quiz #02 |Digital Marketing
Quiz
•
University
10 questions
SQL Queries
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
