Pre Assessment Flashcards

1
Q

Which requirement within large, complex databases ensures users have limited access to the database?
A. Recovery
B. Performance
C. Authorization
D. Confidentiality

A

C. Authorization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which design type specifies database requirements without regard to a specific database system?
A. Physical design
B. Conceptual design
C. Logical design
D. Abstract design

A

B. Conceptual design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What characterizes the rules of relational databases?
A. They are logical constraints that ensure the data is valid.
B. They are based on business policy and specific databases.
C. They represent data volumes and rapidly changing data structures.
D. They embody the theoretical foundation of the SQL language.

A

A. They are logical constraints that ensure the data is valid.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which event will result in an error code and error description when using MySQL Server?
A. When the server or updates are incorrectly installed
B. When an SQL statement is entered to locate errors in the database
C. When an SQL statement is syntactically incorrect
D. When a Mac OS shortcut code is used on a Windows OS

A

C. When an SQL statement is syntactically incorrect

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which data type should be used to store whole integer values, such as age?
A. NUM
B. VARCHAR
C. DATE
D. INT

A

D. INT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which text-based interface is included in the MySQL Server Download?
A. MySQL Command-Line Client
B. MySQL Workbench
C. MySQL Enterprise
D. MySQL Community

A

A. MySQL Command-Line Client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which database system includes the World database during its installation?
A. MySQL
B. MongoDB
C. Oracle
D. PostgreSQL

A

A. MySQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the standardized language of relational database systems?
A. Contextual Query Language
B. Structured Query Language
C. Select Query Language
D. Object Query Language

A

B. Structured Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which SQL sublanguage is used to manage database access?
A. Data Definition Language (DDL)
B. Data Query Language (DQL)
C. Data Manipulation Language (DML)
D. Data Control Language (DCL)

A

