Ssdo Quiz For Aptech (SQL Server 2005)

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Vietha
V
Vietha
Community Contributor
Quizzes Created: 11 | Total Attempts: 9,911
| Attempts: 2,047 | Questions: 84
Please wait...
Question 1 / 84
0 %
0/100
Score 0/100
1. Indexes are used for faster retrieval of data.and improve the speed of query when accessing data a database.

Explanation

Indexes are indeed used for faster retrieval of data and to improve the speed of queries when accessing data in a database. By creating indexes on specific columns, the database can organize and sort the data in a way that allows for quicker searching and retrieval. Without indexes, the database would have to scan through the entire table to find the requested data, which can be time-consuming and inefficient. Therefore, using indexes can greatly enhance the performance and efficiency of database operations.

Submit
Please wait...
About This Quiz
Ssdo Quiz For Aptech (SQL Server 2005) - Quiz

This quiz tests knowledge on SQL Server 2005, focusing on stored procedures, system catalogs, database security, and cursor usage.

2. A table can have only one Clustered index and 249 nonclustered indexs.

Explanation

A table can have only one clustered index because the clustered index determines the physical order of the data in the table. It defines the way the data is stored on disk, so there can only be one clustered index. On the other hand, a table can have multiple nonclustered indexes, up to a maximum of 249, which are separate structures that provide an alternate way to access the data in the table without changing the physical order. Therefore, the statement is true.

Submit
3. A Stored Procedure can reference tables,views, user-define functions and other

Explanation

A stored procedure is a set of SQL statements that are stored in the database and can be executed as a single unit. It can reference tables, views, user-defined functions, and other database objects to perform complex operations or calculations. This allows for better organization and reusability of code, as well as improved performance since the database can optimize the execution of the stored procedure. Therefore, the statement "A Stored Procedure can reference tables, views, user-define functions and other" is true.

Submit
4. The ........is used to change the owner of the current database.
-1 true choice.

Explanation

The correct answer is "sp_changedbowner". This stored procedure is used to change the owner of the current database. It allows the user to specify a new owner for the database, which can be useful in situations where ownership needs to be transferred or updated.

Submit
5. The OUTPUT keyword specifies that the variables are involved in passing values from the called procedure to the callling program.

Explanation

The OUTPUT keyword is used to indicate that the variables in a called procedure will be used to pass values back to the calling program. This means that any changes made to the variables within the called procedure will be reflected in the calling program after the procedure is executed. Therefore, the statement "The OUTPUT keyword specifies that the variables are involved in passing values from the called procedure to the calling program" is true.

Submit
6. A ..............can be defined on a column with no duplicate values.

Explanation

A unique index is a type of index that can be defined on a column with no duplicate values. This means that each value in the column must be unique and cannot be repeated. The purpose of a unique index is to enforce uniqueness in a column, ensuring that no two rows in the table have the same value for the indexed column. This can be useful in scenarios where data integrity and uniqueness are important, such as when dealing with primary keys or unique identifiers.

Submit
7. FILLFACTOR value ranges from 0-100?

Explanation

The FILLFACTOR value is used in SQL Server to determine the percentage of space on each leaf-level page to be filled with data. It ranges from 0 to 100, where 0 means the pages are completely empty and 100 means the pages are completely full. Therefore, the statement "FILLFACTOR value ranges from 0-100" is true.

Submit
8. Clustered index, nonlustered index can be created on the view.

Explanation

Clustered index and nonclustered index can be created on a view. A clustered index determines the physical order of the data in a table or view, while a nonclustered index is a separate structure that contains a sorted list of key values with a pointer to the location of the data in the table or view. By allowing the creation of both types of indexes on a view, it provides flexibility in optimizing the performance of queries that involve the view.

Submit
9. Everyone can  modify or rename all procedure.

Explanation

The statement suggests that everyone has the ability to modify or rename all procedures. However, the correct answer is false, indicating that not everyone has this capability. This implies that there are restrictions or limitations in place regarding the modification or renaming of procedures, possibly due to security or organizational policies.

Submit
10. A View is created using horizontally partittioned data from one or more tables.

Explanation

A partitioned view is created using horizontally partitioned data from one or more tables. This means that the data in the view is divided into multiple partitions based on a specific criteria, such as a range of values or a specific column. Each partition contains a subset of the data, allowing for better performance and manageability of large datasets. This type of view is commonly used in scenarios where there is a need to distribute data across multiple storage systems or to improve query performance by accessing only the relevant partitions.

Submit
11. ...............index stores data in a sorted manner.

Explanation

A clustered index stores data in a sorted manner based on the values of the indexed column(s). This means that the physical order of the data in the table corresponds to the order of the clustered index. This can improve the performance of queries that involve range scans or ordered retrieval of data. In contrast, a nonclustered index does not dictate the physical order of the data and is stored separately from the table. Unique indexes ensure that the indexed column(s) contain unique values, but they do not necessarily store data in a sorted manner.

