Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

MCQ

1. Which of the following predicates is used for full text search ?


A) TEXT()
B) FREETEXT()
C) TEXT()
D) All of the mentioned
Answer : B
______________________________________________________________________www.study2online.com

2. FREETEXTTABLE is a full text _________


A) Predicate
B) Function
C) Procedure
D) All of the mentioned
Answer : B
______________________________________________________________________www.study2online.com

3. The CONTAINS and FREETEXT predicates return a _________ value.


A) TRUE or FALSE
B) Scalar
C) One
D) All of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

4. CONTAINS and CONTAINSTABLE look for an _______ match for the phrase.
A) exact
B) similar
C) different
D) none of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

5. What options did ALTER DATABASE statement add ?


A) DATABASE SNAPSHOT syntax
B) ATTACH_REBUILD_LOG clause
C) DB_CHAINING option

Page 1/12 Visit our site: https://study2online.com/


MCQ

D) READ_COMMITTED_SNAPSHOT
Answer : D
______________________________________________________________________www.study2online.com

6. Which of the following item is provided by CREATE DATABASE statement ?


A) Service Broker options
B) ALLOW_SNAPSHOT_ISOLATION
C) DB_CHAINING
D) Database mirroring
Answer : A
______________________________________________________________________www.study2online.com

7. Which of the following statement removes database including its related components ?
A) DROP DATABASE
B) DELETE DATABASE
C) REMOVE DATABASE
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

8. Which of the following database cannot be dropped ?


A) TEMPDB
B) Master
C) MSDB
D) All of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

9. Which is the minimal permission that a user must have to drop the database ?
A) READ
B) WRITE
C) VIEW
D) CONTROL
Answer : D
______________________________________________________________________www.study2online.com

Page 2/12 Visit our site: https://study2online.com/


MCQ

10. Which of the following statement removes sales and suppliers database ?
A) DROP DATABASE Sales, NewSales
B) DROP DATABASE Sales, suppliers
C) DROP DATABASE Sales and suppliers
D) DROP DATABASE Sales-suppliers
Answer : B
______________________________________________________________________www.study2online.com

11. Which of the following statement is used to create database snapshot ?


A) CREATE DATABASE
B) CREATE SNAPSHOT
C) CREATE SNAPDB
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

12. Syntax for dropping a database snapshot named “Sushant― would be :


A) DROP DATABASE Sushant
B) DROP DATABASE SNAP Sushant
C) DROP SNAPSHOT Sushant
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

13. View used used for displaying current status of database is :


A) system.databases
B) current.databases
C) sys.databases
D) status.databases
Answer : C
______________________________________________________________________www.study2online.com

14. Which of the following database should be backed up regularly ?


A) Adventure Works
B) Pub
C) TEMPDB

Page 3/12 Visit our site: https://study2online.com/


MCQ

D) Master
Answer : D
______________________________________________________________________www.study2online.com

15. The DROP DATABASE statement must run in ________ mode?


A) Autocommit
B) Commit
C) Readcommit
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

16. Features provided by ALTER DATABASE statement do not include :


A) Deletes database
B) Modifies file
C) Changes the attributes of a database
D) Changes the database collation
Answer : A
______________________________________________________________________www.study2online.com

17. Point out the correct statement:


A) Database snapshots cannot be modified
B) Database snapshots can be modified
C) A collation name can be specified with the FOR ATTACH or FOR
ATTACH_REBUILD_LOG clauses
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

18. Command used to shrink the size of database is:


A) DBCC SHRINK
B) SHRINKDATABASE
C) DBCC SHRINKDATABASE
D) DBCC SHRINKDB
Answer : C

Page 4/12 Visit our site: https://study2online.com/


MCQ

______________________________________________________________________www.study2online.com

19. Maximum number of filegroups specified for each database is :


A) 32, 667
B) 32, 777
C) 32, 766
D) 32, 767
Answer : D
______________________________________________________________________www.study2online.com

20. When does most ALTER DATABASE statements fail ?


A) Database is in the RESTORING state
B) Database is in the STORING state
C) Database is in the RESTORE state
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

21. Which of the following statement modifies view index ?


A) ALTER INDEX
B) ALTER VIEW INDEX
C) ALTER INDEX_VIEW
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

22. Which of the following index options are added by CREATE INDEX statement ?
A) XML INDEX
B) INCLUDED (column)
C) PARTITION SCHEME
D) ONLINE
Answer : D
______________________________________________________________________www.study2online.com

23. Point out the wrong statement with respect to ALTER INDEX statement :
A) Adds new format for specifying index and table names

Page 5/12 Visit our site: https://study2online.com/


MCQ

B) Adds the index option:MAXDOP


C) Adds the index option:ONLINE
D) None of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

24. Which of the following adds MOVE TO clause ?


A) DROP INDEX
B) ALTER INDEX
C) UPDATE INDEX
D) CREATE INDEX
Answer : A
______________________________________________________________________www.study2online.com

25. Which is a new DDL statement ?


A) DROP ROLES
B) CREATE APPLICATION ROLE
C) CREATE USERS
D) None of the mentioned
Answer : B
______________________________________________________________________www.study2online.com

26. Which is a new DDL statement ?


A) DROP ROLES
B) CREATE APPLICATION ROLE
C) CREATE USERS
D) None of the mentioned
Answer : B
______________________________________________________________________www.study2online.com

27. Which of the following creates a new Microsoft Windows or SQL Server login account ?
A) CREATE LOGIN
B) DROP LOGIN
C) UPDATE LOGIN
D) REMOVE LOGIN
Answer : A

