EX Problems Flashcards

1
Q

What is a null value?

a. An outdated value
b. A known value
c. A value that represents missing/ unknown data
d. Numerical value

A

c. A value that represents missing/ unknown data

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

What is accept data for a column declared as a BIT and NOT NULL?

a. yes
b. 5
c. 3.14
d. 1

A

d. 1

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

What sort of statement retries data in a SQL code?

a. RETRIEVE
b. READ
c. SELECT
d. GET

A

c. SELECT

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

When creating a student roster, a school can’t enroll more than 20 students per course. This is an example of what data modeling building block?

a. attribute
b. entity
c. relationship
d. constraint

A

d. constraint

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

Which function determines the number of rows in a table?

a. ROW
b. CALCULATE
c. COUNT
d. NUMBER

A

c. COUNT

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

Which is the statement about how logical operators are resolved in SQL queries is true?

a. AND is always evaluated before OR
b. AND is always evaluated before OR
c. Conditions are evaluated in the order they occur in code
d. Both B and C

A

d. Both B and C

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

Which of these is NOT a type of relationship in a relational database?

a. two-to-one
b. many-to-one
c. many-to-many
d. one-to-many

A

a. two-to-one

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

Which result is NOT possible when you apply the following filter? WHERE number BETWEEN 5 AND 8

a. 6
b. 5
c. NULL
d. 8

A

c. NULL

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

Which statement about primary keys is true?

a. Primary keys must be unique
b. Both A and C
c. Primary keys can be made up of one or more columns
d. Primary key value is required for every table

A

b. Both A and C

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

Unnormalized tables yield no simple strategies for creating virtual tables known as ___

a. views
b. attributes
c. entities
d. keys

A

a. views

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

The ___ command will delete all data from a table, while the ___ command is used to delete a table from the database.

a. REMOVE; DROP
b. TRUNCATE; DROP
c. RESET; DELETE
d. TRUNCATE; REMOVE

A

b. TRUNCATE; DROP

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

Raw data in its original state that has data anomalies such as redundant or multivalued data is ___ data?

a. consistent
b. normalized
c. unnormalized
d. relational

A

c. unnormalized

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

In the SELECT clause, you can indicate that you want to include all columns using the ___

a. \
b. /
c. *
d. ?

A

c. *

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

Determine which of the following simple-language expressions represents a valid constraint.

a. EMPLOYEE manages STORE
b. CUSTOMER generates INVOICE
c. STUDENT takes CLASS
d. Each CONTAINER contains between 0 and 100 UNITS

A

d. Each CONTAINER contains between 0 and 100 UNITS

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