Submit
12. Database Mail and SQL mail stored Procedures.
- 1 true choice.

Explanation

The correct answer is "Used to perform email operations from within the SQL server." Database Mail and SQL Mail Stored Procedures are used to send emails directly from the SQL server. This functionality allows users to send notifications, alerts, or reports via email without the need for external applications or tools. It simplifies the process of integrating email functionality into SQL server applications and automates the sending of emails based on certain conditions or triggers within the database.

Submit
13. when a local temporary table is created inside a stored procedures, the table disappears when the procedure is exited.

Explanation

When a local temporary table is created inside a stored procedure, it is only accessible within that specific procedure. Once the procedure is exited, the temporary table is automatically dropped and no longer exists. This is because local temporary tables are tied to the scope of the procedure and are meant to be used for temporary storage within that particular execution context.

Submit
14. DML Trigger is executed when ....
- 1 choice

Explanation

DML triggers are executed when data is inserted, modified, or deleted in a table or a view using the INSERT, UPDATE, or DELETE statements. This means that whenever any of these statements are used to make changes to the data in a table or view, the DML trigger associated with that table or view will be triggered and its code will be executed.

Submit
15. The Stored procedures use to manage the security of the database. They are:
-1 true choice.

Explanation

Security stored procedures are used to manage the security of the database. These procedures help in controlling access to the database, managing user permissions, and enforcing security policies. They can be used to create and manage user accounts, grant or revoke privileges, and implement security measures such as encryption and authentication. By using security stored procedures, administrators can ensure that only authorized users have access to the database and that sensitive data is protected.

Submit
16. When a stored procedure is created using options, these options should be included in the ALTER PROCEDURE statement to retain their function.

Explanation

When a stored procedure is created with options, these options need to be included in the ALTER PROCEDURE statement in order to maintain their functionality. This means that if any changes need to be made to the stored procedure, the options should be included in the ALTER PROCEDURE statement to ensure that the procedure still operates as intended. Therefore, the statement "True" is correct.

Submit
17. A View can not reference a temporary  table.

Explanation

A view is a virtual table that is created based on the result of a query. It does not store any data itself, but rather provides a way to access and manipulate data from one or more underlying tables. Since a temporary table is created for temporary storage during a session and is not accessible outside of that session, a view cannot reference it. Therefore, the statement that a view cannot reference a temporary table is true.

Submit
18. A column with this constraint  does not allow null values or duplicate value to be inserted.
- 1 choice.

Explanation

A column with the primary key constraint does not allow null values or duplicate values to be inserted. The primary key uniquely identifies each row in a table and ensures data integrity by enforcing uniqueness and non-nullability.

Submit
19. Refers to constraints defined by user.
- 1 choice.

Explanation

User-defined integrity refers to constraints that are defined by the user. This means that the user has the ability to define and enforce their own integrity rules for their data. These rules can include things like data validation, uniqueness constraints, and referential integrity. By allowing users to define their own integrity rules, it gives them more control over the data and ensures that it meets their specific requirements and standards.

Submit
20. Before dropping a procedure, execute the .......................... system stored procedure to determine which objects depend on the procedure
- 1 choice

Explanation

To determine which objects depend on a procedure before dropping it, the correct system stored procedure to execute is sp_depends. This procedure will provide a list of all the objects that depend on the specified procedure, allowing the user to assess the potential impact of dropping it. The other options listed, sys.sql_modules, sp_helptext, and sp_check, are not specifically designed for this purpose.

Submit
21. What option to reserve space on the leaf page of an index for adding additional data at a later stage?

Explanation

The FILLFACTOR option is used to reserve space on the leaf page of an index for adding additional data in the future. It specifies the percentage of space on each leaf page to be filled with data during the index creation process. By setting a lower FILLFACTOR value, more space is left empty on each leaf page, allowing for future data additions without the need for page splits. This can help improve performance and reduce fragmentation in the index. The PAD_INDEX option, on the other hand, is used to specify whether to enable padding of the index pages, but it does not directly relate to reserving space for future data additions.

Submit
22. All information  about tables in user Database  is stored in a set of tables called the System catalog.that can be accessed using........
- 1 true choice.

Explanation

The System catalog is a set of tables that stores information about tables in the user Database. Catalog Stored Procedures are used to access this System catalog. Therefore, the correct answer is Catalog Stored Procedures.

Submit
23. Stored procedures can be dropped if they are no longer needed. if another stored procedure calls a deleted procedure,
- 1 choice.

Explanation

If a stored procedure is dropped and another stored procedure calls the deleted procedure, an error message will be displayed. This is because the calling procedure is unable to find the deleted procedure and cannot execute it. Therefore, attempting to call a deleted procedure will result in an error being displayed.

