Tag: c sharp

Questions Related to c sharp

  1. It is allocated at compile time

  2. Declaration and initialization is separated

  3. It is allocated at runtime

  4. all of these


Correct Option: C
  1. System.Int8

  2. System.Int16

  3. System.Int32

  4. System.Int64


Correct Option: C

Which of the following is the event that is exposed by the DataTable object?

  1. RowChanged

  2. ColumnChanged

  3. RowChanging

  4. All of above


Correct Option: D
Explanation:

To solve this question, the user needs to have knowledge of the DataTable object and the events that it exposes.

The DataTable object is a part of the ADO.NET framework and represents a table of data in memory. It is used to store and manipulate data retrieved from a database or other data source.

Now, let's go through each option and explain why it is right or wrong:

A. RowChanged: This option is correct. The RowChanged event is exposed by the DataTable object. It is raised when a row in the DataTable has been changed.

B. ColumnChanged: This option is correct. The ColumnChanged event is exposed by the DataTable object. It is raised when a value in a column of the DataTable has been changed.

C. RowChanging: This option is correct. The RowChanging event is exposed by the DataTable object. It is raised before a row in the DataTable is about to be changed.

D. All of the above: This option is correct. All of the events mentioned in options A, B, and C are exposed by the DataTable object. These events provide different points in the data manipulation process where custom logic can be executed.

Therefore, the correct answer is:

The Answer is: D. All of the above