This advanced SQL quiz, titled 'sql complete test 2008', evaluates knowledge on XML instances, catalog views, stored procedures, cursors, and triggers. It's designed to assess understanding of complex SQL features and their practical applications.
True
False
Rate this question:
True
False
Rate this question:
Ascending
Descending
Rate this question:
+=
%=
*=
All of above
Rate this question:
Yes
No
Rate this question:
True
False
Rate this question:
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
Rate this question:
True
False
Rate this question:
OPEN
FETCH
DECLARE CURSOR
@@FETCH_STATUS
Rate this question:
Dirty reads
Phantom reads
Lost updates
Unrepeatable reads
ALL of the above
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Yes
No
Rate this question:
True
False
Rate this question:
Entity integrity
Domain integrity
Referential integrity
User-defined integrity
Rate this question:
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.
Rate this question:
A. It can be logged in the error log
B. It can print a message to the application
C. It can assign an error number, state and severity
A,b and c
Rate this question:
SQL Server has Logical Architecture and Physical Architecture.
SQL Server is a DBMS, a complete database.
SQL Server is compatible with structured query language and has rich support for XML
Both a and c
Rate this question:
READ COMMITTED
READ UNCOMMITTED
SERIALIZABLE
REPEATABLE READ
Rate this question:
EXEC MyStoredProcedure
EXECUTE MyStoredProcedure
RUN MyStoredProcedure
Both a and b above
Rate this question:
Smallest unit of data storage
Automatically created at the time of creating a table
Allows an application program to find specific data without scanning through the entire table
Contains information about modifications carried out in the database
Rate this question:
Primary keys only.
Foreign key only.
Both primary and foreign keys.
SQL Server never automatically creates an index.
Rate this question:
Static
Dynamic
FORWARD_ONLY
Keyset
Rate this question:
A computed columns can have XML instances as a source as well as a type
Computed columns can have XML instances only as a source
Computed columns can have a XML instancesonly as a type.
Computed columns cannot have XML instances
Rate this question:
GENERATE SEQUENCE SE START WITH 30 ADD BY 20
CREATE SEQUENCE SE START WITH 30 ADD BY 20
CREATE SEQUENCE SE START WITH 30 INCREMENT BY 20
GENERATE SEQUENCE SE INITIATE WITH 30 INCREMENT BY 20
Rate this question:
Queries that do not return large result sets
Columns that are frequently used in the WHERE clause that return exact matches
Coumns that have many distinct values
All of the listed options
Rate this question:
Linked_server_name.database.owner.table
Linked_server_name.database.table
Linked_server_name…table
Database.table
Rate this question:
Drop table statement
Delete table statement
Truncate table statement
Rate this question:
The SELECT statement does not execute but stored procedure sp_process executes
The SELECT statement executes but stored procedure sp_process does not execute
Both SELECT and stored procedure sp_process fail to execute
Both SELECT and stored procedure sp_process execute successfully
Rate this question:
True
False
Rate this question:
INSTEAD trigger does not support recursion
Only one INSTEAD of trigger can be defined for each action on a given table
A table cannot have an INSTEAD of trigger and FOREIGN KEY constraint with CASCADE defined for the same action
All of the listed options
Rate this question:
Nonclustered
Clustered
Primary
Secondary
Rate this question:
View
Temp table
User Defined Type
Extension
Rate this question:
Nonclustered
Clustered
Primary
Secondary
Rate this question:
False
True
Rate this question:
Master
Msdb
Pub
Both a and b above
Rate this question:
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
1
2 2
Unlimited
1024
None of the listed options
Rate this question:
Both b and d below
Create view viewname as insert
Create view viewname as update
Create view viewname as select
True
False
Rate this question:
Write SQL code using either CREATE or ALTER SQL statements only.
Use the graphical facilities of SQL Server Enterprise Manager only.
Both of the two methods above will work.
Neither of the two methods above will work.
Rate this question:
XMLSCHEMA option does not returns an in-line XSD schema
BINARY BASE32 returns the binary data in base32-encoded format.
Each row in the query result is transformed into an XML element
Both a and c above
Rate this question:
Use Dynamic SQL in stored procedures
Use Nested stored procedures
Use extended stored procedures
Drop the stored procedures that are not in use
Rate this question:
DBCC SHOW_STATISTICS
DBCC SHOWCONFIG
DBCC DBREINDEX
Rate this question:
@@NESTLEVEL
@@FETCH_STATUS
@@TRANCOUNT
@@CONNECTIONS
Rate this question:
Data Transfer Services
Data Transformation Services
Data Disperse Services
Data transform Services
Rate this question:
Transactions that might require a rollback
Transactions updating multiple tables
Distributed transactions
Transactions requiring user confirmation of update
Rate this question:
Statement 1 is true, 2 is false
Statement 1 is false, 2 is true
Both Statements 1 and 2 are true
Both Statements 1 and 2 are false
Rate this question:
Quiz Review Timeline (Updated): Mar 17, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.