Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started