Database Fundamentals v1.0 (98-364)

Page:    1 / 10   
Total 140 questions

Which two elements are required to define a column? (Choose two.)

  • A. A name
  • B. A key
  • C. An index
  • D. A data type


Answer : AD

What defines the amount of storage space that is allocated to a value in a column?

  • A. format
  • B. key
  • C. data type
  • D. validator


Answer : C

You are creating a table to store customer data. The AccountNumber column uses values that always consist of one letter and four digits. Which data type should you use for the AccountNumber column?

  • A. CHAR
  • B. BYTE
  • C. DOUBLE
  • D. SMALLINT


Answer : A

What is one difference between an update statement and a delete statement?

  • A. An update statement can change only one row.
  • B. A delete statement cannot use a where clause.
  • C. An update statement does not remove rows from a table.
  • D. A delete statement works only within a stored procedure.


Answer : C

You have a Department table and an Employee table in your database.
You need to ensure that an employee can be assigned to only an existing department.
What should you apply to the Employee table?

  • A. A primary key
  • B. An index
  • C. A foreign key
  • D. A unique constraint
  • E. A data type


Answer : C

You need to store the first name, last name, and student ID for 100 students.
This information will be stored in a table as:

  • A. 100 items and three cells.
  • B. 100 rows and three columns.
  • C. three rows and 100 columns.
  • D. three items and 100 cells.


Answer : B

What are three valid data manipulation language (DML) commands? (Choose three.)

  • A. INSERT
  • B. COMMIT
  • C. DELETE
  • D. OUTPUT
  • E. UPDATE


Answer : ACE

Explanation:
Data manipulation languages have their functional capability organized by the initial word in a statement, which is almost always a verb. In the case of SQL, these verbs are:
-> SELECT ... FROM ... WHERE ...
-> INSERT INTO ... VALUES ...
-> UPDATE ... SET ... WHERE ...
-> DELETE FROM ... WHERE ...
References:
http://en.wikipedia.org/wiki/Data_manipulation_language

You assign User1 a set of permissions that include the WITH GRANT OPTION.
The WITH GRANT OPTION enables User1 to:

  • A. request a log of permission use.
  • B. delegate permissions to other users.
  • C. create new database users.
  • D. view other users' permissions.


Answer : C

Which type of index changes the order in which the data is stored in a table?

  • A. non-sequential
  • B. sequential
  • C. non-clustered
  • D. clustered


Answer : A

Which statement should you use to remove a foreign key?

  • A. ALTER TABLE
  • B. DELETE TABLE
  • C. DELETE FOREIGN KEY
  • D. ALTER FOREIGN KEY


Answer : A

First normal form requires that a database excludes:

  • A. Foreign keys
  • B. Composite keys
  • C. Duplicate rows
  • D. Repeating groups


Answer : D

You execute a statement inside a transaction to delete 100 rows from a table. The transaction fails after only 40 rows are deleted.
What is the result in the database?

  • A. The table will be corrupted.
  • B. Forty (40) rows will be deleted from the table.
  • C. The transaction will restart.
  • D. No rows will be deleted from the table.


Answer : D

You have a table that contains product IDs and product names.
You need to write an UPDATE statement to change the name of a specific product to glass.
What should you include in the update statement?

  • A. SET ProduetName = 'glass'
  • B. LET ProduetName = 'glass'
  • C. EXEC ProduetName = 'glass'
  • D. ASSIGN ProduetName = 'glass'


Answer : A

Your database contains a table named Customer.
You need to delete the record from the Customer table that has a CusromerID of 12345.
Which statement should you use?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : D

On which database structure does an insert statement operate?

  • A. Role
  • B. Trigger
  • C. User
  • D. Stored procedure
  • E. Table


Answer : E

Page:    1 / 10   
Total 140 questions