Sei sulla pagina 1di 9

Placement papers on SQL Server - Set 1

1. The identifers in SQL can have a character range from?

1 to 100
1 to 128
1 to 64
1 to 132

ANSWER: 1 to 128

2. Embedded spaces or special characters are not allowed in SQL server identifiers

True
False

ANSWER: True

3. ______________ helps to restore the database to the point where it failed.

File backup
Differential Backups
File log
Transaction log

ANSWER: Transaction log

4. Which of the following statements is/are false for Declarative Management


Framework (DMF) in sql server 2008?

System for managing the instances of SQL Server 2008


SQL Server does not enforce to define the policies by using Management Studio
Both b and d
A policy can be designed for allowing the usage of unauthorized applications

ANSWER: Both b and d

5. Dynamic Page Repair is a type of database mirroring.


False
True

ANSWER: False

6. Which of the following statement is used to make sql server resize the database file
to its smallest possible size?

DBCC SHRINKFILE
DBCC SHRINKDB
DBCC SQLPERF SHRINKDB

ANSWER: DBCC SHRINKFILE

7. Difference between UNION and UNION ALL.

Both are similar


UNION ALL is no longer supported in sql server 2000 onward
UNION returns only unique records from both tables. UNION ALL returns all records
from both tables

ANSWER: UNION returns only unique records from both tables. UNION ALL returns
all records from both tables

8. Which statement is correct from partitioned view?


We cannot create an indexed view on a partitioned view
We can create an indexed view on a partitioned view as long as the index is clustered
We can create an indexed view on a partitioned view

ANSWER: We can create an indexed view on a partitioned view

Placement papers on SQL Server - Set 2

1. Which utilities can we used to export data from sql server to a text file?

a. DTS export wizard


b. BCP
c. ISQL
a and b

ANSWER: a and b

2. How inserting data through stored procedure do reduces network traffic and
increase database performance?

Stored procedure can accept parameter


Permission check is not required
The execution plan is stored in the cache after it was executed the first time.

ANSWER: The execution plan is stored in the cache after it was executed the first
time.

3. What is the default "SORT" order for a SQL?

Ascending
Descending
ANSWER: Ascending

4. Which of the following is not correct for DELETE and TRUNCATE?

DELETE table can be rolled back


TRUNCATE table cannot have triggers
TRUNCATE table can have criteria
DELETE table can have criteria

ANSWER: TRUNCATE table can have criteria

5. Choose the incorrect option about the sql server index

Two types of indexes - clustered indexes and non-clustered indexes


Both types use B-TREE for searching data
Only one clustered index on a table
More than one clustered index on a table

ANSWER: More than one clustered index on a table

6. By default "FILLFACTOR" value is

Zero
One
Two
Five

ANSWER: Zero

7. The SQL Query Analyzer is the main interface for running SQL queries against your
database

True
False

ANSWER: True

8. Which of the below is the correct syntax for a VIEW?

Both b and d below


CREATE VIEW ViewName AS INSERT ...
CREATE VIEW ViewName AS UPDATE ...
CREATE VIEW ViewName AS SELECT ...

ANSWER: CREATE VIEW ViewName AS SELECT ...

Placement papers on SQL Server - Set 3

1. Which of the following commands below are used to run a stored procedure?

EXEC MyStoredProcedure
EXECUTE MyStoredProcedure
RUN MyStoredProcedure
Both a and b above

ANSWER: Both a and b above

2. Which of the following below are capabilities of SQL Server Integration Services
(SSIS)?

integrate smoothly with other applications and data sources.


copy or download files
ALL
send e-mail messages in response to events

ANSWER: ALL
3. Which of the follwing statements is/are not true for SQL profiler?

enables you to monitor events


check if rows are being inserted properly
check the performance of a stored procedure
ALL

ANSWER: check the performance of a stored procedure

4. ______________ Allows you to provide the full path to a template.

Trace file name


Trace file path
Template name
Trace name

ANSWER: Trace file name

5. Which of the following below are Compound Operators in sql server 2008

+=
%=
*=
all of above

ANSWER: all of above

6. Which statement is correct from partitioned view?

We cannot create an indexed view on a partitioned view


We can create an indexed view on a partitioned view as long as the index is clustered
We can create an indexed view on a partitioned view
ANSWER: We can create an indexed view on a partitioned view

7. Which of the following connection type supports application role permissions and
password encryption?

OLE DB
DBLib
ODBC
OLE DB and ODBC

ANSWER: OLE DB and ODBC

8. Which of the following DBCC command is used to see when was the last time the
index rebuild?

DBCC SHOW_STATISTICS
DBCC SHOWCONFIG
DBCC DBREINDEX

ANSWER: DBCC SHOW_STATISTICS

Placement papers on SQL Server - Set 4

1. Default is a type of constraint although it does not really enforce anything

Yes
No

ANSWER: Yes

2. Which one of the following can not have error-handling (e.g. RAISERROR)?
User-Defined Functions
Stored Procedures
Trigger

ANSWER: User-Defined Functions

3. ___________________repeatedly sent from the client each time they run are
compiled and optimized every time they are executed by SQL Server.

Transact-SQL statements
Stored Procedures

ANSWER: Transact-SQL statements

4. When SET SHOWPLAN_ALL is ON, SQL Server returns execution information for
each statement without executing it.

True
False

ANSWER: True

5. Which statement should you execute when you do not want to rollback your data?

Delete
Truncate

ANSWER: Truncate

6. Which of the following is the default isolation level in SQL Server?


Read Committed
Read Uncommitted
Repeatable Read
Serializable

ANSWER: Read Committed

7. Which of the following prevent "Dirty Reads"?

Read commited
Read Uncommitted
Repeatable Read
Serializable

ANSWER: Repeatable Read

8. Which join combines all rows from both tables?

Inner Join
Left Outer Join
Right Outer Join
Cross Join

ANSWER: Cross Join

Potrebbero piacerti anche