Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Visual programming (choose the correct answer) 7 1 Given the following C# code. Age is class Program { static void Main() { Console.WriteLine(Hello, World!); }
Visual programming (choose the correct answer)7 1 Given the following C# code. Age is class Program { static void Main() { Console.WriteLine("Hello, World!"); } public int Age { } public int CalculateGPA() { } } O Public method Private property O Public property O Private method 8 Given the following piece of C# code: 1 SqlCommand command = new SqlCommand(); command.Connection = conn; DataSet ds = new DataSet(); Which one of the following can be used as a remaining part to display the selected data in a dataGridView control. selectCommand.CommandText = "update Student set Address='Aqaba' where ID-1009"; SqlDataAdapter ad = new SqlDataAdapter(selectCommand); DataSet ds = new DataSet(); ad.Fill(ds, "Std"); dataGridView1.DataSource = ds.Tables["Std"); command.CommandText = "select ID from Student"; SqlDataAdapter dataadapter = new SqlDataAdapter(command); dataadapter.Fill(ds, "St"); dataGridView1.DataSource = ds. Tables["St"); command.CommandText = "select ID from Student"; SqlDataAdapter dataadapter = new SqlDataAdapter(command); dataadapter.Fill(ds, "St"); dataGridView1.DataSource = ds
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