0% found this document useful (0 votes)
9 views

SQL Server Quiz Questions And Answers _ Attempts_ 7883 - Trivia & Questions

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

SQL Server Quiz Questions And Answers _ Attempts_ 7883 - Trivia & Questions

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

Advertisement
Advertisement
Not interested
in this ad

Seen this ad
Quiz Maker (/quiz-school/) › Create
multiple times Quiz (/quiz-school/create-a-quiz/) › Online Quizzes (/quiz-school/browse) › Computer
(/quiz-school/topic/computer) › Database (/quiz-school/topic/database) › SQL Server (/quiz-school/topic/sql-server)

SQL Server Quiz Questions And Answers


Ad covered
content

2/3 BHK Flats in Tambaram


Ad was
Reviewed by Samy Boulos, MSc (Computer Science)
inappropriate
Approved
Ruby Builders & Edited byLearn
& Promoters ProProfs
MoreEditorial Team | By Telliant
Questions: 25 | Attempts: 7,883

Related Quizzes
All questions
Questions Difficulty Level Settings
Ssdo Quiz For
Aptech (SQL Server
2005) Start
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=ssdo-quiz-
title=ssdo-quiz-aptech) aptech)

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

Have you ever worked on an SQL server? What do you know about this
database system? We have here this "SQL server quiz questions and
answers" for you. Microsoft SQL Server is a DBMS developed by Microsoft
for storing and retrieving data. In this SQL quiz, we will test your
knowledge and understanding of various SQL concepts and
terminologies. You can easily crack this quiz if you consider yourself a
true database administrator. Want to check your memory for the same?
Take this test, then!

Questions and Answers

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 1/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

1. Assuming UserProfile
Advertisement
is a table containing a column Proession that
accepts a NULL value. What is the result of the query below? SET
ANSI_NULLS OFF SELECT Profession FROM UserProfile WHERE
(Profession <> NULL).

A. Gives an error.

B. Returns all Professions that do not have null values.

C. <> is not an operator in SQL Server.

D. None of the above.


Related Quizzes

Correct Answer Ssdo Quiz For


Aptech (SQL Server
B. Returns all Professions that do not have null values.
2005)
(https://www.propro
Explanation fs.com/quiz-
The correct answer
(https://www.proprofs.co
is "Returns all Professions which do not have null values." This is
school/story.php?
because the query istitle=ssdo-quiz-
m/quiz-school/story.php? using the operator, which is the "not equal to" operator in SQL.
title=ssdo-quiz-aptech) aptech)
When comparing a value to NULL using this operator, the result will be either true or
false, but not NULL. Therefore, the query will return all rows where the Profession
column is not NULL.
SQL Server 2008
Rate this question: 2 70-4480Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 2/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

2. What is theAdvertisement
result of the below query: SELECT SUBSTRING('DOTNET', 1,
3) AS 'Substring'

A. DOT

B. OTN

C. OT

D. None of the above.

Correct
RelatedAnswer
Quizzes
A. DOT
Ssdo Quiz For
Explanation Aptech (SQL Server
The result of the given 2005)
query is "DOT". The SUBSTRING function is used to extract a
(https://www.propro
substring from a given string. In this case, the string "DOTNET" is being passed as the
fs.com/quiz-
first argument, and the second and third arguments specify the starting position and
school/story.php?
(https://www.proprofs.co
length of the substring
m/quiz-school/story.php? to be extracted. Since the starting position is 1 and the length
title=ssdo-quiz-
istitle=ssdo-quiz-aptech)
3, the substring "DOT" is returned as the result.
aptech)

Rate this question: 4 0

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 3/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

3. Which of the following is true about the SERIALIZABLE isolation level ?


Advertisement

A. It protects against phantom reads.

B. It causes the highest level of contention.

C. It causes the highest level of blocking.

D. All of the above.

Correct Answer
D. All of the
Related above.
Quizzes

Explanation Ssdo Quiz For


