Multiple choice technology programming languages

Which of the following are the valid method of command object

  1. ExecuteNonQuery & ExecuteScalar

  2. ExecuteQuery & ExecuteScalar

  3. ExecuteParameter

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Command object in ADO.NET has ExecuteNonQuery for INSERT/UPDATE/DELETE (returns affected rows), ExecuteScalar for single value queries, and ExecuteReader for multiple rows. ExecuteQuery and ExecuteParameter are not valid methods.