Sei sulla pagina 1di 6

1. Primary data files are identified by Ans) .mdf 2.

Which of the following is/are true regarding User Defined Functions Ans) In Scalar UDF's without data access, calling overhead is less than T-SQL 3. Regarding SQLCLR which of the following statement(s) is/are true. Ans)SQLCLR is scalable SQLCLR is secure and scalable 4. Which one of the following statement(s) is/are TRUE Ans) A Database can have only one primary data file 5. Which of the following statement(s) is/are true Ans) SQLCLR data access is slower than T-SQL 6. With respect to views, which of the following is/are correct. Ans) Common queries that utilize complex joins, UNION queries etc can be defined as views. 7. With respect to procedures for SQL Server, in T-SQL procedures must Ans) Declare variables are READONLY. 8. Which of the following is/are true. Ans) For a updatable view, the columns affected by the data modification cannot be affected by a GROUP BY, HAVING or DISTINCT clauses in the view definition. 9. Define parameters with Unicode data type ensures Ans) Client requests or input are implicitly converted in the Server and not cor rupted in the process. 10. In relation to stored procedures which of the following is/are true. Ans) They can be used as a security mechanism They are stored in the database and can be called any number of times in your pr ogram. 11. Choose the correct alternative(s) Ans). In case the views are Encrypted with ENCRYPTION option, the encrypted text is stored in sys.sysComments 12. To retrieve information from system tables, which of the following options c an be used? Ans) Independent Query to fetch information, SQL server Management Objects, Repl ication Management Objects System Stored procedures

System Stored Procedures Transact-SQL statements and functions SQL Server Management Objects (SMO) Replication Management Objects (RMO) Database API catalog functions. 13. SQL Server provides few system views which can be utilised in user queries, like Ans) All of the options. Catalog Views, Information Schema views, Compatibility Views, Replication Views Dynamic Management Views and Functions. 14. Pick the correct alternative(s) Ans) If the new values in the foreign key columns do not exist in the primary ta ble, the insert or update operation fails Values in the foreign key columns must have a corresponding value in the primar y table. 15. To check the measure of activity on SQL server one has to use. Ans) Monitor API 16. With respect to Unique Key constraint which of the following is/are true. Ans). Unique key enforces uniqueness in column(s) values In case there is only one column specified as Unique key, then only one ro w can have NULL value for that particular column Unique key can take values in any order 17. In order to enforce that a an user is unable to update view which is against the conditions as defined in view definition, one should Ans) Use the option WITH CHECK OPTION while creating the view. 18. Which of the following is/are the valid restrictions on views Ans) The select statement used in the view can not include the order by clause 19. To keep track of the allocated space in each datafile, SQL server defines Ans) A Second page of each datafile as Page Free page 20. At the time of Database creation, to decide the location for database file, one has to consider Ans) Organization Performance Disk space

page size 21. Which of the following are true. Ans) T-SQL should be used for all set-based operations. T-SQL should be used as wrapper for SQL operations T-SQL should be used for all Set-based operations SQL should be used to access resources outside SQL server. SQL should be used for the user defined functions 22. which of the following is/are true. Ans) T-SQL supports all data type as .NET 23. Stored procedures return values as Ans) A global cursor that can be referenced outside the stored procedure. Return codes, which are always an integer value 24. A single page Free Space (PFS) can keep track of Ans). 8000 (Contiguous) Pages 25. Which of the following is/are true. Ans). Stored Procedures can be modified. Stored Procedures can be dropped or deleted by the user who created it. 26.Following operations / APIs are Unicode compliant Ans) Prefix with "N" 27. To detect damaged database pages, the options which can be used is/are Ans) CHECKSUM, TORN_PAGE_DETECTION 28. To preserve the integrity of character data when the databasae doesn't store the character data by using Unicode data types, one can Ans).Code-page specific server should communicate with clients having same codepage Store data in binary columns using binary, varbinary data types 29. Which of the following with respect to Primary key concept is/are true. Ans) The Primary key enforces entity integrity An existing table can be altered and a new primary key constriant can be ad ded. 30. Cascading Referential Integrity refers to Ans). The ability to carry on the Delete/UPdate operations on Primary key table for which there is a reference in foreign table, with corresponding Delete / Update in foreign key ta ble.

31. Each Global Allocation Map (GAM) Page can keep track of Ans). 63904 extents 32. Chosse the correct alternative(s) Ans) The Boolean expression for the CHECK constraint can reference other columns in the same table 33. Choose the correct alternative(s) Ans) None of the options. A. A view always involves physical storage and is kept computed before. B. Views can not be formed out of horizontally partitioned data from distinct t ables. C. None of the options D. A view is same as a table in SQL server E. If a view is an indexed view, physical storage is not required. 34. Which of the following database objects can not be coded in T-SQL. Ans) None of the options A. B. C. D. None of the options Stored procedures User-Defined Aggregates Triggers

35. As per SQL Server 2008, the DATE data type supports Ans) Date started from 01-01-0001 to December 31 9999. default is 1 Jan 1900. 36. Replication system tables are added to the database when the database is con figured as Ans) Publisher or a Subscriber. 37. Choose the correct option to create an Unique key named UK_EmployeeID Ans) ALTER TABLE TCS.Employee ADD CONSTRAINT UK_EmployeeID UNIQUE NONCLUSTERED (LoginID Asc) 38. In order to ensure that the underlying table(s) referenced in a view is not getting modified which is against the conditions set for the view, one should. Ans) Use the SCHEMABINDING attribute. 39. SQL Server 2008 facilitates which of the following operations with stored pr ocedures Ans) Encryption, Replication 40. To update the view when underlying objects in the view has changed, one can use Ans) The stored procedure sp_refreshview

41. Pertaining to logging mechanism, SQL server utilizes Ans) Write-ahead logging mechanism 42.With respect to Location aware application, which of the following is/are tru e Ans). A. SQL server 2008 supports Geography Data type B. Location Aware application is supported by SQL Server C. Common SRIDs are supported (Spatial Reference Identifiers) D. SRID 4326 is GPS 43. Choose the correct alternative(s). Ans) A view can have a maximum of 1024 columns. 44. The lowest/smallest unit of input/output performed by SQL server is in Ans) Page 45. The OUTPUT keyword Ans) Specifies the parameter type in stored procedure, through which the procedu re can return either data(such as an integer or character value) or a cursor variable (cursors are re sult sets that can be retrieved one row at a time). 46. Choose the correct alternative(s) Ans) A view can reference a view within itself An index view has Unique Clustered index defined on it which causes the view to be materialized. 47. An extent can be defined as Ans) Defined in terms of pages: 8 contiguous pages. 48. Any database that is created without mentioning any filegroup is created Ans) In primary filegroup 49. Choose the replication table name in msdb database Ans) MSagentParameterlist, MSdbms_map, MSdbms, MSreplmonthreshouldmetrics, MSdbm s_datatype sysreplicationalerts,MSdbms_datatype_mapping 50. Choose the correct alternative(s) A. Full-text index can be defined on a view. (FALSE) B. The SELECT statement used in the view cannot include the COMPUTE BY clause or the INTO keyword [TRUE] C. Rules or default definitions cannot be associated with a view. [TRUE] D. All of the options. E. None of the options.

51. In order to enforce that an user is unable to update view which is against t he conditions as defined in view definition one, shoud Ans) Use the option WITH CHECK OPTION while creating the view. 52. To retrieve information from system tables, which of the following options c an be used. Ans) System Stored procedures, Transact-SQL statements and functions, SQL Server Management Objects(SMO), Replication Management Objects (RMO), Database API catalog functions 53. Use master; Go Exec sp_who 'active'; Go The above piece of query results in Ans) Display all active processes. 54. When the datafile utilizes all its capacity specified by SIZE option, which one of the following options/ parameter allows the data file to grow: Ans) FILEGROWTH

Potrebbero piacerti anche