Which is/are the method/s of an ADO.NET command object
-
CreateObjRef
-
BeginExecuteNonQuery
-
Prepare
-
All of the above
D
Correct answer
Explanation
SqlCommand inherits CreateObjRef from MarshalByRefObject (base class of all .NET objects), implements BeginExecuteNonQuery for asynchronous query execution, and has Prepare to optimize parameterized commands. All three are valid methods available on a SqlCommand object.