Machine-translated by Google. Questions are authored in English.
Top

SQL Server 2000 Questions and Answers

11.

With this type of SQL Server cursor concurrency no lock is obtained until the user updates the data.

Answer: C

Correct answer: OPTIMISTIC

Optimistic concurrency takes no lock while the row is read and merely checks at update time whether the row has changed since. If it has, the update fails and the application must decide what to do. It assumes conflict is rare, which is what makes it faster than holding a lock through the whole read.

Please log in or register to report this question.

12.

An SQL Server 2000 language that adds programming elements like parameters, variables, IF, WHILE loops, and so forth, to the basic capabilities of SQL is called:

Answer: C

Correct answer: TRANSACT SQL.

Transact-SQL adds procedural constructs - variables, parameters, conditionals, loops, error handling - to standard SQL, so that logic can be written and executed inside the database. It is what stored procedures, triggers and functions are written in, and it is the SQL Server counterpart of Oracle’s PL/SQL.

Please log in or register to report this question.

13.

With this type of index, the data are stored in the bottom level of the index and in the same order as that index.

Answer: B

Correct answer: Clustered

A clustered index stores the data rows themselves at its leaf level and in index order, so the index is the table. There can be only one per table for that reason, and choosing which column carries it is a significant design decision, since range queries on that column then need no further lookup.

Please log in or register to report this question.

14.

In SQL Server 2000, which of the following makes a copy of the changes that have been made to the database since the last complete backup?

Answer: C

Correct answer: Differential backup

A differential backup copies everything that has changed since the last full backup, so restoring needs the full backup and the most recent differential only. It is quicker than a full backup and simpler to restore than a long chain of transaction log backups, at the price of growing steadily until the next full backup resets it.

Please log in or register to report this question.

15.

With this type of index, the bottom level of an index does not contain data, but rather it contains pointers to data

Answer: A

Correct answer: Nonclustered

A nonclustered index holds only the key values and pointers to the rows, which live elsewhere in whatever order the clustered index or the heap imposes. A table may have many of them, and each costs storage and maintenance on every write, so they are added where a query needs one rather than as a matter of course.

Please log in or register to report this question.

16.

With which type of SQL Server recovery model are all database changes logged?

Answer: B

Correct answer: Full recovery

Under the full model every change is logged and the log is retained until backed up, so the database can be restored to any point in time and no committed transaction need be lost. It is the model for anything where the day’s work matters, and it obliges the administrator to back the log up regularly or it will grow without bound.

Please log in or register to report this question.

Answer: C

Correct answer: both primary and foreign keys.

SQL Server creates a unique index on the primary key automatically, since it must enforce uniqueness, and it indexes foreign keys as well. Both are worth having: the primary key index enforces entity integrity, and the foreign key index makes the joins and the referential integrity checks efficient.

Please log in or register to report this question.

18.

Which of the following is not a factor in determining the concurrency control behavior of SQL Server?

Answer: A

Correct answer: Lock level

Concurrency behaviour in SQL Server is determined by the transaction isolation level, the cursor concurrency setting and any locking hints supplied in the statement. Lock level, meaning granularity, is chosen by the DBMS itself according to the work being done, and is not something the developer sets as one of these three controls.

Please log in or register to report this question.

19.

SQL Server program code that is executed after an SQL command has been processed is called a(n):

Answer: C

Correct answer: AFTER trigger.

An AFTER trigger fires once the statement has completed and the constraints have been checked, so it sees the result and can act on it or roll it back. It is the ordinary kind, used for auditing, for maintaining derived data and for enforcing rules too complex for a constraint.

Please log in or register to report this question.

20.

Which of the following refers to the SQL Server transaction isolation level which places and holds locks on all rows that are read?

Answer: A

Correct answer: REPEATABLE READ

Repeatable read holds shared locks on every row it reads until the transaction ends, so no other transaction can change a row that has been read and a second read gives the same values. It does not lock ranges, so a row inserted into the range can still appear - the phantom that serializable prevents.

Please log in or register to report this question.

Loading…
Tags: SQL Server 2000 Questions and Answers || SQL Server 2000 MCQ Questions and Answers || SQL Server 2000 GK Questions and Answers || SQL Server 2000 GK MCQ Questions || SQL Server 2000 Multiple Choice Questions and Answers || SQL Server 2000 GK || GK on SQL Server 2000 || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database