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

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

In ADO.NET, the SqlCommand class provides methods like ExecuteNonQuery (for INSERT, UPDATE, DELETE) and ExecuteScalar (for single-value lookups). ExecuteQuery and ExecuteParameter are not standard ADO.NET command object methods.