D. Data Control Language (DCL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which SQL sublanguage is used to roll back database changes?
A. Data Transaction Language (DTL)
B. Data Manipulation Language (DML)
C. Data Query Language (DQL)
D. Data Control Language (DCL)

A

Data Transaction Language (DTL) Data Manipulation Language (DML) Data Query Language (DQL)
Data Control Language (DCL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which format is used by the TIME data type in MySQL?
A. YYYY-MM-DD
B. YYYY-MM-DD hh:mm:ss
C. hh:mm:ss
D. hh:mm:ss YYYY-MM-DD

A

C. hh:mm:ss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which MySQL operator is the last in the order of operator precedence?
A. -
B. OR
C. NOT
D. =

A

B. OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which operator is used to compare columns from the left and right tables in MySQL?
A. <=
B. +
C. =
D. *

A

C. =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which type of join combines two tables without comparing columns?
A. SELF
B. EQUIJOIN
C. OUTER
D. CROSS

A

D. CROSS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which type of join compares columns using only the = operator?
A. Equijoin
B. Non-equijoin
C. Outer join
D. Inner join

A

A. Equijoin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which type of join is demonstrated by the following query?
SELECT Dog.Nickname, Kennel.Address FROM Dog, Kennel
WHERE Dog.KennelID = Kennel.ID

A. NON-EQUIJOIN
B. SELF JOIN
C. CROSS JOIN
D. EQUIJOIN

A

D. EQUIJOIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is another name for a subquery?
A. Outer query
B. Nested query
C. Correlated query
D. Search query

A

B. Nested query

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which operator is used to compare against a list of values when determining a match in a WHERE clause?
A. IN
B. BETWEEN
C. LIKE
D. OR

A

A. IN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Which wildcard character is used to represent zero or more characters when searching for a specified pattern using a LIKE operator?
A. %
B. _
C. <
D. >

A

A. %

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Which function is considered an aggregating function in SQL?
A. TRIM
B. REPLACE
C. MIN
D. SUBSTRING

A

C. MIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Which clause or function is used with aggregate functions to produce summary rows?
A. TRIM
B. REPLACE
C. ORDER BY
D. GROUP BY

A

D. GROUP BY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Which type of join returns only the matching values when selecting rows from two or more tables?
A. Full Join
B. Outer Join
C. Equijoin
D. Inner Join

A

D. Inner Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Which join type selects only matching left and right table rows?
A. Full Join
B. Left Join
C. Right Join
D. Inner Join

A

D. Inner Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Which phrase refers to the view in which data is persisted and is automatically changed as the underlying data is changed?
A. Virtual View
B. Snapshot View
C. Denormalized View
D. Materialized View

A

D. Materialized View

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Which SQL command uses the correct syntax to update the salary of an employee in the Employee table?
A. CHANGE Employee Salary = 50000 WHERE ID = 1;
B. UPDATE Employee SET Salary = 50000 WHERE ID = 1;
C. ALTER Employee SET Salary = 50000 WHERE ID = 1;
D. UPDATE Employee (Salary) = (50000) WHERE ID = 1;

A

B. UPDATE Employee SET Salary = 50000 WHERE ID = 1;

26
Q

What describes elements such as column name and data type?
A. Alter
B. Table
C. Metadata
D. CRUD

A

C. Metadata

27
Q

Which term identifies an ordered collection of elements enclosed in parenthesis in a tablespace?
A. Cell
B. Field
C. Column
D. Tuple

A

D. Tuple

28
Q

Which SQL command uses the correct syntax to select the name and salary columns from the Employee table, where the salary is greater than 50000, and sort the results by salary in descending order?
A. SELECT name, salary FROM Employee WHERE salary > 50000 ORDER BY salary DESC;
B. SELECT Employee.name, Employee.salary WHERE Employee.salary > 50000 SORT BY Employee.salary DESC;
C. SELECT name, salary FROM Employee SORT BY salary DESC WHERE salary > 50000;
D. SELECT name, salary FROM Employee WHERE salary > 50000 SORT BY salary ASC;

A

A. SELECT name, salary FROM Employee WHERE salary > 50000 ORDER BY salary DESC;

29
Q

Which INSERT statement demonstrates valid syntax in SQL?
A. INSERT INTO table_name (column1, column2) SET value1, value2;
B. INSERT INTO table_name VALUES (value1, value2);
C. INSERT INTO table_name (column1, column2) VALUES (value1, value2);
D. INSERT INTO table_name SET column1 = value1, column2 = value2;

A

C. INSERT INTO table_name (column1, column2) VALUES (value1, value2);

30
Q

Which UPDATE statement uses valid syntax in SQL?
A. UPDATE table_name column_name= value1 WHERE condition
B. UPDATE table_name SET column1 = value1, column2 = value2 WHERE condition;
C. UPDATE SET column1 = value1, column2 = value2 WHERE condition IN table_name;
D. UPDATE table_name SET column_name = value1

A

B. UPDATE table_name SET column1 = value1, column2 = value2 WHERE condition;

31
Q

Which statement used to remove data from temporary tables?
A. DROP
B. DELETE
C. DEFAULT
D. TRUNCATE

A

D. TRUNCATE

32
Q

Which keyword is a DDL (data definition language) keyword in SQL?
A. INSERT
B. UPDATE
C. DELETE
D. CREATE

A

D. CREATE

33
Q

Which property is enforced by a primary key field?
A. Not Null
B. Null
C. Duplicate
D. Numeric

A

A. Not Null

34
Q

Which property or function allows SQL to insert a field value?
A. Composite
B. Simple
C. Auto-increment
D. Numeric

A

C. Auto-increment

35
Q

Which property specifies an expression on one or more columns of a table?
A. CHECK
B. RESTRICT
C. CASCADE
D. UNIQUE

A

A. CHECK

36
Q

Which type of key is a single column in a table used to identify a row?
A. Super key
B. Simple primary key
C. Foreign key
D. Composite primary key

A

B. Simple primary key

37
Q

Which type of key is often represented by parentheses to show multiple columns?
A. Composite
B. Simple
C. Unique
D. Foreign

A

A. Composite

38
Q

Which primary key characteristic means it includes information that is easy to type and store?
A. Non-null
B. Meaningless
C. Stable
D. Simple

A

D. Simple

39
Q

Which part of a junction table in a relational database establishes a many-to-many relationship between two tables?
A. Primary key
B. Foreign key
C. Composite key
D. Candidate key

A

B. Foreign key

40
Q

Which type of relationship is established by a foreign key in a relational database?
A. Aggregation
B. Composition
C. One-to-many
D. Many-to-many

A

C. One-to-many

41
Q

Which statements may be rejected when a foreign key constraint is specified?
A. INSERT
B. CHECK
C. SELECT
D. ORDER BY

A

A. INSERT

42
Q

Which key describes the unique columns in a table that do not contain a primary key?
A. Foreign key
B. Simple key
C. Candidate key
D. Composite key

A

C. Candidate key

43
Q

Which index stores column values and row pointers in a hierarchy?
A. Dense index
B. Sparse index
C. Multi-level index
D. Secondary index

A

C. Multi-level index

44
Q

Which type of index refers to entries that are assigned to buckets?
A. Bitmap index
B. Logical index
C. Hash index
D. Secondary index

A

C. Hash index

45
Q

Which type of index is a grid of bits where each index row corresponds to a unique row in a table?
A. Multi-level index
B. Logical index
C. Hash index
D. Bitmap index

A

D. Bitmap index

46
Q

Which type of development activity is used to convert an entity-relationship model (ERM) into tables, columns, and keys?
A. Execution
B. Physical design
C. Analysis
D. Logical design

A

D. Logical design

47
Q

Which term addresses columns of A being a subset of the columns of B, with A always depending on B?
A. Third normal form
B. Candidate key
C. Trivial dependency
D. Non-trivial dependency

A

C. Trivial dependency

48
Q

Which term describes the process of denormalization?
A. Merging tables
B. Candidate key
C. Trivial dependency
D. Third normal form

A

A. Merging tables

49
Q

A database designer is working with a table that has a primary key and no duplicate rows. What can be concluded about the table?
A. It is a Boyce-Codd table.
B. It contains trivial dependency.
C. The table contains a non-key column.
D. It is a first normal form table.

A

D. It is a first normal form table.

50
Q

Which process eliminates redundancy by decomposing a table into two or more tables in a higher normal form?
A. Merging
B. Creation of a candidate key
C. Evaluation of trivial dependency
D. Normalization

A

D. Normalization

51
Q

Which term describes the optimal normal form for frequent inserts, updates, and deletes of data?
A. Boyce-Codd normal form
B. Candidate key
C. Trivial dependency
D. Third normal form

A

A. Boyce-Codd normal form

52
Q

Which relationship is depicted in the following entity-relationship (ER) diagram?
A. Ternary
B. Many-to-many
C. One-to-one
D. One-to-many

A

D. One-to-many

53
Q

Which relationship or association exists between a supertype entity and its subtype entities?
A. IsA relationship
B. Weak entity
C. Associative entity
D. Unary relationship

A

A. IsA relationship

54
Q

Which symbol is used in an entity-relationship (ER) diagram for an entity?
A. Diamond
B. Square
C. Circle
D. Line

A

B. Square

55
Q

Which symbol is used in an entity-relationship (ER) diagram to indicate an attribute?
A. Diamond
B. Square
C. Circle
D. Line

A

C. Circle

56
Q

What must be done before creating supertype and subtype entities?
A. Identify entities.
B. Document entities.
C. Determine attribute maxima.
D. Document cardinality.

A

A. Identify entities.

57
Q

Which real-world object can be distinctly identified and grouped, such as all employees in a company?
A. Entity-relationship (ER) diagram
B. Glossary
C. Entity
D. Attribute type

A

C. Entity

58
Q

Which item in an entity-relationship (ER) diagram follows the attribute name and is placed outside of parentheses?
A. Weak entity
B. Attribute maximum
C. Attribute minimum
D. Physical design

A

B. Attribute maximum

59
Q

Which strategy can be used to identify primary keys when investigating data relationships?
A. Trend analysis
B. Unique identifier analysis
C. Hypothesis testing
D. Visualization

A

B. Unique identifier analysis

60
Q

How should an entity relationship phrase be read to correctly understand how one entity relates to another entity in an entity- relationship diagram (ER diagram)?
A. From top to bottom
B. In the direction the entity box is facing
C. In the direction the relationship verb is facing
D. From left to right

A

C. In the direction the relationship verb is facing