Question: Visual programming (choose the correct answer) Given the following C# code: 13 1 Based on the code, the value of g is: int studentGrade =82;
Visual programming (choose the correct answer)


Given the following C# code: 13 1 Based on the code, the value of g is: int studentGrade =82; string g="""; if (studentGrade >= 90) { g="A"); } if (studentGrade >=80) { g="B"; } if (studentGrade >= 70) { g="C"; } if (studentGrade >=60) { { g="D": } 0A CB D 0 C 14 Which one of the following C# codes is correct to 1 view the contents of the student table in the dataGridView SqlConnection conn = new SqlConnection(); conn.Open(); SqlCommand selectCommand = new SqlCommand(); selectCommand.Connection = conn; o selectCommand.CommandText = "select * from Student"; SqlDataAdapter ad = new SqlDataAdapter(selectCommand); DataSet ds = new DataSet(); ad.Fill(ds, "Std"); dataGridView1.DataSource = ds. Tables["Std"]; = SqlConnection conn = new SqlConnection(); conn.Open(); SqlCommand selectCommand = new SqlCommand(); selectCommand.Connection = conn; O selectCommand.CommandText = "select * from Student"; SqlDataAdapter ad = new SqlDataAdapter(selectCommand); DataSet ds = new DataSet(); ad.Fill(ds, "Std"); dataGridView1.DataSource = ds; SqlConnection conn = new SqlConnection(); conn.Open(); SqlCommand selectCommand = new SqlCommand(); selectCommand.Connection = conn; O selectCommand.CommandText = "select * from Student"; " SqlDataAdapter ad = new SqlDataAdapter(selectCommand)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