Submit
24. Maintaining consistency of data across tables that related through common columns.
- 1 choice.

Explanation

Referential Integrity ensures that relationships between tables are maintained by enforcing the existence of a foreign key in one table that corresponds to a primary key in another table. In this case, since the tables are related through common columns, Referential Integrity would ensure that the data in these columns remains consistent across the tables. It prevents the creation of orphaned records and maintains data integrity by ensuring that any changes made to the primary key in one table are reflected in the foreign key in the related table.

Submit
25. Maintains relationship between tables in a database, and Ensure consistency of data across related tables.
- 1 choice

Explanation

Referential integrity is the correct answer because it refers to the property that ensures that relationships between tables in a database are maintained and that data remains consistent across related tables. It enforces rules that prevent actions that would destroy the relationships between tables, such as deleting a record that is referenced by another table. By enforcing referential integrity, the database can maintain the integrity and validity of the data, preventing inconsistencies and preserving the relationships between tables.

Submit
26. The Stored procedures  are created for temporary use with a session are called...
- 1 true choice.

Explanation

Temporary stored procedures are created for temporary use within a session. They are not permanently stored in the database and are only available for the duration of the session. These procedures can be used to perform specific tasks or calculations within a session and are useful when there is a need for temporary logic or data manipulation. Unlike customer stored procedures, temporary stored procedures are not meant to be reused or accessed by other sessions or users.

Submit
27. if a new procedure is created using the same name as well as the same parameters as the drop procedure,all calls to the dropped procedure will be
- 1 choice

Explanation

If a new procedure is created using the same name as well as the same parameters as the dropped procedure, all calls to the dropped procedure will be executed successfully. This means that the new procedure will be able to handle the calls that were previously made to the dropped procedure without any issues or errors.

Submit
28. A column with this constraint  does not allow  duplicate values, but  allows null values  to be inserted.
- 1 choice

Explanation

A column with the "unique" constraint does not allow duplicate values, meaning that each value in the column must be unique. However, it does allow null values to be inserted, which means that the column can have empty or missing values. This constraint is useful when you want to ensure that each value in the column is unique, but also allow some rows to have missing or unknown values.

Submit
29. In a table , when no two rows have the exact same values in all columns.
- 1 choice.

Explanation

Entity Integrity refers to the rule that states that each row in a table must have a unique identifier, such as a primary key, and that no two rows can have the exact same values in all columns. This ensures that each row in the table is uniquely identifiable and eliminates the possibility of duplicate or redundant data. Therefore, in the given scenario, where no two rows have the exact same values in all columns, it aligns with the concept of Entity Integrity.

Submit
30. The ...................are created individual user databases.And  can not be accessed by any user other than the one who has created it.
- 1 true choice

Explanation

Local stored procedures are created individual user databases and can not be accessed by any user other than the one who has created it. This means that these stored procedures are specific to a particular user and cannot be accessed or modified by other users in the database. They provide a level of security and privacy for the user who created them.

Submit
31. which statement is true?

Explanation

This statement is true because delete triggers do not use the Inserted table to delete records from a table. The Inserted table is used in delete triggers to capture the rows that are being deleted, while the Deleted table is used in update triggers to capture the rows that are being updated. Therefore, the correct answer is that delete triggers do not use the Inserted table.

Submit
32. System stored procedure used to display the definition of a stored procedure?
-1 true choice.

Explanation

The correct answer is sp_helptext. The sp_helptext system stored procedure is used to display the definition of a stored procedure in SQL Server. It takes the name of the stored procedure as a parameter and returns the text of the stored procedure's definition. This can be useful for viewing the code of a stored procedure and understanding its functionality.

Submit
33. Ensures that each record in a table is unique.
- 1 choice.

Explanation

Entity integrity refers to the rule that ensures that each record in a table is unique. This means that no two records in the table can have the same primary key value. It is a fundamental concept in database design and helps maintain the accuracy and integrity of the data by preventing duplicate entries or inconsistencies. By enforcing entity integrity, the database system guarantees that each record can be uniquely identified and accessed.

Submit
34. A ...........is created on 2 or more columns. Both clustered index and nonclustered index can be ............

Explanation

A composite index is created on 2 or more columns. Both clustered index and nonclustered index can be composite indexes.

Submit
35. Displays the default error message for an error.
-1 choice.

Explanation

The correct answer is ERROR_MESSAGE(). This function is used to display the default error message for an error. It returns the error message text as a result. The other options, MESSAGE_ERROR(), RETURN_ERROR(), @@ERROR, and @@ERROR_LINE, do not specifically display the default error message for an error.

Submit
36. Temporary Stored Procedures include:
- 2 true choices

Explanation

Temporary stored procedures are procedures that are created and stored in the temporary database of a database management system. They are used for a specific session or connection and are automatically deleted when the session or connection ends. Local temporary procedures are created within a specific session and can only be accessed by that session. Global temporary procedures are created within a specific database and can be accessed by multiple sessions. Therefore, the correct answer is Local Temporary Procedures and Global Temporary Procedures.

Submit
37. EXECUTE xp_fileexists 'C:\sample.txt'
- 1 true choice.

Explanation

The correct answer is "check file sample.txt exists or not". This is because the given SQL statement "EXECUTE xp_fileexists 'C:\sample.txt'" is used to check whether the file "sample.txt" exists or not at the specified path "C:\sample.txt". Therefore, the correct answer accurately describes the purpose of the SQL statement.

Submit
38. Refers to validity and consistency of data
- 1choice.

Explanation

Data integrity refers to the accuracy, consistency, and reliability of data throughout its lifecycle. It ensures that data remains intact and reliable, free from any unauthorized modifications or corruption. Data integrity is crucial for maintaining the quality and trustworthiness of data, as it ensures that the data is valid and consistent. By enforcing data integrity rules, organizations can prevent data inconsistencies and errors, ensuring that the data is reliable for decision-making and other business processes.

Submit
39. The..............are used to perform tasks that are unable to be perform using standard T-SQL statement.
- 1 true choice

Explanation

Extended Stored Procedures are used to perform tasks that are unable to be performed using standard T-SQL statements. T-SQL Stored Procedures and Local Stored Procedures are both types of stored procedures that can be executed within the database, but they do not provide the same level of functionality as Extended Stored Procedures. Extended Stored Procedures allow for the execution of external programs or scripts from within the database, providing additional capabilities beyond what can be achieved with standard T-SQL statements. Therefore, the correct answer is Extended Stored Procedures.

Submit
40. Ensure that the values in a column are within a specified range
-1 choice.

Explanation

Domain integrity refers to the validation of data in a database column to ensure that it falls within a specified range or set of values. It ensures that the data stored in a column adheres to the defined rules or constraints, such as data type, format, or range of values. In the context of the question, domain integrity ensures that the values in a column are within the specified range, thus making it the correct answer.

Submit
41. Refers to policies and standards adhered to by an organization in running its operations.

Explanation

Business rules are policies and standards followed by an organization to govern its operations. These rules define how the organization should conduct its business, including processes, procedures, and guidelines. They ensure consistency, accuracy, and integrity in data and operations. Business rules provide a framework for decision-making and help maintain order and efficiency within the organization. Therefore, the correct answer is Business Rules.

Submit
42. Reseves space on the intermediate level of an index.

Explanation

PAD_INDEX is the correct answer because it refers to the option that reserves space on the intermediate level of an index. By enabling PAD_INDEX, space is reserved in the index pages at the intermediate level, which helps to improve the efficiency of index maintenance operations. This option is commonly used when there are frequent index updates or when the index key values are monotonically increasing.

Submit
43. View can  reference more than 1024 columns.

Explanation

A view is a virtual table based on the result of a query. In most database systems, including SQL, there is a limit on the number of columns a table can have, often set at 1024. Since a view is based on a query and essentially represents a table, it would also be subject to this limit. Therefore, the statement that a view can reference more than 1024 columns is false.

Submit
44.  View can retrieve information from  xml data type  using ........... method.

Explanation

The correct answer is "value()". The value() method in SQL Server is used to retrieve information from the xml data type. It allows you to extract a single value or a fragment of XML data from an XML column.

Submit
45. If a stored  procedure is executed sucessfully, It returns ...........by defaul. If errors are encountered and the procedure is not successfully executed, ...............interger value is returned.
- 1 choice

Explanation

When a stored procedure is executed successfully, it returns a value of zero by default. However, if errors are encountered and the procedure is not successfully executed, a non-zero integer value is returned. In this case, the correct answer states that a value of zero is returned when the stored procedure is executed successfully, and a non-zero value is returned when the procedure encounters errors and is not successfully executed.

Submit
46. Too many Indexes descrease the performance of ............
- 3 choices

Explanation

Having too many indexes can decrease the performance of INSERT, UPDATE, and DELETE operations. Indexes are used to speed up data retrieval by creating a separate data structure that allows for quicker access to specific columns. However, maintaining indexes requires additional time and resources. When performing INSERT, UPDATE, or DELETE operations, the indexes need to be updated to reflect the changes, which can slow down the overall performance. Therefore, having too many indexes can negatively impact the efficiency of these operations.

Submit
47. Which statements are true?
- 2 choices

Explanation

The first statement is false. The PRIMARY KEY constraint does not allow a null value to be entered once in a column. It enforces that each value in the column is unique and not null.

The second statement is true. Constraints are indeed used to ensure the validity of data in a table and consistency of data across tables. They define rules and restrictions on the data that can be stored in a table.

The third statement is false. A column specified with a UNIQUE constraint does not necessarily have to reference the Primary Key column. It just ensures that each value in the column is unique.

The fourth statement is true. The Foreign Key constraint is used to establish a relationship between two tables and helps in maintaining referential integrity in the database. It ensures that values in the foreign key column match values in the primary key column of the referenced table.

Submit
48. The Cursor Stored Procedures are.........
- 2 true choices.

Explanation

The correct answer is "sp_describe_column" and "sp_cursor_list". These are both stored procedures that are used in cursor operations. "sp_describe_column" is used to retrieve information about the columns in a specified table or view, while "sp_cursor_list" is used to retrieve information about the open cursors on a specified server. Both of these stored procedures are commonly used in cursor operations to gather information about the columns and cursors being used.

Submit
49. The permission associated with the stored procedure are not lost when a store procedure is re-created. And when a stored procedure is altered, the permissions defined for the stored procedure remain the same even though the procedure definition is changed

Explanation

When a stored procedure is re-created, the permissions associated with it are not lost. Similarly, when a stored procedure is altered, the permissions defined for it remain the same even if the procedure's definition is changed. Therefore, the statement that the answer is false is correct.

Submit
50. .....................are defined at the time of creation of procedure.
- 2 choice

Explanation

Input parameters and output parameters are defined at the time of creation of a procedure. These parameters allow the procedure to receive input values and return output values when it is executed. Input parameters are used to pass values into the procedure, while output parameters are used to return values from the procedure. By defining these parameters, the procedure can be customized and made more flexible, as it can accept different inputs and produce different outputs based on the values passed to it. The other options, "A and B" and "Name of stored procedure", are not directly related to the parameters of a procedure.

Submit
51. Which statement is not True?
- 2 choice

Explanation

The given correct answer states that the statements following the statement that caused the error in the TRY block are executed only after the CATCH block is executed. However, this statement is not true. In reality, when an error occurs in the TRY block, the statements following the statement that caused the error are not executed. The control is immediately transferred to the CATCH block. Additionally, the answer also states that the @@ERROR function returns an error message for the error occurring in the last executed statement, which is also not true. The @@ERROR function returns the error number, not the error message.

Submit
52. The properties of an Object such as a table or a view, are stored in special system data. These properties are........................

Explanation

The properties of an object, such as a table or a view, are stored in special system data called metadata. Metadata provides information about the structure, definition, and characteristics of the object. It includes details like column names, data types, constraints, indexes, and other relevant information. By storing this information in metadata, the system can efficiently manage and manipulate the object, ensuring data integrity and allowing for easy retrieval and manipulation of the object's properties.

Submit
53. The...............create stored procedures for performance of various tasks, they are referred  to as user-defined or custom stored procedures and can be set to override the default system procedures.
- 1 true choice.

Explanation

Customer stored procedures are created by users to perform specific tasks and can override the default system procedures. These procedures are customized and tailored to meet the specific needs of the user. Extended stored procedures, T-SQL stored procedures, and system stored procedures are not specifically mentioned in the question and do not match the given explanation. Therefore, the correct answer is customer stored procedures.

Submit
54. Which statement is true?
- 1 choice

Explanation

The correct answer is that when the RETURN statement is used in a stored procedure, it cannot return a null value. If a procedure tries to return a null value, a warning message is generated and the value zero is returned.

Submit
55. Specifies an integer value to be returned though the stored procedure.
- 1 choice

Explanation

The correct answer is RETURN. In stored procedures, the RETURN statement is used to specify an integer value that will be returned. This value can be used to indicate the success or failure of the stored procedure or to return any other relevant information. The RETURN statement is commonly used in programming languages and databases to control the flow of execution and return values from functions or procedures.

Submit
56. An Index can have a max of ....columns

Explanation

An index can have a maximum of 16 columns. This means that when creating an index, you can specify up to 16 columns to be included in the index. Having an index on a table can improve query performance, as it allows the database to quickly locate the data based on the indexed columns. However, adding too many columns to an index can also have negative effects, such as increased storage space and slower data modification operations. Therefore, the limit of 16 columns helps to strike a balance between performance and efficiency.

Submit
57. Using "OUTPUT" clause.
- 2 true choice

Explanation

The correct answer is "Return information from each row on which the INSERT, UPDATE, and DELETE have been executed" and "Useful to retrieve the value of an identity or computed column after an INSERT or UPDATE operation". The OUTPUT clause in SQL is used to return information from each row that has been affected by an INSERT, UPDATE, or DELETE statement. It can be used to retrieve the value of an identity or computed column after an INSERT or UPDATE operation.

Submit
58. A View can be created on temporary table.

Explanation

