
DBI202 05

Quiz
•
World Languages
•
KG
•
Easy
Le CT)
Used 23+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=27 (8030) The binary relationship between classes in UML is called ...
a. Aggregation
b. Composition
c. Association
d. Relation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=28 (8231) Consider the Datalog rule H(x,y) <- S(x, y) AND x > 2 AND y < 6. Relation S(x, y) has 3 tuples (2, 3), (3, 5), and (4, 6). What is about H?
a. H has a tuple (3, 5)
b. H has a tuple (2, 3)
c. H has 2 tuples (2, 3) and (3, 5)
d. H has 3 tuples (2, 3) and (3, 5) and (4, 6)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=30 (8232) Suppose that tuple t appears, respectively, x, y, and z times in the relations X, Y, and Z. Let t appear w times in the relation:
X union (Y intersect Z).
Which of the following inequalities is true ?
a. w <= x+y
b. w <= y+z
c. w >= z
d. w <= max(x,y)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=33 (8522) The table Arc(x,y) currently has the following tuples (note there are duplicates):
(See picture)
Compute the result of the query:
SELECT x, COUNT(y)
FROM Arc
GROUP BY x;
Which of the following tuples is in the result?
[file:8522.jpg]
a. (4,4)
b. (4,5)
c. (4,6)
d. (4,7)
e. (4,8)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=34 (8501) Suppose the relation S(B,C,D) has tuples:
B C D
------------------------------------
a 4 6
c 6 8
c 5 5
e 9 9
F 10 10
c 7 9
Which one of the followings will appear in the result of the following query:
SELECT B, SUM(C)
FROM S
GROUP BY B
a. (c,11)
b. (c,13)
c. (c,12)
d. (c,18)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=35 (8503) Given the relation Employee(SSN, FNAME, LNAME, SALARY, DepartmentNo). Select the right query below to count the number of employees in each department.
a. SELECT COUNT(*) FROM Employee
b. SELECT DepartmentNo, COUNT(*) FROM Employee GROUP BY DepartmentNo
c. SELECT DepartmentNo, COUNT(*) FROM Employee
d. None of the others
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
QN=36 (8505) Suppose the relation S(B,C,D) has tuples:
B C D
------------------------------------
a 4 6
c 6 8
c 5 5
e 9 9
f 10 10
c 7 9
What row that appears in the result of the following query:
SELECT SUM(C), SUM(D)
FROM S
WHERE D < 9 AND D > 5
a. (10,11)
b. (10,12)
c. (10,13)
d. (10,14)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
TOEFL STRUCTURE 1

Quiz
•
University
20 questions
DD8U5: Verb und Anhang

Quiz
•
1st - 7th Grade
20 questions
Latihan Soal Part of Body

Quiz
•
5th Grade
20 questions
PH 1 - Die Uhrzeit

Quiz
•
10th Grade
15 questions
die Zahlen 0-20

Quiz
•
7th - 8th Grade
15 questions
Zahlen

Quiz
•
10th Grade
16 questions
Test de vocabulaire Unité 2

Quiz
•
1st - 6th Grade
20 questions
Hallo Leute!

Quiz
•
1st - 4th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade