SQL Server Online Test Series 1, SQL Server quiz Series 1
Finish Quiz
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
SQL Server Online Test Series 1, SQL Server quiz Series 1 , Free SQL Server Quiz, Online SQL Server, online Test Quiz 1. SQL Server Online Test-1 Question and Answers 2024. SQL Server online Test Quiz 1. SQL Server Test-1 Free Mock Test 2024. SQL Server Online Test-1 Question and Answers in PDF. The SQL Server online mock test paper is free for all students. SQL Server Online Test is very useful for exam preparation and getting for Rank. SQL Server Online Test-1 Question and Answers in English. SQL Server Online Test for topic via String Handling Mode. Here we are providing SQL Server Online Test in English Now Test your self for “SQL Server Online Test in English” Exam by using below quiz…
This paper has 20 questions.
Time allowed is 25 minutes.
The SQL Server Online Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
Which of the following statement is used to make sql server resize the database file to its smallest possible size?
Correct
DBCC SHRINKFILE is used to make sql server resize the database file to its smallest possible size. This file shrinks the size of the specified data or log file for the current database, or empties a file by moving the data from the specified file to other files in the same filegroup, allowing the file to be removed from the database. You can shrink a file to a size that is less than the size specified when it was created. This resets the minimum file size to the new value.
Incorrect
DBCC SHRINKFILE is used to make sql server resize the database file to its smallest possible size. This file shrinks the size of the specified data or log file for the current database, or empties a file by moving the data from the specified file to other files in the same filegroup, allowing the file to be removed from the database. You can shrink a file to a size that is less than the size specified when it was created. This resets the minimum file size to the new value.
-
Question 2 of 20
2. Question
Difference between UNION and UNION ALL.
Correct
UNION selects only distinct values, whereas UNION ALL selects all values and not just distinct ones. UNION returns only unique records from both tables. UNION ALL returns all records from both tables. UNION is used to combine multiple result sets into one result set and will remove any duplicate rows that exist. UNION ALL is used to combine multiple result sets into one result set, but it does not remove any duplicate rows.
Incorrect
UNION selects only distinct values, whereas UNION ALL selects all values and not just distinct ones. UNION returns only unique records from both tables. UNION ALL returns all records from both tables. UNION is used to combine multiple result sets into one result set and will remove any duplicate rows that exist. UNION ALL is used to combine multiple result sets into one result set, but it does not remove any duplicate rows.
-
Question 3 of 20
3. Question
Which statement is correct from partitioned view?
Correct
Partitioned views allow the data in a large table to be split into smaller member tables. The data is partitioned between the member tables based on ranges of data values in one of the columns. The data ranges for each member table are defined in a CHECK constraint specified on the partitioning column. You can create an indexed view on a partitioned view.
Incorrect
Partitioned views allow the data in a large table to be split into smaller member tables. The data is partitioned between the member tables based on ranges of data values in one of the columns. The data ranges for each member table are defined in a CHECK constraint specified on the partitioning column. You can create an indexed view on a partitioned view.
-
Question 4 of 20
4. Question
Which utilities can we used to export data from sql server to a text file?
Correct
BCP Utility: Bulk Copy Program (BCP) is a command line utility which can be used for exporting SQL server data to text file. It is also used to transfer data from SQL server table to a data file.
DTS Packages: Data Transformation Services (DTS) tool is used to export the data from table to textfile. It is a set of tools that allows you extract, transform, and consolidate data from disparate sources into single or multiple destinations. You can create custom data movement solution using DTS object model. DTS package also notifies if package steps succeed or failed by sending mails to source and destination.
Incorrect
BCP Utility: Bulk Copy Program (BCP) is a command line utility which can be used for exporting SQL server data to text file. It is also used to transfer data from SQL server table to a data file.
DTS Packages: Data Transformation Services (DTS) tool is used to export the data from table to textfile. It is a set of tools that allows you extract, transform, and consolidate data from disparate sources into single or multiple destinations. You can create custom data movement solution using DTS object model. DTS package also notifies if package steps succeed or failed by sending mails to source and destination.
-
Question 5 of 20
5. Question
How inserting data through stored procedure do reduces network traffic and increase database performance?
Correct
Incorrect
-
Question 6 of 20
6. Question
Which statement is used to define a cursor?
Correct
DECLARE CURSOR is used to define a cursor. DECLARE CURSOR accepts both a syntax based on the ISO standard and a syntax using a set of Transact-SQL extensions.
Incorrect
DECLARE CURSOR is used to define a cursor. DECLARE CURSOR accepts both a syntax based on the ISO standard and a syntax using a set of Transact-SQL extensions.
-
Question 7 of 20
7. Question
Cursor that reflects the changes made to the database table even after the result set is returned
Correct
Dynamic cursor affects the changes which is made to database table even after the result set is returned.
Incorrect
Dynamic cursor affects the changes which is made to database table even after the result set is returned.
-
Question 8 of 20
8. Question
Capabilities of RAISERROR
Correct
RAISERROR is used to return messages back to applications using the same format as a system error or warning message generated by the SQL Server Database Engine. It can be logged in the error log. It prints a message to the application and assigns an error number, state and severity.
Incorrect
RAISERROR is used to return messages back to applications using the same format as a system error or warning message generated by the SQL Server Database Engine. It can be logged in the error log. It prints a message to the application and assigns an error number, state and severity.
-
Question 9 of 20
9. Question
Which global variables can be used to determine if a transaction is still open?
Correct
The @@TRANCOUNT is used to determine whenever a transaction is still open. It returns the number of active transactions for the current connection. It increments the count value whenever we open a transaction and decrements the count whenever we commit the transaction. Rollback sets the trancount to zero and transaction with save point does to affect the trancount value. It helps application to keep track of the open transactions.
Incorrect
The @@TRANCOUNT is used to determine whenever a transaction is still open. It returns the number of active transactions for the current connection. It increments the count value whenever we open a transaction and decrements the count whenever we commit the transaction. Rollback sets the trancount to zero and transaction with save point does to affect the trancount value. It helps application to keep track of the open transactions.
-
Question 10 of 20
10. Question
Which of the following connection type supports application role permissions and password encryption?
Correct
OLE DB and ODBC support application role permissions and password encryption. OLE DB and ODBC are APIs that provide access to a range of data sources. OLE DB and ODBC both provide a relatively universal layer of code that uses the same core API to access different databases.
Incorrect
OLE DB and ODBC support application role permissions and password encryption. OLE DB and ODBC are APIs that provide access to a range of data sources. OLE DB and ODBC both provide a relatively universal layer of code that uses the same core API to access different databases.
-
Question 11 of 20
11. Question
By default sql server has ___________ isolation level
Correct
Read Committed is the default isolation level for all SQL Server databases. The isolation level uses shared locking or row versioning to prevent dirty reads, depending on whether the READ_COMMITTED_SNAPSHOT database option is enabled.
Incorrect
Read Committed is the default isolation level for all SQL Server databases. The isolation level uses shared locking or row versioning to prevent dirty reads, depending on whether the READ_COMMITTED_SNAPSHOT database option is enabled.
-
Question 12 of 20
12. Question
Problems occur if we don’t implement proper locking strategy
Correct
Incorrect
-
Question 13 of 20
13. Question
What is the default “SORT” order for a SQL?
Correct
Incorrect
-
Question 14 of 20
14. Question
Which of the following is not correct for DELETE and TRUNCATE?
Correct
Incorrect
-
Question 15 of 20
15. Question
Choose the incorrect option about the sql server index
Correct
An index is a performance-tuning method of allowing faster retrieval of records. An index creates an entry for each value that appears in the indexed columns. Indexes are created on columns in tables or views. The index provides a fast way to look up data based on the values within those columns.
Incorrect
An index is a performance-tuning method of allowing faster retrieval of records. An index creates an entry for each value that appears in the indexed columns. Indexes are created on columns in tables or views. The index provides a fast way to look up data based on the values within those columns.
-
Question 16 of 20
16. Question
By default “FILLFACTOR” value is
Correct
Fill factor is the value that determines the percentage of space on each leaf-level page to be filled with data. In an SQL Server, the smallest unit is a page, which is made of Page with size 8K. Every page can store one or more rows based on the size of the row. The default value of the Fill Factor is 100, which is same as value 0. The default Fill Factor (100 or 0) will allow the SQL Server to fill the leaf-level pages of an index with the maximum numbers of the rows it can fit. There will be no or very little empty space left in the page, when the fill factor is 100.
Incorrect
Fill factor is the value that determines the percentage of space on each leaf-level page to be filled with data. In an SQL Server, the smallest unit is a page, which is made of Page with size 8K. Every page can store one or more rows based on the size of the row. The default value of the Fill Factor is 100, which is same as value 0. The default Fill Factor (100 or 0) will allow the SQL Server to fill the leaf-level pages of an index with the maximum numbers of the rows it can fit. There will be no or very little empty space left in the page, when the fill factor is 100.
-
Question 17 of 20
17. Question
Which of the following DBCC command is used to see when was the last time the index rebuild?
Correct
DBCC SHOW_STATISTICS displays current query optimization statistics for a table or indexed view. The query optimizer uses statistics to estimate the cardinality or number of rows in the query result, which enables the query optimizer to create a high quality query plan. DBCC SHOW_STATISTICS displays the header, histogram, and density vector based on data stored in the statistics object.
Incorrect
DBCC SHOW_STATISTICS displays current query optimization statistics for a table or indexed view. The query optimizer uses statistics to estimate the cardinality or number of rows in the query result, which enables the query optimizer to create a high quality query plan. DBCC SHOW_STATISTICS displays the header, histogram, and density vector based on data stored in the statistics object.
-
Question 18 of 20
18. Question
Can a clustered index also be a unique index?
Correct
Yes, a clustered index can also be a unique index. You can create clustered indexes on tables by using SQL Server Management Studio or Transact-SQL. With few exceptions, every table should have a clustered index. Besides improving query performance, a clustered index can be rebuilt or reorganized on demand to control table fragmentation. A clustered index can also be created on a view. When you create a UNIQUE constraint, a unique nonclustered index is created to enforce a UNIQUE constraint by default. You can specify a unique clustered index if a clustered index on the table does not already exist.
Incorrect
Yes, a clustered index can also be a unique index. You can create clustered indexes on tables by using SQL Server Management Studio or Transact-SQL. With few exceptions, every table should have a clustered index. Besides improving query performance, a clustered index can be rebuilt or reorganized on demand to control table fragmentation. A clustered index can also be created on a view. When you create a UNIQUE constraint, a unique nonclustered index is created to enforce a UNIQUE constraint by default. You can specify a unique clustered index if a clustered index on the table does not already exist.
-
Question 19 of 20
19. Question
Is a composite index key always part of a covering index?
Correct
No, the composite index key is not part of a covering index. A composite index is just an index defined over more than one column. It may or may not be a covering index as well. A covering index is an index that “covers” a query. That is it supplies all information for the query so that SQL Server does not have to touch the base tables.
Incorrect
No, the composite index key is not part of a covering index. A composite index is just an index defined over more than one column. It may or may not be a covering index as well. A covering index is an index that “covers” a query. That is it supplies all information for the query so that SQL Server does not have to touch the base tables.
-
Question 20 of 20
20. Question
Which type of integrity preserves the defined relationship between tables when records are entered or deleted?
Correct
Referential integrity is a relational database concept, which states that table relationships must always be consistent. Referential integrity means that the foreign key in any referencing table must always refer to a valid row in the referenced table. Referential integrity ensures that the relationship between two tables remains synchronized during updates and deletes.
Incorrect
Referential integrity is a relational database concept, which states that table relationships must always be consistent. Referential integrity means that the foreign key in any referencing table must always refer to a valid row in the referenced table. Referential integrity ensures that the relationship between two tables remains synchronized during updates and deletes.