CIS 120 - Introduction to Databases » Summer 2021 » Midterm
Need help with your exam preparation?
Get Answers to this exam for $6 USD.
Get Answers to all exams in [ CIS 120 - Introduction to Databases ] course for $25 USD.
Existing Quiz Clients Login here
Question #1
One advantage of indexes is to make some data retrieval more efficient.
A.
FALSE
B.
TRUE
Question #2
A table may have many rows or no rows at all.
A.
FALSE
B.
TRUE
Question #3
If the Tasks table has been defined , the following SQL query is valid in Access. SELECT * FROM TABLE Tasks ;
A.
FALSE
B.
TRUE
Question #4
QBE is a procedural language of 3GL.
A.
FALSE
B.
TRUE
Question #5
The FD: A -> B implies the FD: B -> A
A.
TRUE
B.
FALSE
Question #6
The FD: ( L , F ) -> SID is NOT in the Student table as defined below: Student ( SID , L , F , GPA )
A.
TRUE
B.
FALSE
Question #7
A table must have some columns or fields.
A.
FALSE
B.
TRUE
Question #8
The following SQL command will drop or remove or delete the Client table’s definition and all its data rows. DELETE FROM Client ;
A.
FALSE
B.
TRUE
Question #9
The FD: A -> B implies the FD: B -> A
A.
FALSE
B.
TRUE
Question #10
Access does not use the term “trigger”, but Access offers the functionality of triggers through data macros.
A.
TRUE
B.
FALSE
Question #11
A PC with a 3.4-GHz CPU can execute up to 3.4 million instructions per second.
A.
TRUE
B.
FALSE
Question #12
In the following SQL command, ON DELETE SET NULL means if instructor 6 is deleted from the Instructor table, all students with adviser being instructor 6 will be deleted at the same time. CREATE TABLE Student ( StudentID int NOT NULL, AdvisorID int , LastName varchar(45) NOT NULL, FirstName varchar(45) NOT NULL ) PRIMARY KEY ( StudentID ) FOREIGN KEY ( AdvisorID ) REFERENCES Instructor ( InstructorID ) ON DELETE SET NULL ;
A.
FALSE
B.
TRUE
Question #13
The binary number 110011010011 is = ________ in hexadecimal.
A.
CD3
B.
DC3
Question #14
In a relational database, an entry of a field can be a set of values.
A.
FALSE
B.
TRUE
Question #15
Some advantages of using database approach are to control redundancy and to maintain referential integrity.
A.
FALSE
B.
TRUE
Question #16
The following query is valid in Relational Algebra. PROJECT Client OVER (ClientNum , ClientName) GIVING Answer ;
A.
TRUE
B.
FALSE
Question #17
An attribute, column, or field is a property of an entity.
A.
FALSE
B.
TRUE
Question #18
Given that a professor can teach many courses, the relationship from Professor entity to Course entity is one-to-many.
A.
TRUE
B.
FALSE
Question #19
We can NOT write queries using Relational Algebra in Access.
A.
TRUE
B.
FALSE
Question #20
The FD: SID -> ( L , F , GPA ) is valid in the Student table as defined below: Student ( SID , L , F , GPA )
A.
FALSE
B.
TRUE
Question #21
An index for any column must be unique.
A.
TRUE
B.
FALSE
Question #22
A trigger is an action that occurs automatically in response to an associated database operation such as an INSERT, UPDATE, or DELETE.
A.
TRUE
B.
FALSE
Question #23
The following SQL command will only remove or delete all the records in the Client table. DROP TABLE Client ;
A.
FALSE
B.
TRUE
Question #24
System catalog contains only information of those tables that are commonly used by DBA.
A.
TRUE
B.
FALSE
Question #25
In a relational database, a relationship is implemented through some common fields or columns between two relations or tables.
A.
TRUE
B.
FALSE
Question #26
In a relational database, an entity is represented by a table.
A.
FALSE
B.
TRUE
Question #27
The following SQL command is valid to create an unique index of one column on a table. CREATE UNIQUE INDEX IXClientNum ON Client ( ClientNum ) ;
A.
FALSE
B.
TRUE
Question #28
An index for any column may or may not be unique.
A.
FALSE
B.
TRUE
Question #29
To select data from two tables, we need to join two tables based on the matching fields in the corresponding columns.
A.
FALSE
B.
TRUE
Question #30
Decimal number 43 is = ________________ in binary.
A.
110101
B.
101011
Question #31
We can NOT create an un-normalized table in Access or any relational DBMS.
A.
TRUE
B.
FALSE
Question #32
The FD: ( L , F , G ) -> SID is valid in the Student table as defined below: Student ( SID , L , F , G )
A.
TRUE
B.
FALSE
Question #33
The binary number 001001 is = _______in Octal.
A.
11
B.
10
Question #34
In a table, order of columns is not important, but is meaningful to users and developers.
A.
TRUE
B.
FALSE
Question #35
The FD: A -> B means that each value for A is associated with exactly one value of B.
A.
TRUE
B.
FALSE
Question #36
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.
TRUE
B.
FALSE
Question #37
A.
FALSE
B.
TRUE
Question #38
DBA stands for Data Base Administrator.
A.
FALSE
B.
TRUE
Question #39
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.
FALSE
B.
TRUE
Question #40
The decimal number 10 is equal to _________ in binary.
A.
1010
B.
0111
Question #41
In a relational DBMS, we can create a table that is not in 1NF.
A.
FALSE
B.
TRUE
Question #42
The SQL commands for security mechanisms are GRANT and REVOKE.
A.
TRUE
B.
FALSE
Question #43
We may use DELETE command to completely remove the whole table’s definition and records.
A.
TRUE
B.
FALSE
Question #44
Big data may be structured, unstructured, or a combination of both.
A.
TRUE
B.
FALSE
Question #45
In a relational database, each entity is stored in a table or relation.
A.
TRUE
B.
FALSE
Question #46
The following SQL command will only remove or delete all the rows or records of the Class table. DROP TABLE Class ;
A.
TRUE
B.
FALSE
Question #47
In QBE queries, we may use aggregate functions such as Count, Sum, Avg, Max, and Min.
A.
TRUE
B.
FALSE
Question #48
Outer join is to join records from each original table that is common to both tables.
A.
TRUE
B.
FALSE
Question #49
In QBE query, we may add a computed field like "AvailableCredit: CreditLimit - Balance" using the Zoom dialog box.
A.
TRUE
B.
FALSE
Question #50
Normalization is a method to convert tables into 2NF, 3NF, or 4NF.
A.
TRUE
B.
FALSE
Question #51
Given that a professor can advise many students, the relationship from Professor entity to Student entity is many-to-one.
A.
TRUE
B.
FALSE
Question #52
A table can have many primary keys since a table may have many candidate keys.
A.
TRUE
B.
FALSE
Question #53
A table can have only one primary key and one foreign key.
A.
TRUE
B.
FALSE
Question #54
Table in 1NF is better than the table in 2NF, which is better than the table in 3NF or 4NF.
A.
FALSE
B.
TRUE
Question #55
To select data from two tables, we need to join two tables based on the matching fields in the corresponding columns.
A.
FALSE
B.
TRUE
Question #56
A relationship is an association between two attributes.
A.
TRUE
B.
FALSE
Question #57
We can create an un-normalized table in Access or any relational DBMS.
A.
FALSE
B.
TRUE
Question #58
In Access, referential integrity (RI) is specified by defining a relationship between two tables.
A.
TRUE
B.
FALSE
Question #59
Some advantages of using database approach are to control redundancy and to maintain referential integrity.
A.
FALSE
B.
TRUE
Question #60
Binary number 101100110 is = _________ in decimal.
A.
358
B.
353
Question #61
ACCESS is a relational DBMS.
A.
FALSE
B.
TRUE
Question #62
QBE stands for _______ By Example. (hint: Q_____y)
A.
Quitely
B.
Query
Question #63
A table can have only one primary key, but can have many foreign keys.
A.
TRUE
B.
FALSE
Question #64
To specify referential integrity (RI) in SQL, we may add FOREIGN KEY clause in either the CREATE TABLE or ALTER TABLE commands.
A.
TRUE
B.
FALSE
Question #65
( A -> B and B -> C ) implies A -> C
A.
FALSE
B.
TRUE
Question #66
A table may have many columns or no columns at all.
A.
TRUE
B.
FALSE
Question #67
If the Tasks table has been defined , the following SQL query is valid in Access. SELECT ALL FROM Tasks ;
A.
FALSE
B.
TRUE
Question #68
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 #69
The following SQL command will only remove or delete all the rows from the EMP table. DELETE FROM EMP ;
A.
TRUE
B.
FALSE
Question #70
The primary key for Student table in a relational database can be StudentID.
A.
TRUE
B.
FALSE
Question #71
In a relational DBMS, we can NOT create a table that is not in 1NF.
A.
TRUE
B.
FALSE
Question #72
A table can have many primary keys since a table may have many candidate keys.
A.
TRUE
B.
FALSE
Question #73
A table may have many columns or no columns at all.
A.
TRUE
B.
FALSE
Question #74
A , which is a column or a set of columns, is a candidate key for table R if all columns in R are functionally dependent on A, and no subset of A can functionally determine all columns in R.
A.
TRUE
B.
FALSE
Question #75
Access does not offer the functionality of triggers through data macros.
A.
FALSE
B.
TRUE
Question #76
A table may have many rows or no rows at all.
A.
FALSE
B.
TRUE
Question #77
QBE stands for Query By __________. (hint: E_____e)
A.
Entrée
B.
Example
Question #78
The binary number 101110111 is = _______in Octal.
A.
567
B.
566
Question #79
One disadvantage of using a DBMS is the complexity of referential integrity.
A.
FALSE
B.
TRUE
Question #80
A relationship is an association between two tables through their common fields.
A.
FALSE
B.
TRUE
Question #81
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 #82
In a table, an entry is NOT single-valued if it contains repeating groups.
A.
FALSE
B.
TRUE
Question #83
A PC with a 3.4-GHz CPU can execute up to 3.4 million instructions per second.
A.
FALSE
B.
TRUE
Question #84
Normalization process may not guarantee to make all tables free of all anomalies or problems.
A.
TRUE
B.
FALSE
Question #85
A table should have a primary key, but a table may have many candidate keys.
A.
TRUE
B.
FALSE
Question #86
In the Relationships diagram of Access, a line connects a primary key to a foreign key with one-to-many relationship.
A.
FALSE
B.
TRUE
Question #87
In a relational database, some duplicate rows are allowed in a table.
A.
TRUE
B.
FALSE
Question #88
Normally, a DBA would design a database with tables whose FDs are documented clearly in users’ manuals/policies.
A.
FALSE
B.
TRUE
Question #89
In QBE query, we may specify " > 21 " on Criteria: row under Age column.
A.
FALSE
B.
TRUE
Question #90
The hex number 00000F is equal to _____ in decimal.
A.
15
B.
10
Question #91
Normally, a DBA would design a database with tables whose FDs are documented clearly in users’ manuals/policies.
A.
FALSE
B.
TRUE
Question #92
In Access, referential integrity (RI) is specified by defining a relationship between two tables.
A.
FALSE
B.
TRUE
Question #93
The following SQL command will drop or delete the field EMP from the SSN table. ALTER TABLE EMP DROP COLUMN SSN ;
A.
TRUE
B.
FALSE
Question #94
The binary number 10001001 is equal to _____ in hex.
A.
88
B.
89
Question #95
Normalization process may not guarantee to make all tables free of all anomalies or problems.
A.
TRUE
B.
FALSE
Question #96
( A -> B and A -> C ) implies B -> C
A.
FALSE
B.
TRUE
Question #97
In Access, we cannot join multiple tables in a query.
A.
FALSE
B.
TRUE
Question #98
The FD: SID -> ( L , F , GPA ) is valid in the Student table as defined below: Student ( SID , L , F , GPA )
A.
TRUE
B.
FALSE
Question #99
Table W ( N, D , T , C , S ) is in 2NF if it has the following 2 FDs: FD1: N -> D FD2: N, T -> ( D , C , S )
A.
FALSE
B.
TRUE
Question #100
The FD: A -> B means that each value for A is associated with exactly one value of B.
A.
TRUE
B.
FALSE
Question #101
We can write queries using Relational Algebra in Access.
A.
FALSE
B.
TRUE
Question #102
We cannot create an index on many columns of a table.
A.
FALSE
B.
TRUE
Question #103
1KB of main memory actually contains __________ (exactly how many) bytes of memory. (Hint: More than 1000)
A.
1020
B.
1024
Question #104
The FD: ( L , F ) -> SID is NOT in the Student table as defined below: Student ( SID , L , F , GPA )
A.
TRUE
B.
FALSE
Question #105
The FD: SID -> GPA is valid in the Student table as defined below: Student ( SID , LastName , FirstName , GPA )
A.
TRUE
B.
FALSE
Question #106
The following SQL query will display all rows and all columns of the Employee table. SELECT * FROM Employee ;
A.
FALSE
B.
TRUE
Question #107
ACCESS is NOT a relational DBMS.
A.
FALSE
B.
TRUE
Question #108
The primary key of the Student table (as shown below) can be LastName and FirstName. Student ( StudentID, LastName, FirstName, Address, Phone, GPA, Major, BirthDate )
A.
FALSE
B.
TRUE
Question #109
We can always determine a FD by just carefully examining the contents/records of a table or relation.
A.
TRUE
B.
FALSE
Question #110
The following SQL command is to add a new field called GPA to the Student table. ALTER TABLE Student ADD GPA CHAR(1) ;
A.
FALSE
B.
TRUE
Question #111
ERD stands for ________ Relationship Diagram. (hint: E_________y )
A.
Entry
B.
Entity
Question #112
( A -> B and A -> C ) implies B -> C
A.
TRUE
B.
FALSE
Question #113
In a relational database, some duplicate rows are allowed in a table.
A.
FALSE
B.
TRUE
Question #114
To specify primary key in SQL, we may enter a PRIMARY KEY clause in either an ALTER TABLE or a CREATE TABLE command.
A.
FALSE
B.
TRUE
Question #115
SQL stands for ________ Query Language. (hint: S______d)
A.
Structured
B.
Simplified
Question #116
The binary number 10001001 is equal to _____ in hex.
A.
88
B.
89
Question #117
A , which is a column or a set of columns, is a candidate key for table R if and only if all columns in R are functionally dependent on A.
A.
TRUE
B.
FALSE
Question #118
In Access, we cannot join multiple tables in a query.
A.
TRUE
B.
FALSE
Question #119
An un-normalized table can be in 1NF sometimes.
A.
TRUE
B.
FALSE
Question #120
In Access, a join line indicates that the tables are related between primary key (PK) and foreign key (FK).
A.
FALSE
B.
TRUE
Need help with your exam preparation?
Get Answers to this exam for $6 USD.
Get Answers to all exams in [ CIS 120 - Introduction to Databases ] course for $25 USD.
Existing Quiz Clients Login here