The correct answer is "All of(SQL
Aptech the Server
above." The SERIALIZABLE isolation level in database
2005)
transactions protects against phantom reads, which occur when a transaction reads
rows that do not exist (https://www.propro
yet due to concurrent modifications. Additionally, this isolation
fs.com/quiz-
level causes the highest level of contention, as it locks the entire table for the duration
(https://www.proprofs.co school/story.php?
of the transaction, preventing
m/quiz-school/story.php?
other transactions from accessing it concurrently. It also
title=ssdo-quiz-
causes the highest level
title=ssdo-quiz-aptech) of blocking, as transactions may have to wait for locks to be
aptech)
released before proceeding. Therefore, all the statements provided are true for the
SERIALIZABLE isolation level.
SQL Server 2008
Rate this question: 1 0
70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 4/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

4. What is theAdvertisement
result of the below query: SELECT PATINDEX('DOT%',
'DOTNET') AS 'Index'

A. 0

B. 1

C. -1

D. 2

Correct
RelatedAnswer
Quizzes
B. 1
Ssdo Quiz For
Explanation Aptech (SQL Server
The PATINDEX function 2005)in SQL Server is used to find the starting position of a
(https://www.propro
specified pattern (in this case, 'DOT%') within a given string ('DOTNET'). In this
fs.com/quiz-
example, 'DOT%' matches the beginning of 'DOTNET,' so the function returns 1, which
school/story.php?
(https://www.proprofs.co
ism/quiz-school/story.php?
the position wheretitle=ssdo-quiz-
the pattern 'DOT%' starts within the string 'DOTNET.'
title=ssdo-quiz-aptech) aptech)
Rate this question: 6 9

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 5/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

5. Assuming Emp, EmpCompress 2 tables with the same schema:


Advertisement
EmpId(Int), Name(varchar(50)), DeptId(Int). If a company wants to
move all rows for Employees working in the IT Department from the
Employees table to the Employees Archive table. Which of the
following queries can be used?

A. DELETE FROM EMP OUTPUT deleted.* INTO EmpCompress FROM


Emp JOIN deptON EMP.DeptId = Dept.DeptId WHERE DeptName='IT';

B. DELETE FROM EMP OUTPUT deleted.* INTO EmpCompress FROM


Emp JOIN Dept ON EMP.DeptId = Dept.DeptId ;

C. Quizzes
Related DELETE FROM EMP OUT PUT deleted.* INTO EmpCompress FROM
Emp JOIN deptON EMP.DeptId = Dept.DeptId WHERE DeptName='IT';
Ssdo Quiz For
Aptech (SQL Server
D. None of the 2005)
above.
(https://www.propro
fs.com/quiz-
Correct Answer
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php?
B. DELETE FROM EMP title=ssdo-quiz-
OUTPUT deleted.* INTO EmpCompress FROM Emp JOIN Dept
title=ssdo-quiz-aptech) aptech)
ON EMP.DeptId = Dept.DeptId ;

Explanation
SQL Server
The correct query deletes rows2008
from the "Emp" table where the department is IT and
70-448 Dump2
inserts the deleted rows into the "EmpCompress" table. It utilizes the OUTPUT clause
(https://www.propro
to capture the deleted rows and the JOIN clause to match records based on the
fs.com/quiz-
department ID. school/story.php?
(https://www.proprofs.co
m/quiz-school/story.php? title=70448-dump2)
Rate this question:
title=70448-dump2) 2 0

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 6/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

6. The SELECT statement must include which of the following clause:


Advertisement

A. SELECT clause

B. FROM clause

C. Both A and B.

D. None of the above.

Correct Answer
D. None ofQuizzes
Related the above.

Explanation Ssdo Quiz For


The statement 'SELECT 2 5 (SQL
Aptech return;' is invalid in SQL. A valid SELECT statement
Server
2005)
requires at least one column name or expression following the SELECT keyword, and if
retrieving data from a (https://www.propro
table, the table must be specified in the FROM clause. The
fs.com/quiz-
provided statement lacks the necessary syntax elements for a valid SQL SELECT
(https://www.proprofs.co school/story.php?
query.
m/quiz-school/story.php? title=ssdo-quiz-
title=ssdo-quiz-aptech) aptech)
Rate this question: 2 0

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 7/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

7. Which of the following is true?


Advertisement

A. BUILT-IN functions in SQL Server are Nondeterministic.

B. ISNULL function in SQL Server is Deterministic.

C. All of the above.

D. None of the above.

Correct Answer
C. All of the
Related above.
Quizzes

Explanation Ssdo Quiz For


