Anda di halaman 1dari 19

1. What command is used to execute a stored procedure?

a. Start
b. Use
c. Exec
d. Go
2. Which permission does user need in order to run store procedure?
a. ALLOW
b. CALL
c. RUN
d. EXECUTE
3. What is an attribute or set of attributes that can be used to uniquely identify the row?
a. Foreign key
b. Second key
c. Primary key
d. Unique constraint key
4. Which level eliminates columns not dependent on keys?
a. 1NF
b. 2NF
c. 4NF
d. 3NF
5. What is the set of rules that determine how data is sorted and compared?
a. Filter
b. Sort rule
c. Collation
d. Constraint
6. Which statement can you use to remove rows from a table?
a. UPDATE
b. STOP
c. SELECT
d. DELETE
7. On which database structure does on INSERT statement operate?
a. User
b. Role
c. Stored Procedure
d. Table
e. Trigger
8. What type of index has an index key value that points to a data row, which contains the
key value?
a. Clustered index
b. Nonclustered index
c. Primary index
d. Quick index

9. What key is replicated from the primary key of one table to a secondary table, and then
all the key attributes get duplicated from the primary table?
a. Primary key
b. Foreign key
c. Second key
d. Unique constraint key
10. What type of index sorts the data stored inside the table?
a. Clustered index
b. Primary index
c. Quick index
d. Non-clustered index
11. You have a table named Customer. You need to add a new column named District. Which
statement should you use?
a. MODIFY TABLE Customer (District INTEGER)
b. ALTER TABLE Customer ADD (District INTEGER)
c. ALTER TABLE Customer MODIFY (District INTEGER)
d. MODIFY TABLE Customer ADD (District INTEGER)
12. You execute the following statement :
SELECT EmployeeID, Firstname, DepartmenName,
FROM Employee, Department
This type of operation is called a/an :
a. Equi-join
b. Outer Join
c. Cartesian product
d. Intersection
13. What is a collection of programs that enables you to enter, organize, and select data from
a database?
a. DAT application
b. Flat program
c. DBMS
d. Spreadsheet group
14. You need to store the contact information for each student in your school database.You
should store each students information in a :
a. Function
b. Variable
c. Stored procedure
d. Row
15. What common data type you would be used to count objects?
a. Double float
b. Money
c. Float
d. Integer

16. What clause is used to combine related data from multiple table sources?
a. PLUS
b. AND
c. COMBINE
d. JOIN
17. What common data type you would be used to count objects?
a. Double float
b. Money
c. Float
d. Integer
18. What clause is used to combine related data from multiple table sources?
a. PLUS
b. AND
c. COMBINE
d. JOIN
19. What command would you use to grant object permissions?
a. USE
b. GRANT
c. RUNAS
d. ALLOW
20. If you define a primary key, which of the following levels have you reached?
a. 4NF
b. 2NF
c. 3NF
d. 1NF
21. Which of the following is a language element that allows you to use core statements such
as INSERT, UPDATE, and DELETE to manipulate data in any SQL Server table?
a. DAT
b. DDL
c. DDE
d. DML
22. You need to disable User1s access to view the data in the Customer table, which
statement should you use?
a. REMOVE User1 FROM Customer
b. REMOVE SELECT ON Customer FROM User1
c. REVOKE User1 FROM Customer
d. REVOKE SELECT ON Customer FROM User1
23. What kind of data structure improves the speed of data retrieval?
a. Index
b. Filter
c. Transaction log
d. Sort

24. Which of the following is a subset of T-SQL that deals with creating database objects
such as tables and stored procedures?
a. DML
b. DDE
c. DDL
d. DAT
25. Which service account should you use if you need to have network access?
a. Guest account
b. Domain user account
c. Local user account
d. Local system account
26. What key is replicated from the primary key of one table to a secondary table, and then
all the key attributes get duplicated from the primary table?
a. Primary key
b. Unique constraint key
c. Second key
d. Foreign key
27. Which statement should use to remove a foreign key?
a. DELETE FOREIGN KEY
b. ALTER TABLE
c. DELETE TABLE
d. ALTER FOREIGN KEY
28. What is the set of rules that determine how data is sorted and compared?
a. Constraint
b. Filter
c. Collation
d. Sort rule
29. What type of field would you make an employee ID?
a. Standard key
b. Secondary key
c. Foreign key
d. Unique constraint key
30. What fixed database role allows you to have full permission to a database?
a. Db_datareader
b. Sa
c. Db_accessadmin
d. Db_owner
31. What command is used to execute a stored procedure?
a. Use
b. Exec
c. Go
d. Start