Page 6/12 Visit our site: https://study2online.com/


MCQ

______________________________________________________________________www.study2online.com

28. Statement used to remove a user from the current database is :


A) DROP ROLE
B) DROP USER
C) DROP LOGIN
D) None of the mentioned
Answer : B
______________________________________________________________________www.study2online.com

29. Command used to modify the schema is :


A) ALTER SCHEMA
B) ALTER STRUCTURE
C) ALTER VIEW
D) DBCC SHRINKDB
Answer : A
______________________________________________________________________www.study2online.com

30. Creation of new database role in the current database is made by :


A) CREATE APPLICATION ROLE
B) CREATE ROLE
C) CREATE USER
D) CREATE LOGIN
Answer : B
______________________________________________________________________www.study2online.com

31. Purpose of ALTER CERTIFICATE is :


A) Adds a private key to a certificate
B) Changes the public key of a certificate
C) Removes the certificate from the database
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

32. DDL statements not used for Synonym is :


A) CREATE SYNONYM

Page 7/12 Visit our site: https://study2online.com/


MCQ

B) DROP SYNONYM
C) ALTER SYNONYM
D) None of the mentioned
Answer : C
______________________________________________________________________www.study2online.com

33. Which of the following statement drops the synonym ?


A) DELETE SYNONYM
B) DROP SYNONYM
C) REMOVE SYNONYM
D) None of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

34. Which of the following is proprietary extension of SQL for Microsoft SQL Server ?
A) PL-SQL
B) T-SQL
C) PG-SQL
D) P-SQL
Answer : B
______________________________________________________________________www.study2online.com

35. Applications that can generate Transact-SQL can be :


A) General office productivity applications
B) Applications that use a graphical user interface (GUI) to let users select the tables and
columns from which they want to see data
C) Applications that use general language sentences to determine what data a user wants to see
D) All of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

36. RECEIVE service broker statement applies to which of the versions ?


A) 2000
B) 2005
C) 2008
D) All of the mentioned

Page 8/12 Visit our site: https://study2online.com/


MCQ

Answer : C
______________________________________________________________________www.study2online.com

37. Which of the following Statement ends one side of an existing conversation ?
A) Which of the following Statement ends one side of an existing conversation ?
B) END CONVERSATION TIMER
C) END CONVERSATION
D) GET CONVERSATION GROUP
Answer : B
______________________________________________________________________www.study2online.com

38. Purpose of GET_TRANSMISSION_STATUS is :


A) Returns the status for the first transmission for end side of a conversation
B) Returns the status for the first transmission for one side of a conversation
C) Returns the status for the last transmission for end side of a conversation
D) Returns the status for the last transmission for one side of a conversation
Answer : D
______________________________________________________________________www.study2online.com

39. Which of the following is- a security statement ?


A) ADD SIGNATURE
B) EXECUTE AS
C) SETUSER
D) All of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

40. Purpose of CLOSE MASTER KEY is :


A) Deletes the master key of the current database
B) Closes the private key of the current database
C) Closes the public key of the current database
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

41. Which of the following statement decrypts a symmetric key ?

Page 9/12 Visit our site: https://study2online.com/


MCQ

A) OPEN SYMMETRIC KEY


B) DECRYPT SYMMETRIC KEY
C) CLOSE SYMMETRIC KEY
D) None of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

42. Which of the following language is used for procedural flow in SQL Server ?
A) Flow language
B) Control language
C) Control-of-flow language
D) None of the mentioned
Answer : C
______________________________________________________________________www.study2online.com

43. Which of the following is a control flow keyword ?


A) IF
B) GO
C) GOTO
D) All of the mentioned
Answer : C
______________________________________________________________________www.study2online.com

44. Which of the following two Transact-SQL statements are commonly used with WHILE ?
A) BREAK and CONTINUE
B) BREAK and IF
C) IF and ELSE
D) All of the mentioned
Answer : A
______________________________________________________________________www.study2online.com

45. Which of the following scenario makes use of BEGIN..END keyword redundant ?
A) when an IF statement controls the execution of multiple Transact-SQL statement
B) when an IF statement controls the execution of only one Transact-SQL statement
C) when an IF statement controls the execution of one or more Transact-SQL statement
D) None of the mentioned

Page 10/12 Visit our site: https://study2online.com/


MCQ

Answer : B
______________________________________________________________________www.study2online.com

46. The BEGIN and END statements are used when:


A) A WHILE loop needs to include a block of statements
B) An element of a CASE expression needs to include a block of statements
C) An IF or ELSE clause needs to include a block of statements
D) All of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

47. Which of the following components constitutes use CASE expression ?


A) The primary key name to transform
B) The BEGIN keyword
C) The CASE keyword
D) Where clause defining an alias for the CASE expression
Answer : C
______________________________________________________________________www.study2online.com

48. Variables was added newly to SQL Server version :


A) 2005
B) 2008
C) 2012
D) 2014
Answer : B
______________________________________________________________________www.study2online.com

49. Which of the following keyword is not associated with initialization of variable ?
A) DECLARE
B) SET
C) SELECT
D) All of the mentioned
Answer : D
______________________________________________________________________www.study2online.com

50. Which of the following is a global variable ?

Page 11/12 Visit our site: https://study2online.com/


MCQ

A) @@CPU_BUSY
B) @@CPU_IO
C) @@CPU
D) @@CPU
Answer : A
______________________________________________________________________www.study2online.com

Page 12/12 Visit our site: https://study2online.com/

You might also like