All of the above is the correct
Aptech answer
(SQL Serverbecause both statements are true. BUILT-IN
2005)
functions in SQL Server are indeed Nondeterministic, meaning that their output can
vary for the same input. (https://www.propro
On the other hand, the ISNULL function in SQL Server is
fs.com/quiz-
Deterministic, meaning that its output is always the same for a given input. Therefore,
(https://www.proprofs.co school/story.php?
both statements are title=ssdo-quiz-
m/quiz-school/story.php?
correct and the correct answer is "All of the above."
title=ssdo-quiz-aptech) aptech)
Rate this question: 0 1

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 8/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

8. Which of the following is true?


Advertisement

A. NULL values are ignored for all the aggregate functions.

B. NULL values are included for all the aggregate functions.

C. When an aggregate function is included in the SELECT clause, all


other expressions in the SELECT clause must either be aggregate
functions or included in a GROUP BY clause.

D. Both A and C.

Related Quizzes
E. Both B and C.
Ssdo Quiz For
Aptech (SQL Server
Correct Answer 2005)
D. Both A and C. (https://www.propro
fs.com/quiz-
school/story.php?
Explanation
(https://www.proprofs.co
m/quiz-school/story.php? title=ssdo-quiz-
Both A and C are true.
title=ssdo-quiz-aptech) A) NULL values are ignored for all the aggregate functions,
aptech)
meaning that if there are any NULL values in the data being aggregated, they will not
be included in the calculation of the aggregate function. C) When an aggregate
function is included in the SELECT clause, all other expressions in the SELECT clause
SQL Server 2008
must either be aggregate
70-448functions
Dump2 or included in a GROUP BY clause. This is because
the aggregate function is operating on a group of rows and the other expressions
(https://www.propro
need to be either partfs.com/quiz-
of that group or also aggregated.
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php?
Rate this question: title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 9/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

9. Assuming UserProfile
Advertisement
is a table with PKUserId int, Profession
Varchar(50)columns. What is the result of the below query: SELECT
PKUserId,Profession FROM UserProfile WHERE Profession = 'Engineer'
AND (PKUserId > 12 OR PKUserId = 1)

A. Displays Users with Profession as 'engineer' with PKUserId > 12 as


well as the users with PKUserId of 1.

B. Displays Users with Profession as 'engineer' with PKUserId > 12 only.

C. Displays Users with Profession as 'engineer' with PKUserId of 1 only.

Related Quizzes
D. None of the above.
Ssdo Quiz For
Aptech (SQL Server
Correct Answer 2005)
A. Displays Users with Profession as 'engineer' with PKUserId > 12 as well as the users
(https://www.propro
with PKUserId of 1. fs.com/quiz-
(https://www.proprofs.co school/story.php?
Explanation
m/quiz-school/story.php? title=ssdo-quiz-
title=ssdo-quiz-aptech) aptech)
The query selects rows from the UserProfile table where the Profession column is
'Engineer' and the PKUserId is either greater than 12 or equal to 1. Therefore, the result
of the query will display users with the Profession as 'engineer' and the PKUserId
greater than 12, as well
SQLas the user
Server 2008 with a PKUserId of 1.
70-448 Dump2
Rate this question: (https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 10/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

10. BEGIN TRANSACTION


Advertisement
INSERT INTO DemoTable
VALUES(5,'XYZ','DEMO'); BEGIN TRANSACTION UPDATE DemoTable
SET Col3 = 'Test' WHERE TestID = 5; COMMIT TRANSACTION;
ROLLBACK; What is the result of the above code execution?

A. The data is rolled back to the transaction starting on line1.

B. The inserted row does not exist in the table.

C. All of the above.

D. None of the above.


Related Quizzes

Ssdo Quiz For


E. Only B. Aptech (SQL Server
2005)
(https://www.propro
Correct Answer fs.com/quiz-
C. All of the above.
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=ssdo-quiz-
Explanation
title=ssdo-quiz-aptech) aptech)
The correct answer is "All of the above." This is because the code begins a transaction
on line 1, inserts a row into the DemoTable on line 2, begins another transaction on
line 3, updates the Col3
SQLvalue
Serverfor the row with TestID = 5 on line 4, commits the
2008
transaction on line 5,70-448
and then rolls back the transaction on line 6. As a result, the data
Dump2
(https://www.propro
is rolled back to the transaction starting on line 1, meaning that the inserted row does
not exist in the table.fs.com/quiz-
Therefore, all of the statements in the answer options are true.
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php?
Rate this question: 1 title=70448-dump2)
1
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 11/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

11. AssumingAdvertisement
Emp table with EmpId(int),
Name(varchar(100)),HireDate(DateTime),Designation(varchar(20))
columns and Audit table with currentDate(DateTime), EmpId columns.
What is the result of the following query: INSERT INTO
Emp(Name,HireDate,Designation) OUTPUT getdate(), inserted.EmpId
INTO Audit VALUES ('Robot','1/1/2011','Executive');

A. Only inserts a new record into the Emp table.

B. OUTPUT clause cannot be used in the INSERT command.

C. Adds a new row to the Emp table, and also adds a corresponding row
with the current date and time and the EmpId for the new employee
Related Quizzes
into the Audit table.
Ssdo Quiz For
Aptech (SQL Server
D. None of the 2005)
above.
(https://www.propro
fs.com/quiz-
Correct Answer
(https://www.proprofs.co school/story.php?
C. Adds a new row totitle=ssdo-quiz-
m/quiz-school/story.php?
title=ssdo-quiz-aptech) the Emp table, and also adds a corresponding row with the
aptech)
current date and time and the EmpId for the new employee into the Audit table.

Explanation
The given query will insertSQL Server
a new2008
row into the Emp table with the values 'Robot',
70-448 Dump2
'1/1/2011', and 'Executive' for the Name, HireDate, and Designation columns
(https://www.propro
respectively. Additionally, it will also add a corresponding row into the Audit table with
fs.com/quiz-
the current date and school/story.php?
(https://www.proprofs.co
time and the EmpId for the new employee. Therefore, the correct
answer is that it addstitle=70448-dump2)
m/quiz-school/story.php? a new row to the Emp table and also adds a corresponding row
title=70448-dump2)
with the current date and time and the EmpId for the new employee into the Audit
table.

Rate this question: 1 0

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 12/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

12. How many transactions at a time can obtain an update lock on a


Advertisement
resource?

A. 1

B. 2

C. 3

D. 128

Correct
RelatedAnswer
Quizzes
A. 1
Ssdo Quiz For
Explanation Aptech (SQL Server
Only one transaction2005) at a time can obtain an update lock on a resource. This means
(https://www.propro
that while one transaction has acquired the update lock, other transactions will have
fs.com/quiz-
to wait until the lock school/story.php?
is released before they can obtain it. This ensures that only one
(https://www.proprofs.co
transaction can make
m/quiz-school/story.php? changes to the resource at any given time, preventing conflicts
title=ssdo-quiz-
and ensuring data integrity.
title=ssdo-quiz-aptech) aptech)

Rate this question: 1 0

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 13/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

13. Which of Advertisement


the following queries returns the users whose username
starts with any of the characters between v to z?

A. SELECT PKUserId, UserName FROM UserProfile WHERE (UserName


LIKE '[vz]%')

B. SELECT PKUserId, UserName FROM UserProfile WHERE (UserName


LIKE '[v-z]%')

C. SELECT PKUserId, UserName FROM UserProfile WHERE (UserName


LIKE '[v-z%]')

Related Quizzes
D. None of the above.
Ssdo Quiz For
Correct Answer Aptech (SQL Server
2005)
B. SELECT PKUserId, UserName FROM UserProfile WHERE (UserName LIKE '[v-z]%')
(https://www.propro
fs.com/quiz-
Explanation school/story.php?
(https://www.proprofs.co
The correct answer is
m/quiz-school/story.php? "SELECT PKUserId, UserName FROM UserProfile WHERE
title=ssdo-quiz-
(UserName LIKE '[v-z]%')".
title=ssdo-quiz-aptech) aptech)This query uses the LIKE operator with a character range [v-
z] to match usernames that start with any character between v and z. The % wildcard
is used to match any number of characters after the specified range.
SQL Server 2008
Rate this question: 1
70-4481Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 14/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

14. Which of Advertisement


the following options can be used for viewing lock status
within your computer running SQL Server?

A. We can use SQL Profiler to capture lock and blocking information.

B. We can use the System Monitor that is part of the performance


console to capture statistics on lock wait times, locks per second, and
so on.

C. We can use the Activity Monitor in SSMS to see information on


blocking processes.

Related
D. Quizzes
We can use the sys.dm_tran_locks dynamic management view to
gather information on locks being held by transactions.
Ssdo Quiz For
Aptech (SQL Server
2005)
E. All of the above.
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
Correct Answer
m/quiz-school/story.php? title=ssdo-quiz-
E.title=ssdo-quiz-aptech)
All of the above. aptech)

Explanation
The correct answer is SQL"AllServer
of the2008
above." This is because all of the options mentioned
can be used for viewing 70-448lock status within a computer running SQL Server. SQL
Dump2
Profiler can capture lock and blocking information, the System Monitor can capture
(https://www.propro
statistics on lock wait fs.com/quiz-
times, locks per second, and more, the Activity Monitor in SSMS
can school/story.php?
provide information on blocking processes, and the sys.dm_tran_locks dynamic
(https://www.proprofs.co
m/quiz-school/story.php?
management title=70448-dump2)
title=70448-dump2)view can gather information on locks held by transactions.

Rate this question:

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 15/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

15. Which of Advertisement


the following commands is used to retrieve information
about the information contained in the current transaction log ?

A. DBCC LOGGING statement

B. DBC LOG statement

C. DBCC LOG statement

D. None of the above.

Correct
RelatedAnswer
Quizzes
A. DBCC LOGGING statement
Ssdo Quiz For
Explanation Aptech (SQL Server
The correct answer is 2005)
DBCC LOGGING statement. This command is used to retrieve
(https://www.propro
information about the information contained in the current transaction log. It allows
fs.com/quiz-
users to view the logschool/story.php?
records, including the log sequence number, transaction ID,
(https://www.proprofs.co
operation type, and other
m/quiz-school/story.php? relevant details. The DBCC LOGGING statement is
title=ssdo-quiz-
specifically designedaptech)
title=ssdo-quiz-aptech) for managing and analyzing transaction logs in a database
system.

Rate this question: 0 2


SQL Server 2008
70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 16/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

16. The _____Advertisement


object is used to retrieve information about all active
transactions on an instance.

A. Sys.dm_active_transactions

B. Sys.dm_tran_transactions

C. Sys.dm_tran_active_transactions

D. None of the above

Correct
RelatedAnswer
Quizzes
C. Sys.dm_tran_active_transactions
Ssdo Quiz For
Explanation Aptech (SQL Server
The correct answer is 2005)
sys.dm_tran_active_transactions. This object is used to retrieve
(https://www.propro
information about all active transactions on an instance. It provides details such as
fs.com/quiz-
the transaction ID, transaction state, transaction type, and the time when the
school/story.php?
(https://www.proprofs.co
transaction was started.
m/quiz-school/story.php? By querying this object, administrators can monitor and
title=ssdo-quiz-
analyze the active transactions
title=ssdo-quiz-aptech) aptech) on the instance to identify any potential issues or
bottlenecks.

Rate this question: 2 0


SQL Server 2008
70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 17/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

17. By default, what type of index is created for a unique constraint?


Advertisement

A. Clustered index

B. Non-Clustered index

C. Both A and B

D. None of the above.

Correct Answer
B. Non-Clustered
Related Quizzesindex

Explanation Ssdo Quiz For


When a unique constraint Aptechis(SQL
created by default, a non-clustered index is also created.
Server
2005)
A non-clustered index is a separate structure that contains a sorted list of the indexed
column's values and (https://www.propro
a pointer to the actual data row. This allows for efficient
fs.com/quiz-
searching and retrieval of data based on the indexed column, while still allowing the
(https://www.proprofs.co school/story.php?
data to be physicallytitle=ssdo-quiz-
m/quiz-school/story.php? stored in a different order.
title=ssdo-quiz-aptech) aptech)
Rate this question:

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 18/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

18. To rollback a portion of a transaction, We have to define ___.


Advertisement

A. Savepoints

B. Checkpoints

C. Transactions

D. None of the above.

Correct Answer
A. Savepoints
Related Quizzes

Explanation Ssdo Quiz For


Savepoints are used Aptech to define
(SQLpoints
Serverwithin a transaction where it can be rolled back
2005)
to in case of any issues or errors. By using savepoints, we can undo a portion of a
transaction without having(https://www.propro
to roll back the entire transaction. This allows for more
fs.com/quiz-
flexibility and control over the transaction process. Checkpoints, on the other hand, are
(https://www.proprofs.co school/story.php?
used for recovery purposes
m/quiz-school/story.php? and do not specifically deal with rolling back a portion of a
title=ssdo-quiz-
transaction. Transactions,
title=ssdo-quiz-aptech) aptech)while related to the concept of rollback, do not specifically
define the points within a transaction where rollback can occur. Therefore, the correct
answer is savepoints.
SQL Server 2008
Rate this question:
70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 19/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

19. AssumingAdvertisement
the following query is executed on 31st Dec 2011. What is
the result of the below query? SELECT CONVERT(varchar(30),
GETDATE(), 111) AS Expr1

A. 11/12/31

B. 31/12/11

C. 31/12/2011

D. 2011/12/31
Related Quizzes
Correct Answer
D. 2011/12/31 Ssdo Quiz For
Aptech (SQL Server
Explanation 2005)
(https://www.propro
The query is using the GETDATE() function to get the current date and then converting
fs.com/quiz-
it to a varchar formatschool/story.php?
with the format code 111. The format code 111 represents the
(https://www.proprofs.co
format "yyyy/MM/dd".
m/quiz-school/story.php? Therefore, the result of the query will be the current date in the
title=ssdo-quiz-
title=ssdo-quiz-aptech)
format "2011/12/31".aptech)

Rate this question: 1 0

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 20/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

20. Which ofAdvertisement


the following is a best practice to reduce deadlock
situations?

A. Access resources in the same order whenever possible within


transactions

B. Collect and verify input data from users before opening a transaction

C. Keep transactions long.

D. All of the above.


Related Quizzes
E. Only A and B.
Ssdo Quiz For
Aptech (SQL Server
Correct Answer 2005)
A. Access resources(https://www.propro
in the same order whenever possible within transactions
fs.com/quiz-
(https://www.proprofs.co school/story.php?
Explanation
m/quiz-school/story.php? title=ssdo-quiz-
Accessing resourcesaptech)
title=ssdo-quiz-aptech) in the same order whenever possible within transactions is a
best practice to reduce deadlock situations. Deadlocks occur when two or more
transactions are waiting for each other to release resources, resulting in a deadlock
situation. By accessing
SQLresources
Server 2008in the same order, the likelihood of deadlocks is
reduced because it ensures that transactions will not be waiting indefinitely for
70-448 Dump2
resources that are being held by other transactions. This practice helps to maintain a
(https://www.propro
fs.com/quiz-
consistent order of resource access and prevents potential deadlocks from occurring.
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php?
Rate this question: 1 title=70448-dump2)
0
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 21/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

21. What is the default join type used when only the keyword JOIN is
Advertisement
specified?

A. LEFT OUTER JOIN

B. RIGHT OUTER JOIN

C. SELF JOIN

D. INNER JOIN

Correct
RelatedAnswer
Quizzes
D. INNER JOIN
Ssdo Quiz For
Explanation Aptech (SQL Server
When only the keyword 2005)JOIN is specified without any other specific join type, the
(https://www.propro
default join type used is INNER JOIN. This means that only the matching rows
fs.com/quiz-
between the two tables will be included in the result set, excluding any non-matching
school/story.php?
(https://www.proprofs.co
rows.
m/quiz-school/story.php? title=ssdo-quiz-
title=ssdo-quiz-aptech) aptech)
Rate this question:

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 22/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

22. What is the output of the below query: SELECT CHARINDEX('DOT%',


Advertisement
'DOTNET') AS 'CharIndex'

A. 1

B. 0

C. 2

D. -1

Correct
RelatedAnswer
Quizzes
B. 0
Ssdo Quiz For
Explanation Aptech (SQL Server
The CHARINDEX function 2005) in SQL Server returns the starting position of a specified
(https://www.propro
expression within a string. In this query, the expression 'DOT%' is being searched
fs.com/quiz-
within the string 'DOTNET'. Since the expression is not found within the string, the
school/story.php?
(https://www.proprofs.co
function returns 0 astitle=ssdo-quiz-
m/quiz-school/story.php? the output.
title=ssdo-quiz-aptech) aptech)
Rate this question:

SQL Server 2008


70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 23/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

23. Which of Advertisement


the following is correct?

A. The DELETE statement logs information on each row deleted.

B. The TRUNCATE TABLE statement logs information on each row


deleted.

C. The TRUNCATE TABLE statement executes fast and requires fewer


resources on the server.

D. All of the above.

Related Quizzes
E. Only A and C.
Ssdo Quiz For
Aptech (SQL Server
Correct Answer 2005)
E. Only A and C. (https://www.propro
fs.com/quiz-
Explanation
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=ssdo-quiz-
The correct answer is
title=ssdo-quiz-aptech) "Only A and C." This means that both the DELETE statement and
aptech)
the TRUNCATE TABLE statement log information on each row deleted. Additionally,
the TRUNCATE TABLE statement executes fast and requires fewer resources on the
server.
SQL Server 2008
70-448 Dump2
Rate this question: 1 0
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 24/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

24. AssumingAdvertisement
UserProfile is a table containing a column Profession
which accepts NULL value. What is the result of the below query? SET
ANSI_NULLS ON SELECT Profession FROM UserProfile
WHERE (Profession <> NULL)

A. Returns records which has values in profession column

B. Gives an error.

C. Does not retrieve any records even if profession column contains


values.

Related Quizzes
D. None of the above.
Ssdo Quiz For
Aptech (SQL Server
Correct Answer
2005)
C. Does not retrieve any records even if profession column contains values.
(https://www.propro
fs.com/quiz-
Explanation
(https://www.proprofs.co school/story.php?
The query is using the
m/quiz-school/story.php? condition (Profession <> NULL) to filter the records. However,
title=ssdo-quiz-
title=ssdo-quiz-aptech)
comparing a value toaptech) NULL using the <> operator will always result in a NULL value,
not true or false. Therefore, the condition will not retrieve any records, even if the
profession column contains values.
SQL Server 2008
Rate this question: 1 70-4480Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 25/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

25. If the following code was run on 31st Dec 2011, What is the result of
Advertisement
the below query: SELECT DATEDIFF(YEAR, GETDATE(), '8/8/2003') AS
'Difference'

A. -8

B. 8

C. 0

D. -1
Related Quizzes
Correct Answer
A. -8 Ssdo Quiz For
Aptech (SQL Server
Explanation 2005)
(https://www.propro
The query is calculating the difference in years between the current date and the date
fs.com/quiz-
'8/8/2003'. Since theschool/story.php?
current date is after '8/8/2003', the result will be negative. The
(https://www.proprofs.co
result of -8 indicatestitle=ssdo-quiz-
m/quiz-school/story.php? that the current date is 8 years ahead of '8/8/2003'.
title=ssdo-quiz-aptech) aptech)
Rate this question: 1 0

SQL Server 2008


