Sunteți pe pagina 1din 3

1.

Data rows of an Indexed view are stored in the _______ levels page of the clustered
index.
• Child
• Leaf
• Nood
• Root

2. An trigger _____ is excuted when a new record is interested in a table.


• After
• Delete
• Insert
• Update

3. The purpose of a _____ column is uniquely indentify each record within a table.
• Primary Key
• Foreign Key
• Unique Key
• Default Key

4. Which of the following node contains data or index pages that point to data pages?
• Root Node
• Intermediate Nodes
• Leaf Nodes
• Branch Nodes

5. Once a ______ clustered index is created on a view, multiple _____ indexes also can
be created on it.
• Unique, Non-Clustered
• Unique, Regular
• Non-Clustered, Unique
• Non-Clustered, Regular

6. Which of the following code creates a view named Passenger_Details with the
SCHEMABIDING option?
• Create view Passenger_Details As Select SeatNo,PassengerName…
• Create view Passenger_Details with Schemabiding As…
• Create view Passenger_Details As Schemabiding…
• Create view Passenger_Details Schemabiding As…

7. View definitions can be modified using the ____ statement while view data can be
modified using the ___ statement.
• Alter View, Alter
• Alter, Alter View
• Alter View, Update
• Update, Alter View

8. Stored procedures that run on remote SQL Server are known as___ strored
procedures while___ are created in individual user databases.
• Extended, Temporary
• Temporary, Extended
• Local, Remote
• Remote, Local
9. Which of the following statements about DML triggers trigger order are correct?
• Multiple UPDATE triggers can be created for each triggering action on a table
• Only one INSTEAD OF trigger can be created for each triggering action on a table
• A triggering action can have multiple AFTER triggers with the same name
• The sp_settriggerorder stored procedure can be used to define DML AFTER trigger
order

10. Which of the following code creates a computed column Area whose values are
calculated from the values entered in the Length and Breadth fields?
• CREATE TABLE Calc_Area ( Length int, Breadth int, Area AS Length*Breadth)
• CREATE TABLE Calc_Area ( Length int, Breadth int) Area AS Length*Breadth)
• CREATE TABLE Calc_Area WITH Length int, Breadth int( Area AS Length*Breadth)
• CREATE TABLE Calc_Area Length int, Breadth int, Length*Breadth

11. Which of the following code creates an index, IX_City on the City column of the
Employee_Details table with FILLFACTOR values set to 70?
• CREATE INDEX IX_City ON Employee_Details(City) FILLFACTOR = 60
• CREATE INDEX IX_City ON Employee_Details(City) WITH (FILLFACTOR = 60)
• CREATE INDEX IX_City ON City WITH Employee_Details (FILLFACTOR = 60)
• CREATE INDEX IX_City ON City WITH FILLFACTOR = 60

12. Unique Index can be created using either the ___ statement or using___.
• CREATE UNIQUE INDEX, SQL Server Management Studio
• ALTER UNIQUE INDEX, CREATE UNIQUE INDEX
• ALTER UNIQUE INDEX, SQL Server Management Studio
• CREATE INDEX UNIQUE, SQL Server Management Studio

13. Which of the following statements about the different categories of system stored
procedures are correct?
• Catalog stored procedures are used to access information from the system catalog
• Cursor procedures are used to implement the functionality of the cursor
• Databases Mail stored procedures are used in the managerment of distributed
queries via mail
• Security stored procedures are used to manage the security of the database

14. Which of the following statements about triggers are correct?


• A trigger executes when an attempt is made to modify data in the table propertied by
it
• DML triggers execute when data is modified using the INSERT, UPADTE, or DELETE
statements
• DLL triggers execute when data is modified using the CREATE, ALTER, or DROP
statements
• Logon trigger execute stored procedures when a session is estapblished with a
LOGIN event

15. Which of the following statements about an DDL and DML triggers are correct?
• DDL trigger execute on INSERT, UPDATE, and DELETE statements while DML on
CREATE, ALTER, and DROP statements
• DDL triggers are used to check and control database operation while DML triggers
are used enforce business rules
• DDL triggers operate only after the table or viewis modify while DML triggers execute
either during or after modification
• DDL triggers are defined either at the databse or the server level while DML triggers
are defined at the database level

16. Which of the following statements about the different types of triggers are correct?

• The INSERT trigger ensures that the values being entered confroms to the costraints
define on that table
• The UPDATE trigger copies the original record in the Deleted table and the new
record in the Inserted table
• The DELETE trigger help the user to delete a particular record in a tableor entires
table themselves
• An AFTER trigger is execute when the contraint check in the table is completed

17. Which of the following code illustrates the procedure to begin the dialog
conversation in SQL Service Broker?
• BEGIN DIALOG CONVERSATION FROM SERVICE service1 TO SERVICE ‘service2’…
• BEGIN DIALOG CONVERSATION @dialog_handle TO SERVICE ‘service2’ ON
CONTRACT sendcontract…
• BEGIN DIALOG CONVERSATION SERVICE service1 ON CONTRACT sendcontract…
• BEGIN DIALOG CONVERSATION @dialog_handle FROM SERVICE service1 TO SERVICE
‘service2’…

18. Stored procedures return information to the calling procedure using the ___
keyword.
• @@ERROR
• @@ERROR_LINE
• OUTPUT
• RETURN

19. Which of the following code display all the information about the indexes created
on the Customer_Details table?
• sp_helpindex’Customer_Details’
• EXEC sp_helpindex’Customer_Details’
• EXEC sp_help_index Customer_Details
• Sp_helpindex ‘Customer_Details’

20. Which of the following is not a valid rule while maintaining data integrity?
• No two records in a table can have exactly same values in all columns
• Any type of data can be inserted
• Data validity has to be maintained when data is modified
• Change to data values in a column should be appropriately refected in related table

S-ar putea să vă placă și