345-SQL Database Fundamentals R 2015
345-SQL Database Fundamentals R 2015
345-SQL Database Fundamentals R 2015
SQL DATABASE
FUNDAMENTALS-PILOT
(345)
REGIONAL – 2015
Multiple Choice:
Mark on the Scantron scoring sheet the letter of the answer that best answers the question
or completes/describes the statement. Mark A if the statement is true. Mark B if the
statement is false. (10 pts. each). If you finish before the end of the 60 minutes testing,
notify the proctor. Time may be a factor in determining the winner of the event of a tie.
1. What acronym refers to all of the major functions that are implemented in relational database
applications?
a. Atomize, Create, Insert, Delete (ACID)
b. Optimize, Persist, Commit (OPC)
c. Create, Persist, Commit, Implement (CPCI)
d. Create, Read, Update, Delete (CRUD)
2. In database terminology, a data file consisting of plain text or binary data is referred to as a:
a. Two dimensional file
b. One dimensional file
c. Flat file
d. Text data file
4. An RDBMS includes:
a. Support the use of Data Manipulation Language
b. Support the use of Structured Query Language
c. The ability to enforce constraints
d. All of the above
6. A table is:
a. A collection of rows and tuples
b. A collection of rows, columns and relationships
c. A collection of rows and columns
d. A data structure that enables supporting class types
12. The domain of a database is the set of legal values that can be assigned to an attribute.
a. True
b. False
SQL DATABASE FUNDAMENTALS-PILOT - REGIONAL 2015
Page 4 of 9
24. Characteristics of constraints with reference to database consist of the following except:
a. Constraints let you define the way the Database Engine automatically enforces the in-
tegrity of a database
b. Constraints define rules regarding the values allowed in columns
c. Constraints are standard mechanism for enforcing integrity
d. All of the above are characteristics of constraints
25. Constraints use existing indexes where possible, rather than creating new ones.
a. True
b. False
SQL DATABASE FUNDAMENTALS-PILOT - REGIONAL 2015
Page 6 of 9
26. Using constraints is preferred to using DML Triggers, rules, and defaults.
a. True
b. False
28. A fields data type does not control the way in which values are stored in memory
a. True
b. False
33. A GUID is a unique 128-bit number that is produced by the Windows OS or by some
Windows applications to identify a particular component, application, file, database entry,
and/or user.
a. True
b. False
SQL DATABASE FUNDAMENTALS-PILOT - REGIONAL 2015
Page 7 of 9
35. Which is not true when selecting appropriate data types for keys:
a. Primary key fields must never contain NULL values
b. Primary key values cannot have alpha data
c. Avoid using fields that may have repeat values
d. Primary key values cannot be changed
36. SQL commands are generally grouped into four categories. Which of the following is not
a category of SQL commands:
a. DDL (Data Definition Language)
b. DAL (Data Abstraction Language
c. DML (Data Manipulation Language)
d. DCL (Data Control Language)
37. A data definition language (DDL) is a computer language used to create and modify the
structure of database objects in a database. These database objects include, but are not limited
to views, schemas, tables, indexes, etc.
a. True
b. False
39. There are no syntax errors or format errors in the following CREATE statement for MS
SQL: CREATE TABLE Employee (Employee Id INTEGER PRIMARY KEY, First name
CHAR (50) NULL, Last name CHAR (75) NOT NULL)
a. True
b. False
SQL DATABASE FUNDAMENTALS-PILOT - REGIONAL 2015
Page 8 of 9
43. The data dictionary, in database management systems, is a file that defines the basic orga-
nization of a database.
a. True
b. False
44. In MS SQL, the correct format for the DROP index statement is:
a. DROP INDEX index_name ON table_name
b. DROP INDEX table_name.index_name
c. DROP INDEX index_name
d. ALTER TABLE table_name DROP INDEX index_name
45. In order to create a table named “customers” with a primary key named “custID”, use the
following MS SQL syntax (assume several more fields):
a. CREATE TABLE customers (custID INT NOT NULL PRIMARY KEY,)
b. CREATE TABLE NAME=customers (custID INT NOT NULL PRIMARY KEY,)
c. CREATE TABLE customers (PRIMARY KEY =custID INT NOT NULL ,)
d. CREATE TABLE NAME=customers (PRIMARY KEY =custID INT NOT NULL ,)
46. In MS SQL the parameter added to a field in order to auto increment that field is:
a. INCREMENT 1
b. AUTO_INC
c. IDENTITY
d. None of the above is a correct parameter
SQL DATABASE FUNDAMENTALS-PILOT - REGIONAL 2015
Page 9 of 9
47. You want to add a foreign constraint referencing a table named OrdDetail to the below
CREATE TABLE statement. Which MS SQL clause will syntactically accomplish this task?
CREATE TABLE Orders
(
O_Id int NOT NULL PRIMARY KEY,
OrderNo int NOT NULL
)
a. ordNum int FOREIGN KEY ordDetail(ordNum)
b. ordNum int REFERENCES FOREIGN KEY ordDetail(ordNum)
c. ordNum int FOREIGN KEY REFERENCES ordDetail(ordNum)
d. ordNum int CREATE FOREIGN KEY ordDetail(ordNum)
48. Any column(s) that can guarantee uniqueness is called a candidate key.
a. True
b. False
49. What does the SQL code in the following SQL clause define?
PRIMARY KEY (zipCode, PhoneNum)
a. A primary key and a foreign key
b. Two candidate keys that form one primary key
c. A composite key
d. The syntax is incorrect and is meaningless