Sail E0 Webinar

MCQs

Total Questions : 14 | Page 2 of 2 pages
Question 11. Which of the following has support for transaction ?
  1.    sp_monitor
  2.    sp_bindsession
  3.    sp_status
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> sp_bindsession


sp_getbindtoken also can be used for transactions.


Question 12. Which of the following is a control flow keyword ?
  1.    IF
  2.    GO
  3.    GOTO
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> GOTO


The Transact-SQL statement or statements that follow GOTO are skipped and processing continues at the label.


Question 13. Data return using output parameter is :
  1.    Return codes, which are always an integer value
  2.    A global cursor that can be referenced outside the stored procedure
  3.    A single cursor that can be referenced inside the stored procedure
  4.    None of the mentioned
 Discuss Question
Answer: Option D. -> None of the mentioned


Output parameters, which can return either data (such as an integer or character value) or a cursor variable (cursors are result sets that can be retrieved one row at a time).


Question 14. Which of the following script is example of SQL injection attack ?
  1.    var Shipcity;ShipCity = Request.form ("ShipCity");var SQL = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";
  2.    var Shipcity;ShipCity = Request.form ("ShipCity");
  3.    var Shipcity;var SQL = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> var Shipcity;ShipCity = Request.form ("ShipCity");var SQL = "select * from OrdersTable where ShipCity = '" + ShipCity + "'";


The script builds an SQL query by concatenating hard-coded strings together with a string entered by the user.


Latest Videos

Latest Test Papers