A View cannot be created on a temporary table because temporary tables are only accessible within the session they are created in and are automatically dropped when the session ends. Views, on the other hand, are database objects that are stored in the database and can be accessed by multiple sessions. Therefore, it is not possible to create a view on a temporary table.

Submit
59. The Global Tem Procedures  ....
- 3 true choices

Explanation

The correct answer choices are "are dropped at the end of the last session," "can be used any user," and "are visible for all users." This suggests that the Global Tem Procedures are not retained after the current session ends, they can be used by any user, and they are visible to all users.

Submit
60. The................are not residents of SQL server. they are implemented as Dynamic Link Libraries(DLL) executed outsite the SQL Sever Environment.
- 1 true choice.

Explanation

Extended Stored Procedures are not residents of SQL server. They are implemented as Dynamic Link Libraries (DLL) executed outside the SQL Server environment.

Submit
61. OBJECT_DEFINITION()
- 2 choices

Explanation

The correct answer is A and D. OBJECT_DEFINITION() is a system function used to display the definition of a stored procedure. It can be used without specifying the object ID to display the definition of the current stored procedure, or it can be used with the object ID to display the definition of a specific stored procedure. Therefore, both options A and D are correct explanations for the given answer.

Submit
62. A View is created in everywhere databases.

Explanation

A View is not created in "everywhere" databases. Views are database objects that are created in specific databases to provide a virtual representation of data from one or more tables. They are used to simplify complex queries, provide security by restricting access to certain columns or rows, and enhance performance by pre-computing and storing the results of frequently used queries. Therefore, the statement that a View is created in "everywhere" databases is incorrect.

Submit
63. Where are Catalog Stored Procedures ?
-2 true choices

Explanation

The correct answer is A and C, which means that the catalog stored procedures can be found in sp_column, sp_database, and sp_statistics. These stored procedures are used for various purposes related to managing and querying database catalogs. They provide functionality such as retrieving information about columns, databases, and statistics, which are essential for database administrators and developers.

Submit
64. The RETURN statement passes control back to the calling program. any T-SQL statements following the RETURN statement are  executed.

Explanation

The explanation for the given correct answer is that the RETURN statement in T-SQL does not execute any statements following it. Once the RETURN statement is encountered, it immediately passes control back to the calling program or stored procedure, and any statements after the RETURN statement are not executed. Therefore, the statement "any T-SQL statements following the RETURN statement are executed" is incorrect.

Submit
65. DDL Triggers are...

Explanation

DDL triggers are special types of triggers in a database management system that are fired in response to specific Data Definition Language (DDL) statements. These triggers are used to perform actions before or after certain DDL statements are executed.

The given correct answer includes DROP Trigger, CREATE and ALTER Trigger. This means that DDL triggers can be created or altered using the CREATE and ALTER statements, and they can also be dropped or deleted using the DROP statement. These actions allow for the management and customization of DDL triggers in a database system.

Submit
66. Which  are not System Stored Procedures?
-2 true choices.

Explanation

Extended Stored Procedures and Temporary Stored Procedures are not System Stored Procedures. System Stored Procedures are pre-defined stored procedures that are included with the SQL Server software and are used for various administrative tasks. Extended Stored Procedures are custom procedures that are created by users and are used to extend the functionality of SQL Server. Temporary Stored Procedures are created and used within a specific session or connection and are automatically dropped when the session or connection is closed.

Submit
67. The Stored Procedure
- 2 true choices.

Explanation

A stored procedure is a set of T-SQL statements that are executed as a single block of code that performs a specific task. It is commonly used in database administration and information activities. Additionally, stored procedures can be created to carry out repetitive tasks efficiently.

Submit
68. Advantages of The Store Procedures are:

Explanation

The advantages of stored procedures include reduced client/server traffic and reuse of code. By executing stored procedures on the server side, the amount of data transmitted between the client and server is minimized, resulting in reduced network traffic. Additionally, stored procedures allow for the reuse of code, as they can be created to carry out repetitive tasks, eliminating the need to rewrite the same code multiple times.

Submit
69. A View may be have a FullText index.

Explanation

A View cannot have a FullText index because a View is a virtual table that is derived from one or more tables, and it does not store any data itself. FullText indexes are used to perform fast text-based searches on columns that contain large amounts of textual data. Since a View does not store data, it cannot have a FullText index. Therefore, the correct answer is False.

Submit
70. Which statements are true?
- 3 choices.

Explanation

The given answer is correct because it accurately identifies the true statements. A row in a table represents the instance of an entity, meaning that each row in a table represents a specific instance or occurrence of the entity being modeled. A domain defines the range of values for columns in a table, meaning that it specifies the valid values that can be stored in a column. Default definitions specify default values for columns that do not accept null values, meaning that if a column is defined with a default value and no value is provided during an insert operation, the default value will be used.

Submit
71. The create view statement can be combined with other T-SQL statements in a single batch.

Explanation