32. What fixed server role allows you to create, alter, and drop disk files?

a. Bulkadmin
b. Diskadmin
c. Dbcreator
d. Processadmin
33. What fixed server role allows you to create, alter, and drop disk files?
a. Processadmin
b. Dbcreator
c. Diskadmin
d. Bulkadmin
34. What kind of data structure improves the speed of data retrieval?
a. Index
b. Transaction log
c. Sort
d. Filter
35. What is used to grant a user account access to a database?
a. Password
b. Permission
c. Encryption key
d. Right
36. You have the following table definition :
CREATE TABLE Products
(ProductID INTEGER,
Name VARCHAR(20)}
You need to insert a new product. The products name is Plate and the Products ID is
12345. Which statement should you use?
a. INSERT INTO Products (ProductID,Name) VALUES (12345,Plate)
b. INSERT 12345, Plate INTO Products
c. INSERT INTO Products VALUES (ProductID = 12345, Name = Plate)
d. INSERT NEW ProductID = 12345, Name = Plate INTO Products
37. What are previously written SQL statements that have been stored within a database?
a. DDL statements
b. Data statements
c. Stored procedures
d. Views
38. What clause is used to combine related data from multiple table sources?
a. AND
b. COMBINE
c. PLUS
d. JOIN
39. In Which situation do you need to perform a restore on database?
a. When data needs to be deleted from the database
b. When you encounter an error in your application
c. When you need to roll back a transaction
d. When data become corrupted in the database

40. Which clause used with the SELECT command will return values that you want to
exclude from the normal parameters?
a. INTERSECT
b. EXCLUDE
c. EXCEPT
d. SEARCH
41. What common data type you would be used to count objects?
a. Float
b. Double float
c. Integer
d. Money
42. What command would you use to grant object permissions?
a. ALLOW
b. USE
c. RUNAS
d. GRANT
43. Which command should you use to add a column to an existing table?
a. INSERT
b. MODIFY
c. UPDATE
d. ALTER
44. What fixed database role would you use to manage database-level security roles and
permissions?
a. Db_securityadmin
b. Sysadmin
c. Db_accessadmin
d. Db_datareader
45. What is one different between an UPDATE statement and a DELETE Statement?
a. A DELETE Statement can not use WHERE Clause
b. An UPDATE Statement does not remove rows from table
c. A DELETE Statement works only a stored procedure
d. An UPDATE Statement can change only one row
46. What statement is used to delete one or more rows in a table?
a. TRUNCATE
b. REMOVE
c. DELETE
d. CHANGE
47. Which keyword can be used in a CREATE TABLE statement?
a. GROUP BY
b. ORDER BY
c. DISTINCT
d. UNIQUE

48. You execute a statement inside a transaction to delete 100 rows from a table. The
transaction falls after 40 rows are deleted. What is the result in the database?
a. No rows will be deleted from the table
b. The table will be corrupted
c. Forty (40) rows will be deleted from the table
d. The Transaction will restart
49. What would you use to combine columns from two different tables?
a. JOIN
b. COMBINE
c. BETWEEN
d. AND
50. What is a virtual table consisting of different columns from one or more tables?
a. Vlookup
b. Index
c. Vtable
d. View
51. What data type should you use to support Japanese or Arabic text?
a. Varchar
b. Nvarchar
c. Char
d. Unicode
52. What type of index sorts the data stored inside the table?
a. Primary index
b. Non-clustered index
c. Quick index
d. Clustered index
53. Which level of is reached by using primary keys on a table within a SQL Server
database?
a. 3NF
b. 1NF
c. 4NF
d. 2NF
54. What fixed database role would you use to manage database-level security roles and
permissions?
a. Db_securityadmin
b. Db_accessadmin
c. Sysadmin
d. Db_datareader
55. What is the act of establishing or confirming a user or system identity?
a. Logging
b. Authorization
c. Authentication
d. Auditing

