Multiple choice technology programming languages

Which is/are the method/s of an ADO.NET command object

  1. CreateObjRef

  2. BeginExecuteNonQuery

  3. Prepare

  4. All of the above

Reveal answer Fill a bubble to check yourself
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.