The create view statement cannot be combined with other T-SQL statements in a single batch. Each T-SQL statement must be executed separately.

Submit
72.  Which statements are true?
- 3 choices

Explanation

The first statement is true because triggers cannot be executed directly and they do not pass or receive parameters.
The second statement is true because a trigger is executed when data in a specified table is modified.
The fifth statement is true because triggers are often created to enforce referential integrity among logically related data in different tables.
However, the fourth statement is false because a trigger is not the same as a check constraint.

Submit
73. Which statements are True?
- 3 choices

Explanation

Constraints assist in ensuring data integrity by imposing rules and restrictions on the data that can be stored in a database. They can enforce conditions such as uniqueness, referential integrity, and data type validation.

Rules are the constraints that you can apply to multiple tables. They allow you to define custom business logic that applies to multiple tables, ensuring consistent data validation across the database.

Rules are independent of table definitions, meaning they can be applied to tables regardless of their structure or schema. This provides flexibility in implementing and enforcing specific data validation requirements across different tables.

Submit
74. A View definition can not contain keywords:

Explanation

The given answer states that the keywords "Compute by", "Group By", and "Into" cannot be included in a View definition. These keywords are commonly used in SQL queries to perform specific operations. However, when creating a View, these keywords are not allowed because Views are virtual tables that are derived from other tables or Views, and they do not support certain operations like grouping, computing, or inserting data. Therefore, these keywords are not allowed in a View definition.

Submit
75. Prevents invalid data from being entered into the column.
- 1 choice.

Explanation

The term "Business Rules" refers to a set of guidelines or constraints that govern the operations and behavior of a business. In the context of the given question, business rules can be used to prevent invalid data from being entered into a column. By defining specific rules and conditions for data entry, businesses can ensure that only valid and accurate data is stored in their systems. This helps maintain data integrity and prevents any inconsistencies or errors that may arise from entering invalid data.

Submit
76. Entity Integrity are:
-3 choices

Explanation

The given answer consists of four options: Primary key constraint, Unique constraint, Index, and Identity property. These options are all examples of entity integrity constraints.

A primary key constraint ensures that each record in a table has a unique identifier, which helps in uniquely identifying each row.

A unique constraint ensures that a specific column or set of columns in a table contains only unique values, preventing duplicate entries.

An index is a data structure that improves the speed of data retrieval operations on a database table. It allows for faster searching and sorting of data based on specific columns.

Identity property is used to automatically generate a unique value for a column when a new row is inserted into a table.

All of these constraints contribute to maintaining the integrity of the entities in a database, ensuring data consistency and accuracy.

Submit
77. Domain integrity include:
- 3 choices

Explanation

The answer includes the options of "Foreign key constraint," "Default constraint," "Check constraint," "Not null definition, rules, Data types." These are all examples of domain integrity constraints that can be applied to a database. A foreign key constraint ensures that values in a column match values in another table's primary key. A default constraint sets a default value for a column if no value is specified. A check constraint defines a condition that values in a column must meet. Not null definition specifies that a column cannot have a null value. Rules and data types define the allowed values and formats for columns.

Submit
78. which statements are true?
- 2 choices

Explanation

This answer is correct because it accurately states that a table can have multiple AFTER triggers defined for each INSERT, UPDATE, and DELETE operation. It also correctly states that the trigger is executed after the inserted and deleted tables are created.

Submit
79. INSTEAD OF Triggers.
- 2 choices

Explanation

INSTEAD OF triggers are executed in place of the INSERT, UPDATE, or DELETE operation. They allow the user to define custom actions to be performed instead of the default database operations. These triggers can be created on tables but not on views. They are executed before constraint checks are performed on the table and after creating the Inserted and Deleted tables, which are used to access the data being modified.

Submit
80. A View definition can not contain keywords:

Explanation

A view definition cannot contain the keywords "Compute" and "Default" because these keywords are used in other SQL statements and functions. "Compute" is used to calculate aggregate values in a result set, while "Default" is used to assign a default value to a column if no value is specified. Since these keywords have specific purposes in SQL, they are not allowed to be used in a view definition.

Submit
81. Which statements are false?

Explanation

The statement "DDL trigger for DROP operation can be created as an INSTEAD OF trigger" is false. INSTEAD OF triggers are used for DML operations (INSERT, UPDATE, DELETE), not for DDL operations like DROP.

The statement "a DDL trigger definition can be displayed using as_helptext" is also false. The correct syntax to display the definition of a DDL trigger is sp_helptext, not as_helptext.

Submit
82. which are true?
- 3 choice

Explanation

The correct answer is @@ERROR_LINE : Returns the line number that caused the error, @@ERROR : Returns the error number for the error in the last T_SQL statement, and The return code indicates the execution status of the stored procedure. These options are true because @@ERROR_LINE returns the line number that caused the error, @@ERROR returns the error number for the error in the last T_SQL statement, and the return code indicates the execution status of the stored procedure.

