Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago