If you want to add the current date to the column of "Date" in Table1, which of the following code is correct:
A. |
Dim dr As New Row = Table1.NewRow dr("Date") = Nowadys.ToShortDateString |
|
B. |
Dim dr As DataRow = Table1.NewRow dr("Date") = Now.ToLongDateString |
|
C. |
Dim dr As DataRow = Table1.NewRow dr("Date") = Current.ToShortDateString |
|
D. |
Dim dr As DataRow = Table1.Row dr("Date") = Present.ToLongDateString |
What's the meaning of "1" in the following line of code:
.Item("AvgBooks") = FormatNumber(.Item("Books") / .Item("Number"), 1)
A. |
Assign the value of Item("AvgBooks") to the first column. |
|
B. |
One digit after the decimal value |
|
C. |
To add 1 to the current value |
|
D. |
This auto-increment column will start from 1 |
Which control do we use to display a chart?
A. |
Chart |
|
B. |
Chart Table |
|
C. |
Chart Image |
|
D. |
GridView |
If you have a datatable (Table1) with a column called “StudentName”, then the first row of the Table1 in the column of "StudentName" can be referred to as:
A. |
Table1.rows(1).columns(“StudentName”) |
|
B. |
Table1.rows(0).columns(“StudentName”) |
|
C. |
Table1.rows(0).items(“StudentName”) |
|
D. |
Table1.rows(1).items(“StudentName”) |
Which command can help us retrieve data into datatables?
A. |
Adapter.Fill() |
|
B. |
DataAdapter.Fill() |
|
C. |
DataAdapter.Add() |
|
D. |
Adapter.Add() |
If you have a datatable (Table1) with a column called “StudentName”, then the first row of the Table1 in the column of "StudentName" can be referred to as:
Answer: B.Table1.rows(0).columns(“StudentName”)
Which command can help us retrieve data into datatables?
Answer: B.DataAdapter.Fill()
DataAdapter.Fill Method
The Fill method retrieves rows from the data source using the SELECT statement specified by an associated SelectCommand property
I was only sure about two questions.
If you have any doubts, leave a comment below and I'll help you
out.
Get Answers For Free
Most questions answered within 1 hours.