56. You are creating a table to store customer data. The AccountNumber column uses values
that always consist of one letter and four digits. What data type that used?
a. BYTE
b. SMALLINT
c. CHAR
d. DOUBLE
57. Which attribute specifies the type of data that an object can hold and specifies how many
bytes it will take up?
a. Specifier
b. Validator
c. Data type
d. Data specific
58. Which keyword must be included in a CREATE VIEW Statement?
a. SELECT
b. UPDATE
c. ORDER BY
d. WHERE
59. What clause would you use with the SELECT command that would pull records based on
a range?
a. COMBO
b. OR
c. COMBINE
d. BETWEEN
60. What clause would you use with the SELECT command that would pull records based on
a range?
a. COMBINE
b. BETWEEN
c. COMBO
d. OR
61. Which naming conversion would capitalize the first character of each word with no
spaces?
a. PascalCase
b. CapCase
c. FirstCase
d. CamelCase
62. Which statement deletes the row where the employers phone number is not entered?
a. DELETE FROM Employee WHERE Phone = NULLABLE
b. DELETE FROM Employee WHERE Phone = $
c. DELETE FROM Employee WHERE Phone IS NOT NULL
d. DELETE FROM Employee WHERE Phone IS NULL
63. Which type of database has multiple tables with parent/child relationships and a child that
can have more than one parent?
a. Flat-file database
b. Hierarchical database
c. Relational database
d. Tabled database

64. You need to insert two new products into the product table. The first product is named
book and has an ID of 125. the second product is named Movie and has an ID of 126.
Which statement should you use?
a. INSERT INTO Product (ID, Name)VALUES (125, Book) INSERT INTO Product
(ID, Name)VALUES (126, Movie)
b. INSERT 125, 126, Book, Movie INTO Product
c. INSERT INTO Product VALUES (ID = 125, 126) (Name = Book, Movie)
d. INSERT NEW ID = 125 AND 126, Name = Book AND Movie INTO Product
65. Your database contains a table names Customer. You need to delete the record from the
Customer table that has a CustomerID of 12345 which statement should you use?
a. UPDATE Customer DELETE * WHERE CustomerID = 12345
b. DELETE CustomerID FROM Customer WHERE CustomerID = 12345
c. UPDATE CustomerID From Customer DELETE * WHERE CustomerID = 12345
d. DELETE FROM Customer WHERE CustomerID = 12345
66. What would you use to combine two parameters in a query in SQL?
a. Both
b. Combine
c. Plus
d. And
67. What is the act of establishing or confirming a user or system identity?
a. Authentication
b. Auditing
c. Authorization
d. Logging
68. What command do you use to perform a query in SQL?
a. Query
b. Chose
c. Use
d. Select
69. Which type of index uses pointers that point to row location?
a. Primary index
b. Clustered index
c. Quick index
d. Nonclustered index
70. What type of data type would you use to store true/false or yes/no answers?
a. Int
b. Float
c. Boolean
d. Char
71. What statement would you use to change data in a table?
a. Update

b. Change
c. Insert
d. Modify
72. What permission would you assign that will remove the permission previously assigned?
a. Revoke
b. Grant
c. Denied
d. Reset
73. Which Command should you give a user permission to read the data in table?
a. Allow Select
b. Grant Select
c. Let Read
d. Permit Read
74. What structures are used when storing keys for a clustered index?
a. Reverse root tree
b. B-tree
c. Alphabetical
d. Root tree
75. Which service account should you use if you need to have network access?
a. Guest account
b. Domain user account
c. Local system account
d. Local user account
76. What permission would you assign that will remove the permission previously assigned?
a. Denied
b. Reset
c. Grant
d. Revoke
77. If you define a primary key, which of the following levels have you reached?
a. 3NF
b. 1NF
c. 4NF
d. 2NF
78. What defines the amount of storage space that is allocated to a value in a column?
a. Validator
b. Format
c. Data type
d. Key

