Hi guys , I am a sql server developer . Can anyone help me to solve some of my sql mcq type problems ?I would be really grateful if anyone solves answer .
01 . Which of the following are the main purposes of relational database design?
Select all that apply (answer may be one or multiple ):
A. to maintain data integrity
B. to divide the base data into logical units called tables
C. to avoid redundancy
D. to provide quick query analysis and transparency
E. none of the above
02. Which of the following are special kinds of tables that hold detailed information about other tables, fields, indexes, relationships, and other features of the DBMS?
Select all that apply (answer may be one or multiple ):
A. queries
e. catalog
C. system tables
D. forms
E. schedules
03. The following clauses may be part of an SQL statement.
SELECT Fieldl, Fieid2, and Field3
FROM Table
WHERE Condition
GROUP BY Colunt Identifier
HAVING Condition
ORDER BY Coil tdes/ascfl, Co12 Ldesc/ascl, Cola [deac/ase)
Select all that apply (answer may be one or multiple ):
A. SELECT and REVOKE
B. FROM and WHERE
C. WHERE and GROUP BY
D. GROUP BY and TRANSPORT
E. HAVING and ORDER BY
04. Which of the following statements are true?
Select all that apply (answer may be one or multiple ):
A. The @@Error function can always be substituted for the ERROR NUMBER function.
s. The @@Error function returns the error number only in the next T-SQL statement after the occurrence of the error.
c. The @@Error function refers to an error concerning Database Mail.
D. If it follows a T-SQL statement that executes correctly, the @@Error function returns correct.
E. If it follows a T-SQL statement that executes correctly, the @@Error function returns 0.
05. Having a join over two tables, with these two tabels in separate filegroups decreases the performance of the queries using this joined tables.
A. True
B. False
06. Data that is bulk copied into an instance of SQL Server is appended to every existing contents in a table.
A. True
B. False
07. Data that is bulk copied from an instance of SQL Server to a data file appends to the destination data file
A. True
B. False
08. The right to use DBCC REINDEX is transferable between roles.
A. True
B. False
09. DBCC DBREPAIR represents a new enhancement for the DBCC.
A. True
B. False
10. DBCC REINDEX may be used for all tables in the database.
A. True
B. False
11. Data integrity is a principle that would be only necessary for huge databases so they do not become corrupt.
A. True
B. False
12. With respect to Data integrity, the Entity Integrity means:
Select the best answer (only one):
A. Integrity of the primary key
B. Integrity of all columns
C. Integrity of all indexed columns
D. Avoiding low data-range columns (for example, the range of values for sex woud be just M’ and “r”)
E. Avoiding indexing huge data-range columns (for example, the range of values for social security number woud be quite
wide, indeed)
13. Which is the name of the setting that determines the maximum time a query should wait
before timing out?
Select the best answer(only one) :
A. query wait
B. timeout query
C. query off
D. query timing
E. max timeout
14 .Errors in database processes are signalled by SQL Server by raising a SQL Server error.
Select the code of this error.
Select the best answer (only one):
A. 019
B. 021
C. 022
D. 024
E. 025
15. Which of the following jobs does The Database Maintenance Wizard provide?
Select all that apply (answer may be one or multiple ):
A. Checks database integrity
B. Restores backups
C. Updates database statistics
D. Performs database backups
E. Synchornizes database replicas
16. Select the permissions an operator should have to bulk copy data from a data file into a table:
Select all that apply (answer may be one or multiple ):
A. INSERT
B. UPDATE
C. SELECT
D. DELETE
E. No permissions are necessary
17. Select the permissions an operator should have to bulk copy data from a table or view to a data file:
Select all that apply (answer may be one or multiple ):
A. INSERT
B. UPDATE
C. SELECT
D. DELETE
E. No permissions are necessary
18. Which of the following DBCC commands will improve (database) index management performance?
Select all that apply (answer may be one or multiple ):
A. DBREPAIR
8. DBREINDEX
C. CHECKALLOC
D. CHECKDB
E. INDEXDEFRAG
19. Which is the difference between the DBCC REINDZX and DBCC INDEXDEFRAG?
Select all that apply (answer may be one or multiple ):
A. INDEXOEFRAG is an online method and has no impact on running applications.
B. Unlike OBREINDEX, INDEXOEFRAG is allowed for system tables.
C. Unlike DBREINDEX, INDEXDEFRAG rebuilds the indexes and defragments them.
D. INDEXDEFPAG actions are logged.
E. Unlike INDEXDEFRAG, REINDEX rebuilds the indexes.
20. Which of the following tables are directly linked to the Order table in the cade below,taking into consideration that relations are defined based on common column names?
Shipment:
Ship_ID
Ship_To
Shtp_Mdren
Carrier
Order:
Order D
Order_Date
Authorized_Ny
Order_Destination
Ship_fl)
Item:
Item_Nimber
Quantity
Order_ID
Lot:
Lot_Nimber
Quantity
Item_Nimber
Order_ID
Item Detail:
Item_Nimber
Packing_Code
Hazardous_Indicator
Refrigerated
Indicator
Item_Description
Product_Group
Crew:
Naze
Id_person
Order_Date
Ship_ID
Select all that apply (answer may be one or multiple ):
A. Shipment
B. Item
C. Lot
D. Item Detail
E. Crew