70-448 Dump2
Samy(https://www.propro
Boulos | MSc (Computer Science)
fs.com/quiz-
| school/story.php?
(https://www.linkedin.com/in/samyboulos/)
(https://www.proprofs.co
Datatitle=70448-dump2)
m/quiz-school/story.php? Engineer
title=70448-dump2)
Samy Boulos is an experienced Technology Consultant with a diverse
25-year career encompassing software development, data migration,
integration, technical support, and cloud computing. He leverages his
technical expertise and strategic mindset to solve complex IT
challenges, delivering efficient and innovative solutions to clients.

Quiz Review Timeline +

Related Topics

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 26/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

MySQL (https://www.proprofs.com/quiz-school/topic/mysql)
Advertisement

Oracle (https://www.proprofs.com/quiz-school/topic/oracle)

Linux (https://www.proprofs.com/quiz-school/topic/linux)

Recent Quizzes

Microsoft SQL Server Test! How Well Do You Know MS SQL Server 2005 - Exam
Trivia Quiz SQL Server 2005/2008 (Https://Www.Proprofs.Com/Qu
(Https://Www.Proprofs.Com/Qu Assessment Test? School/Story.Php?
School/Story.Php?Title=3dq- (Https://Www.Proprofs.Com/Qu Title=Sql_32)
Intelligent-Ms-Sql-Advanced- School/Story.Php?Title=3dq-
Related Quizzes
Assessment-Test) How-Well-Do-You-Know-Ms-
Microsoft SQL Server Test! How Well Do You Know MS SQL Server 2005 - Exam
Sql-Server-20052008-
Trivia Quiz SQL Server 2005/2008
Ssdo Quiz For (Https://Www.Proprofs.Com/Qu
Assessment-Test)
(Https://Www.Proprofs.Com/Qu Assessment Test?
Aptech (SQL Server School/Story.Php?
School/Story.Php?Title=3dq- (Https://Www.Proprofs.Com/Qu Title=Sql_32)
2005)
Intelligent-Ms-Sql-Advanced- School/Story.Php?Title=3dq-
Assessment-Test) (https://www.propro
How-Well-Do-You-Know-Ms-
fs.com/quiz-Sql-Server-20052008-
(https://www.proprofs.co school/story.php?
Assessment-Test)
m/quiz-school/story.php? title=ssdo-quiz-
title=ssdo-quiz-aptech) aptech)

Featured Quizzes
SQL Server 2008
70-448 Dump2
(https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=70448-dump2)
title=70448-dump2)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 27/28
1/7/25, 10:41 AM SQL Server Quiz Questions And Answers | Attempts: 7883 - Trivia & Questions

Hardest Geography Quiz: Test Soulmate Quiz: What Is The Simple Present Tense Quiz:
Your Global Mastery
Advertisement Name Of Your Soulmate? Learn And Test Your Skills
(Https://Www.Proprofs.Com/Qu (Https://Www.Proprofs.Com/Qu (Https://Www.Proprofs.Com/Qu
School/Story.Php? School/Story.Php? School/Story.Php?
Title=Hardest-World- Title=_129061) Title=Simple-Present-Quiz)
Geography-Quiz)
Hardest Geography Quiz: Test Soulmate Quiz: What Is The Simple Present Tense Quiz:
Your Global Mastery Name Of Your Soulmate? Learn And Test Your Skills
(Https://Www.Proprofs.Com/Qu (Https://Www.Proprofs.Com/Qu (Https://Www.Proprofs.Com/Qu
School/Story.Php? School/Story.Php? School/Story.Php?
Title=Hardest-World- Title=_129061) Title=Simple-Present-Quiz)
Geography-Quiz)

Quiz: What Kind Of New Year When Will I Get My First The US Articles Of
Celebration Fireworks Are Period? Quiz Confederation Quiz!
You? (Https://Www.Proprofs.Com/Qu (Https://Www.Proprofs.Com/Qu
(Https://Www.Proprofs.Com/Qu School/Story.Php? School/Story.Php?
School/Story.Php?Title=Pq- Title=When-Will-I-Get-My-First- Title=Articles-Confederation-
What-Kind-Of-New-Years-Eve- Period-Quiz-Accurate) Quiz)
Related
Quiz: What Quizzes
Kind Of New Year
Fireworks-Are-You)
When Will I Get My First The US Articles Of
Celebration Fireworks Are Period? Quiz Confederation Quiz!
You? (Https://Www.Proprofs.Com/Qu
Ssdo Quiz For (Https://Www.Proprofs.Com/Qu
(Https://Www.Proprofs.Com/Qu School/Story.Php? School/Story.Php?
Aptech (SQL Server
School/Story.Php?Title=Pq- Title=When-Will-I-Get-My-First- Title=Articles-Confederation-
2005)
What-Kind-Of-New-Years-Eve- Period-Quiz-Accurate) Quiz)
Fireworks-Are-You) (https://www.propro
fs.com/quiz-
(https://www.proprofs.co school/story.php?
m/quiz-school/story.php? title=ssdo-quiz-
title=ssdo-quiz-aptech) aptech)
Popular Topics

SQL Server 2008


70-448 Dump2
Database Concept (https://www.propro
Quizzes fs.com/quiz-
(https://www.proprofs.com/quiz-
(https://www.proprofs.co school/story.php?
school/topic/database-
m/quiz-school/story.php?
concept) title=70448-dump2)
title=70448-dump2)

Back to top

(https://www.proprofs.com/quiz-school/)

https://www.proprofs.com/quiz-school/story.php?title=microsoft-sql-server-quiz 28/28

You might also like