79. What role can you give to a user who gives full access to the SQL server and databases?
a. Root
b. Local
c. System
d. Sysadmin
80. What is a virtual table consisting of different columns from one or more tables?
a. View
b. Vlookup
c. Index
d. Vtable
81. 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. EXEC ProductName = glass
b. LET ProductName = glass
c. SET ProductName = glass
d. ASSIGN ProductName = glass
82. What is used to grant a user account access to a database?
a. Encryption key
b. Right
c. Permission
d. Password
83. What kind of filename extension do Microsoft SQL Server transaction log files have?
a. .log
b. .ndf
c. .mdf
d. .ldf
84. What is a simple database that uses two-dimensional tables consisting of rows and columns?
a. Tabled database
b. Flat type database
c. Relational database
d. Hierarchical database
85. What are three valid data manipulation language (DML) commands?
a. INSERT, COMMIT and OUTPUT
b. OUTPUT, COMMIT and DELETE
c. UPDATE, INSERT and OUTPUT
d. DELETE, INSERT and UPDATE
86. What kind of filename extension do Microsoft SQL Server transaction log files have?
a. .ndf

b. .log
c. .ldf
d. .mdf
87. What role is automatically granted to all users?
a. Sysadmin
b. Root
c. Standard
d. Public
88. Which type of index uses pointers that point to row location?
a. Clustered index
b. Primary index
c. Quick index
d. Nonclustered index
89. What is a collection of programs that enables you to enter, organize, and select data from a
database?
a. Flat program
b. DAT application
c. Spreadsheet group
d. DBMS
90. What role can you give to a user who gives full access to the SQL server and databases?
a. Root
b. Local
c. System
d. Sysadmin
91. Which attribute specifies the type of data that an object can hold and specifies how many
bytes it will take up?
a. Validator
b. Data type
c. Specifier
d. Data specific
92. Which clause used with the SELECT command will return values that you want to exclude
from the normal parameters?
a. Search
b. Except
c. Exclude
d. Intersect
93. Which constraint ensures a unique value in the ID column for each customer?
a. Distinct
b. Sequntial

c. Foreign key
d. Primary key
94. What statement would you use to add data to a table?
a. ADD
b. PRESENT
c. JOIN
d. INSERT
95. What is a type of attack in which malicious code is inserted into strings that are passed to the
SQL server instance?
a. SQL injection
b. SQL force
c. SQL takeover
d. SQL infection
96. Which level eliminates columns not dependent on keys?
a. 1NF
b. 4NF
c. 2NF
d. 3NF
97. Which statement can you use to remove rows from a table?
a. Stop
b. Delete
c. Select
d. Update
98. What type of field would you make an employee ID?
a. Foreign key
b. Standard key
c. Secondary key
d. Unique constraint key
99. One difference between a function and a stored procedure is that a function :
a. Cannot accept parameters
b. Must return a value
c. Cannot contain a transaction
d. Must be called from a trigger
100. You have a table of products with fields for ProductID, and Price. You need to write an
UPDATE statement that sets the value in the IntStock field to Yes for a specific ProductID.
Which clause should you use in your UPDATE statement?
a. Where
b. Having
c. Group by

d. That
101.
a.
b.
c.
d.

What is an attribute or set of attributes that can be used to uniquely identify the row?
Unique constraint key
Primary key
Second key
Foreign key

102. You Assign User1 a set of permission that include the WITH GRANT OPTION.The
WITH GRANT OPTION enables User1 to :
a. Create new database users
b. Request a log of permission use
c. View other users permission
d. Delegate permission to other users
103.
a.
b.
c.
d.

What statement would you use to add data to a table?


Insert
Add
Present
Join

104.
a.
b.
c.
d.

What is the primary means of programing and managing SQL Server?


T-SQL
sqlcmd scripts
DOS commands
XQuery

105. Which of the following is a subset of T-SQL that deals with creating database objects
such as tables and stored procedures?
a. DDE
b. DDL
c. DML
d. DAT
106. Which statement creates composite key?
a. CREATE TABLE Order (OrderID INTEGER PRIMAY KEY, OrderItemID INTEGER
PRIMAY KEY)
b. CREATE TABLE Order (OrderID INTEGER, OrderItemID INTEGER, PRIMARY KEY
OrderID, PRIMARY KEY OrderItemID)
c. CREATE TABLE Order (OrderID INTEGER, OrderItemID INTEGER PRIMARY
KEY(OrdeID, OrderItemID)
d. CREATE TABLE Order (OrderIDINTEGER, OrderItemID INTEGER, PRIMARY KEY)
107. What are previously written SQL statements that have been stored within a database?
a. DDL statements
b. Stored procedures

c. Data statements
d. Views
108. What is a simple database that uses two-dimensional tables consisting of rows and
columns?
a. Relational database
b. Flat type database
c. Tabled database
d. Hierarchical database
109. Which of the following is a language element that allows you to use core statements such
as INSERT, UPDATE, and DELETE to manipulate data in any SQL Server table?
a. DAT
b. DML
c. DDL
d. DDE
110. You are writing a SELECT statement to find every product whose name contains a
specific character. Which keyword should you use in your WHERE clause?
a. LIKE
b. INCLUDES
c. BETWEEN
d. FIND
111. Which type of database has multiple tables with parent/child relationships and a child that
can have more than one parent?
a. Relational database
b. Hierarchical database
c. Tabled database
d. Flat-file database
112.
a.
b.
c.
d.

What is the primary console used to configure databases for Microsoft SQL Server?
SSMS
SQL Configuration Tool
SQL ODBC Emulator
DBS

113.
a.
b.
c.
d.

What would you use to combine columns from two different tables?
AND
COMBINE
JOIN
BETWEEN

114. What type of data type would you use to store true/false or yes/no answers?
a. Boolean
b. Int

c. Float
d. Char
115.
a.
b.
c.
d.

What statement would you use to change data in a table?


CHANGE
MODIFY
UPDATE
INSERT

116. You need to store the first name, last name, and student ID for 100 students.This
information will be store in table as :
a. 100 rows and three columns
b. Three rows and 100 columns
c. 100 item and three cells
d. Three items and 100 cells
117. You have a table named Product that contains one million rows. You need to search for
product information in the Product by using the products unique ID. What will make this
type of search more efficient?
a. A Cursor
b. A Trigger
c. A Subquery
d. An Index
118.
a.
b.
c.
d.

Which type of index changes the order in which the data is stored in a table?
Clustered
Sequential
Non-Clustered
Non-sequential

119.
a.
b.
c.
d.

What statement is used to delete one or more rows in a table?


TRUNCATE
DELETE
CHANGE
REMOVE

120.
a.
b.
c.
d.

What role is automatically granted to all users?


Standard
Sysadmin
Root
Public

121. What type of index has an index key value that points to a data row, which contains the
key value?
a. Quick index
b. Primary index

c. Clustered index
d. Nonclustered index
122.
a.
b.
c.
d.

What would you use to combine two parameters in a query in SQL?


COMBINE
BOTH
AND
PLUS

123.
a.
b.
c.
d.

First normal form requires that a database exclude :


Composite Keys
Repeating Groups
Foreign Keys
Duplicate Rows

124.
a.
b.
c.
d.

Denormalization is performed in order to :


Create smaller table
Eliminate repeating groups
Improve query performance
Reduce redundancy

125. What is a type of attack in which malicious code is inserted into strings that are passed to
the SQL server instance?
a. SQL force
b. SQL injection
c. SQL infection
d. SQL takeover
126.
a.
b.
c.
d.

What keyword used with the SELECT statement is used to not output specified records?
OR
DISALLOW
NOT
DISREGARD

127.
a.
b.
c.
d.

Which two elements are required to define a column?


A name and key
A data type and index
An Index and key
A data type and name

128.
a.
b.
c.
d.

What command do you use to perform a query in SQL?


QUERY
SELECT
CHOSE
USE

129. Which level of is reached by using primary keys on a table within a SQL Server
database?
a. 2NF
b. 4NF
c. 3NF
d. 1NF
130.
a.
b.
c.
d.

What fixed database role allows you to have full permission to a database?
Db_datareader
Db_accessadmin
Sa
Db_owner

131. Which naming conversion would capitalize the first character of each word with no
spaces?
a. CamelCase
b. CapCase
c. PascalCase
d. FirstCase
132.
a.
b.
c.
d.

What data type should you use to support Japanese or Arabic text?
Unicode
Varchar
Nvarchar
Char

133.
a.
b.
c.
d.

What is the primary console used to configure databases for Microsoft SQL Server?
DBS
SSMS
SQL Configuration Tool
SQL ODBC Emulator

134.
a.
b.
c.
d.

What keyword used with the SELECT statement is used to not output specified records?
OR
DISREGARD
DISALLOW
NOT

135. You have a Department table and Employee table in your database.You need to ensure
that an employee can be assigned to only an existing department. What you should you apply
to the Employee table?
a. A data type
b. A Unique constraint
c. An Index
d. A Foreign Key
e. A Primary Key

Anda mungkin juga menyukai