Explore topic-wise MCQs in Database.

This section includes 30 Mcqs, each offering curated multiple-choice questions to sharpen your Database knowledge and support exam preparation. Choose a topic below to get started.

1.

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

A. Lock level
B. Transaction isolation level
C. Cursor concurrency setting
D. Locking hints
Answer» B. Transaction isolation level
2.

Nonclustered indexes are faster than clustered indexes for retrieval.%!

A. True
B. False
Answer» C.
3.

By default, SQL Server will create one data file and one log file for each newly created database.%!

A. True
B. False
Answer» B. False
4.

With SQL Server pessimistic locking, no lock is obtained until the user updates the data.%!

A. True
B. False
Answer» C.
5.

With SQL Server, parameters and variables in T-SQL start with the "%" sign.%!

A. True
B. False
Answer» C.
6.

With SQL Server optimistic locking, an update lock is placed on the row when the row is read.%!

A. True
B. False
Answer» C.
7.

SERIALIZABLE is the strictest isolation level.%!

A. True
B. False
Answer» B. False
8.

An SQL Server reserved word must be placed in brackets. If the word is not in brackets, SQL Server will try to interpret it as the name of one of its special words.%!

A. True
B. False
Answer» B. False
9.

'dbo' stands for database object.%!

A. True
B. False
Answer» C.
10.

SQL Server supports three recovery modes: simple, full and Bulk.%!

A. True
B. False
Answer» B. False
11.

SQL Server automatically creates an index on all primary and foreign keys.%!

A. True
B. False
Answer» B. False
12.

SQL Server AFTER Triggers may be assigned views.%!

A. True
B. False
Answer» C.
13.

A differential backup makes a copy of the entire database.%!

A. True
B. False
Answer» C.
14.

There is only one way to create and modify tables in SQL Server. Write SQL code using either the CREATE or ALTER statements.%!

A. True
B. False
Answer» C.
15.

Better security occurs if Windows-only authentication is selected.%!

A. True
B. False
Answer» B. False
16.

READ COMMITTED is the default isolation level.%!

A. True
B. False
Answer» B. False
17.

*$_SQL Server program code that is executed instead of an SQL command that needs to be processed is called a(n):?

A. INSTEAD OF trigger
B. BEFORE trigger
C. AFTER trigger
D. BEGIN trigger
Answer» B. BEFORE trigger
18.

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

A. REPEATABLE READ
B. SERIALIZABLE
C. READ COMMITTED
D. READ UNCOMMITTED
Answer» B. SERIALIZABLE
19.

*/*_With this type of index, the bottom level of an index does not contain data, but rather it contains pointers to data.?

A. Nonclustered
B. Clustered
C. Primary
D. Secondary
Answer» B. Clustered
20.

*/*_SQL Server 2000 stored procedures can:?

A. never be kept within the database
B. be kept within the database and invoked by application programs
C. be stored on the users' computer
D. support BEFORE, INSTEAD OF and AFTER types
Answer» C. be stored on the users' computer
21.

_ The strictest transaction isolation level provided by SQL Server is called:$?

A. REPEATABLE READ
B. SERIALIZABLE
C. READ COMMITTED
D. READ UNCOMMITTED
Answer» C. READ COMMITTED
22.

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

A. INSTEAD OF trigger
B. BEFORE trigger
C. AFTER trigger
D. BEGIN trigger
Answer» D. BEGIN trigger
23.

_ 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?$?

A. Complete backup
B. Transaction Log
C. Differential backup
D. None of the above is correct
Answer» D. None of the above is correct
24.

_ With which type of SQL Server recovery model, is no logging done?$?

A. Differential recovery
B. Full recovery
C. Bulk-logged recovery
D. Simple recovery
Answer» E.
25.

_What mode of authentication does SQL Server NOT provide?$?

A. Windows-only security
B. Both SQL Server and Windows-only security
C. Mixed security
D. SQL Server only security
Answer» E.
26.

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

A. Lock level
B. Transaction isolation level
C. Cursor concurrency setting
D. Locking hints
Answer» B. Transaction isolation level
27.

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

A. Nonclustered
B. Clustered
C. Primary
D. Secondary
Answer» C. Primary
28.

_Which of the following is a way to create and modify tables using SQL Server?$?

A. Write SQL code using either CREATE or ALTER SQL statements only
B. Use the graphical facilities of SQL Server Enterprise Manager only
C. Both of the two methods above will work
D. Neither of the two methods above will work
Answer» D. Neither of the two methods above will work
29.

Using SQL Server 2000, which of the following symbols is used to indicate parameters in stored procedures?$?

A. #
B. %
C. &
D. @
Answer» E.
30.

Using SQL Server 2000, which of the following symbols is used to indicate parameters in stored procedures??

A. #
B. %
C. &
D. @
Answer» E.