Sail E0 Webinar

MCQs

Total Questions : 14 | Page 1 of 2 pages
Question 1. RECEIVE service broker statement applies to which of the versions ?
  1.    2000
  2.    2005
  3.    2008
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> 2008


RECEIVE retrieves one or more messages from a queue. Depending on the retention setting for the queue, either removes the message from the queue or updates the status of the message in the queue.


Question 2. Which of the following keyword is not associated with initialization of variable ?
  1.    DECLARE
  2.    SET
  3.    SELECT
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


Variables are declared in the body of a batch or procedure with the DECLARE statement and are assigned values by using either a SET or SELECT statement.


Question 3. Function cannot be used for __________ statement.
  1.    Create
  2.    Drop
  3.    Select
  4.    Insert
 Discuss Question
Answer: Option D. -> Insert


We can't use function to Insert, Update, Delete records in the database table(s).


Question 4. Which of the following statements cannot be included in the definition of a Transact-SQL user-defined function ?
  1.    GET CONVERSATION GROUP
  2.    MOVE CONVERSATION
  3.    RECEIVE
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


Most of the Service broker statements cannot be included in the definition of a Transact-SQL user-defined function.


Question 5. How many types of stored procedures are present in SQL Server ?
  1.    3
  2.    4
  3.    5
  4.    8
 Discuss Question
Answer: Option B. -> 4


SQL Server is packed full of useful system stored procedures there for its own use that you can use as well.


Question 6. How many type of cursor is present in SQL Server ?
  1.    3
  2.    4
  3.    5
  4.    6
 Discuss Question
Answer: Option B. -> 4


SQL Server supports four types of cursor.


Question 7. DML triggers in SQL Server is applicable to :
  1.    Insert
  2.    Update
  3.    Delete
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


In SQL Server we can create triggers on DML statements (like INSERT, UPDATE, and DELETE) and stored procedures that perform DML-like operations.


Question 8. Point out the correct statement :
  1.    Logon triggers are special type of trigger that fire when LOGON event of Sql Server is raised
  2.    DDL triggers are special type of trigger that fire when LOGON event of Sql Server is raised
  3.    DML triggers are special type of trigger that fire when LOGON event of Sql Server is raised
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Logon triggers are special type of trigger that fire when LOGON event of Sql Server is raised


Logon event is raised when a user session is being established with Sql Server that is made after the authentication phase finishes.


Question 9. Point out the wrong statement :
  1.    The @stmt parameter in sp_executesql is a Unicode string containing valid SQL commands
  2.    The input type @Type is passed as the first parameter to sp_executesql
  3.    We can specify the parameters for both input and output in sp_executesql
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> The input type @Type is passed as the first parameter to sp_executesql


The output type @retType is passed as the second parameter to sp_executesql.


Question 10. Which of the following statements can be checked for Errors ?
  1.    CREATE
  2.    DROP
  3.    DELETE
  4.    INSERT
 Discuss Question
Answer: Option D. -> INSERT


DML statements can be checked for handling errors.


Latest Videos

Latest Test Papers