Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago