The method used to get data from HTML Table is

  1. GetData(Row,Col)

  2. GetRowValue(Rowid,Colname)

  3. GetCellData (Row,Col)

  4. GetRowValue(Row,Col)


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) GetData(Row,Col) - This option is incorrect because there is no standard method called "GetData" in HTML to retrieve data from a table.

Option B) GetRowValue(Rowid,Colname) - This option is incorrect because it suggests getting the value of a specific row using the row ID and column name, but there is no standard method called "GetRowValue" in HTML to retrieve data from a table.

Option C) GetCellData (Row,Col) - This option is correct because the standard method in HTML to retrieve data from a table is "GetCellData". It takes the row and column index as parameters and returns the data in the specified cell.

Option D) GetRowValue(Row,Col) - This option is incorrect because it suggests getting the value of a specific row using the row index and column index, but there is no standard method called "GetRowValue" in HTML to retrieve data from a table.

The correct answer is Option C) GetCellData (Row,Col). This option is correct because it represents the standard method used to retrieve data from an HTML table by specifying the row and column index.

Find more quizzes: