CIS 120 - Introduction to Databases » Summer 2021 » Quiz 2

Need help with your exam preparation?

Question #1
QBE stands for _______ By Example. (hint: Q_____y)
A.   Query
B.   Quitely
Question #2
We can write queries using QBE in Access.
A.   FALSE
B.   TRUE
Question #3
We can write queries using Relational Algebra in Access.
A.   TRUE
B.   FALSE
Question #4
In a relational database, each entity is stored in a table or relation.
A.   TRUE
B.   FALSE
Question #5
A table must have some columns or fields.
A.   FALSE
B.   TRUE
Question #6
In a relational database, a relationship is implemented through some common fields or columns between two relations or tables.
A.   TRUE
B.   FALSE
Question #7
A relation is a table, and a column is a field.
A.   FALSE
B.   TRUE
Question #8
A record is a row, and a row is a column.
A.   TRUE
B.   FALSE
Question #9
In a relational database, an entry of a field can be a set of values.
A.   TRUE
B.   FALSE
Question #10
A table may have many rows or no rows at all.
A.   TRUE
B.   FALSE
Question #11
A table may have many columns or no columns at all.
A.   TRUE
B.   FALSE
Question #12
In a table, order of columns is not important, but is meaningful to users and developers.
A.   TRUE
B.   FALSE
Question #13
In a relational database, some duplicate rows are allowed in a table.
A.   TRUE
B.   FALSE
Question #14
An un-normalized relation is a structure that satisfies all properties of a relation except that some entries in the table are NOT single-valued.
A.   FALSE
B.   TRUE
Question #15
In a table, an entry is NOT single-valued if it contains repeating groups.
A.   TRUE
B.   FALSE
Question #16
The primary key of a table R is the column(s) (in R) that can uniquely identify every row in R.
A.   TRUE
B.   FALSE
Question #17
In QBE query, we may specify " > 21 " on Criteria: row under Age column.
A.   FALSE
B.   TRUE
Question #18
In QBE query, we may add a computed field like "AvailableCredit: CreditLimit - Balance" using the Zoom dialog box.
A.   TRUE
B.   FALSE
Question #19
In QBE queries, we may use aggregate functions such as Count, Sum, Avg, Max, and Min.
A.   FALSE
B.   TRUE
Question #20
In QBE queries, we may use "Group By" on the Total: row under a column.
A.   TRUE
B.   FALSE
Question #21
In QBE queries, we cannot sort on multiple keys.
A.   TRUE
B.   FALSE
Question #22
To select data from two tables, we need to join two tables based on the matching fields in the corresponding columns.
A.   TRUE
B.   FALSE
Question #23
In Access, a join line indicates that the tables are related between primary key (PK) and foreign key (FK).
A.   FALSE
B.   TRUE
Question #24
In Access, we cannot join multiple tables in a query.
A.   FALSE
B.   TRUE
Question #25
The following query is valid in Relational Algebra. PROJECT Client OVER (ClientNum , ClientName) GIVING Answer ;
A.   TRUE
B.   FALSE
Question #26
Outer join is to join records from each original table that is common to both tables.
A.   FALSE
B.   TRUE
Question #27
In Relational Algebra, division of 2 tables is to create a table by concatenating every row in first table with every row in second table.
A.   TRUE
B.   FALSE
Question #28
SQL stands for ________ Query Language. (hint: S______d)
A.   Structured
B.   Simplified
Question #29
DBA stands for Data Base Administrator.
A.   TRUE
B.   FALSE
Question #30
If the Tasks table has been defined , the following SQL query is valid in Access. SELECT * FROM TABLE Tasks ;
A.   FALSE
B.   TRUE
Question #31
The following SQL query will display all rows and all columns of the Student table. SELECT * FROM Student ;
A.   TRUE
B.   FALSE
Question #32
Assuming the table and the columns have been defined properly, the following SQL query is valid in Access. SELECT ClientNum , ClientName , CreditLimit - Balance AS AvailableCredit FROM Client ;
A.   FALSE
B.   TRUE
Question #33
Assuming all the tables and columns have been defined properly, the following SQL command is valid to run. SELECT A , B , C FROM R1 WHERE A IN ( SELECT A FROM R2 WHERE D = 'A' ) ;
A.   TRUE
B.   FALSE
Question #34
In SQL, we should specify at least 3 join conditions in order to join 5 tables properly to get the meaningful result.
A.   FALSE
B.   TRUE
Question #35
The following SQL command will delete only one record from the Student table. DELETE FROM Student WHERE GPA = 4.0 ;
A.   FALSE
B.   TRUE
Question #36
The following SQL command will create a new table called Student2, which is identical to the Student table for all columns and all rows. SELECT * INTO Student2 FROM Student ;
A.   FALSE
B.   TRUE
Question #37
The result of a SELECT query may not be a table sometimes.
A.   TRUE
B.   FALSE
Question #38
Assuming all the tables and columns have been defined properly, the following SQL command is valid to run. SELECT DeptID, COUNT(*) AS NumberOfStudents, AVG( GPA) FROM Student GROUP BY DeptID HAVING AVG(GPA) > 3.4 ORDER BY DeptID ;
A.   FALSE
B.   TRUE
Question #39
In SQL, we cannot write a query inside another query because that would make the query not structured.
A.   FALSE
B.   TRUE
Question #40
The following SQL query will display the number of tasks of 'HOT' Category in the Tasks table. SELECT COUNT(*) FROM Tasks WHERE Category = ‘HOT’ ;
A.   FALSE
B.   TRUE

Need help with your exam preparation?