Задан следующий код: System.Web.UI.WebControls.Table table = new System.Web.UI.WebControls.Table();form1.Controls.Add(table);table.BorderWidth = 1;for (int row = 0; row < 3; row++){ TableRow tr = new TableRow(); table.Rows.Add(tr); for (int col = 0; col < 5; col++) { TableCell tc = new TableCell(); tr.Cells.Add(tc); tc.Text = string.Format("{{{0},{1}}}",row + 1, col + 1); tc.BorderWidth = 1; if (row % 2 == 0) tc.BackColor = System.Drawing.Color.Moccasin; else tc.BackColor = System.Drawing.Color.PowderBlue; }}
Сколько столбцов будет содержать таблица table?
(Отметьте один правильный вариант ответа.)
Варианты ответа
4
5(Верный ответ)
2
6
3