Submit
83. Where are true?

Explanation

The given correct answer includes three statements that are true. First, each triggering action can have multiple AFTER triggers, meaning that multiple triggers can be executed after a specific action occurs on a table. Second, the trigger definition can be viewed if the information is not encrypted, allowing users to see the details of how a trigger is defined. Third, the DML (Data Manipulation Language) trigger definition can be modified by dropping and creating the trigger, providing the ability to make changes to the trigger's functionality.

Submit
84. The DDL Triggers....

Explanation

DDL triggers are used to check and control database operations, operating only after the table or view is modified. These triggers can be defined either at the database or the server level. They are not specifically used to enforce business rules when data is modified, as that is the role of DML triggers.

Submit
View My Results

Quiz Review Timeline (Updated): Jan 12, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 12, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 21, 2008
    Quiz Created by
    Vietha
Cancel
  • All
    All (84)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Indexes are used for faster retrieval of data.and improve the speed of...
A table can have only one Clustered index and 249 nonclustered indexs.
A Stored Procedure can reference tables,views, user-define functions...
The ........is used to change the owner of the current database.-1...
The OUTPUT keyword specifies that the variables are involved in...
A ..............can be defined on a column with no duplicate values.
FILLFACTOR value ranges from 0-100?
Clustered index, nonlustered index can be created on the view.
Everyone can  modify or rename all procedure.
A View is created using horizontally partittioned data from one or...
...............index stores data in a sorted manner.
Database Mail and SQL mail stored Procedures.- 1 true choice.
When a local temporary table is created inside a stored procedures,...
DML Trigger is executed when ....- 1 choice
The Stored procedures use to manage the security of the database. They...
When a stored procedure is created using options, these options should...
A View can not reference a temporary  table.
A column with this constraint  does not allow null values or...
Refers to constraints defined by user.- 1 choice.
Before dropping a procedure, execute the .............................
What option to reserve space on the leaf page of an index for adding...
All information  about tables in user Database  is stored in...
Stored procedures can be dropped if they are no longer needed. if...
Maintaining consistency of data across tables that related through...
Maintains relationship between tables in a database, and Ensure...
The Stored procedures  are created for temporary use with a...
If a new procedure is created using the same name as well as the same...
A column with this constraint  does not allow  duplicate...
In a table , when no two rows have the exact same values in all...
The ...................are created individual user databases.And ...
Which statement is true?
System stored procedure used to display the definition of a stored...
Ensures that each record in a table is unique.- 1 choice.
A ...........is created on 2 or more columns. Both clustered index and...
Displays the default error message for an error.-1 choice.
Temporary Stored Procedures include:- 2 true choices
EXECUTE xp_fileexists 'C:\sample.txt' - 1 true choice.
Refers to validity and consistency of data- 1choice.
The..............are used to perform tasks that are unable to be...
Ensure that the values in a column are within a specified range-1...
Refers to policies and standards adhered to by an organization in...
Reseves space on the intermediate level of an index.
View can  reference more than 1024 columns.
 View can retrieve information from  xml data type ...
If a stored  procedure is executed sucessfully, It returns...
Too many Indexes descrease the performance of ............- 3 choices
Which statements are true?- 2 choices
The Cursor Stored Procedures are.........- 2 true choices.
The permission associated with the stored procedure are not lost when...
.....................are defined at the time of creation of...
Which statement is not True?- 2 choice
The properties of an Object such as a table or a view, are stored in...
The...............create stored procedures for performance of various...
Which statement is true?- 1 choice
Specifies an integer value to be returned though the stored...
An Index can have a max of ....columns
Using "OUTPUT" clause.- 2 true choice
A View can be created on temporary table.
The Global Tem Procedures  ....- 3 true choices
The................are not residents of SQL server. they are...
OBJECT_DEFINITION() - 2 choices
A View is created in everywhere databases.
Where are Catalog Stored Procedures ?-2 true choices
The RETURN statement passes control back to the calling program. any...
DDL Triggers are...
Which  are not System Stored Procedures?-2 true choices.
The Stored Procedure - 2 true choices.
Advantages of The Store Procedures are:
A View may be have a FullText index.
Which statements are true?- 3 choices.
The create view statement can be combined with other T-SQL statements...
 Which statements are true?- 3 choices
Which statements are True?- 3 choices
A View definition can not contain keywords:
Prevents invalid data from being entered into the column.- 1 choice.
Entity Integrity are:-3 choices
Domain integrity include:- 3 choices
Which statements are true?- 2 choices
INSTEAD OF Triggers.- 2 choices
A View definition can not contain keywords:
Which statements are false?
Which are true?- 3 choice
Where are true?
The DDL Triggers....
Alert!

Advertisement