CMSC 424 MULTIPLE CHOICE PRACTICE QUESTIONS
Referring to the 4 Vs of Big Data, analyzing the data collected by a the Large Hadron
Collider is primarily an example of: - Answer -volume
Which of the following is an example where "atomicity" (i.e., all or nothing property of
transactions) is not satisfied? - Answer -A user tries to do a balance transfer from Acct
A to B, but the system crashes in the middle and money is withdrawn from A, but not
added to B.
Databases are great at handling structured tabular data, but don't work as well for
unstructured data like text or images. - Answer -True
JSON is an example of a semi-structured data model? - Answer -True
The ability to modify the logical schema of a database without affecting the applications
running on top of the database, is an example of: - Answer -Logical data independence
What kind of data management system is appropriate if my goal is to analyze and build
complex reports on TBs of structured, mostly relational data on a weekly basis? -
Answer -Data Warehouse
What kind of data management system is appropriate if my goal is to serve users in
many different countries with as low latencies as possible (like a social network)? -
Answer -Distributed, highly-available OLTP System
On the large university dataset, what is the output of the following query? select count(*)
from instructor, advisor where id = i_id and dept_name = 'Physics'; - Answer -70
Which of the following 'psql' commands lists the relations present in the database? -
Answer -\d
On the following relation, where we denote the tuples in the relation using the notation
(): R(A, B) = { (a1, b1), (a2, b2), (a3, b3), (a1, b2), (a2, b2) } What is the result of SQL
Query "select A from R" ? - Answer -{ (a1), (a2), (a3), (a1), (a2) }
On the following relation, where we denote the tuples in the relation using the notation
(): R(A, B) = { (a1, b1), (a2, b2), (a3, b3), (a1, b2), (a2, b2) } What is the result of SQL
Query "select * from R where (A in [a1, a2]) or (B in [b1, b2])" ? - Answer -{ (a1, b1),
(a2, b2), (a1, b2), (a2, b2) }
R(A, B) = { (a1, b1), (a2, b2), (a3, b3) }
S(B, C) = { (b1, c1), (b2, c2), (b2, c1) }
Referring to the 4 Vs of Big Data, analyzing the data collected by a the Large Hadron
Collider is primarily an example of: - Answer -volume
Which of the following is an example where "atomicity" (i.e., all or nothing property of
transactions) is not satisfied? - Answer -A user tries to do a balance transfer from Acct
A to B, but the system crashes in the middle and money is withdrawn from A, but not
added to B.
Databases are great at handling structured tabular data, but don't work as well for
unstructured data like text or images. - Answer -True
JSON is an example of a semi-structured data model? - Answer -True
The ability to modify the logical schema of a database without affecting the applications
running on top of the database, is an example of: - Answer -Logical data independence
What kind of data management system is appropriate if my goal is to analyze and build
complex reports on TBs of structured, mostly relational data on a weekly basis? -
Answer -Data Warehouse
What kind of data management system is appropriate if my goal is to serve users in
many different countries with as low latencies as possible (like a social network)? -
Answer -Distributed, highly-available OLTP System
On the large university dataset, what is the output of the following query? select count(*)
from instructor, advisor where id = i_id and dept_name = 'Physics'; - Answer -70
Which of the following 'psql' commands lists the relations present in the database? -
Answer -\d
On the following relation, where we denote the tuples in the relation using the notation
(): R(A, B) = { (a1, b1), (a2, b2), (a3, b3), (a1, b2), (a2, b2) } What is the result of SQL
Query "select A from R" ? - Answer -{ (a1), (a2), (a3), (a1), (a2) }
On the following relation, where we denote the tuples in the relation using the notation
(): R(A, B) = { (a1, b1), (a2, b2), (a3, b3), (a1, b2), (a2, b2) } What is the result of SQL
Query "select * from R where (A in [a1, a2]) or (B in [b1, b2])" ? - Answer -{ (a1, b1),
(a2, b2), (a1, b2), (a2, b2) }
R(A, B) = { (a1, b1), (a2, b2), (a3, b3) }
S(B, C) = { (b1, c1), (b2, c2), (b2, c1) }