选择题:You are creating a DataTable. You use the following code segment to create the DataTable.

  • 题目分类:其他
  • 题目类型:选择题
  • 查看权限:VIP
题目内容:
You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)01 DataTable dt = new DataTable(Products”);02 dt.Columns.Add(new DataColumn(Price”, typeof(decimal)));03 dt.Columns.Add(new DataColumn(Quantity”, typeof(Int32)));04 DataColumn dc = new DataColumn(Total”, typeof(decimal));05 dt.Columns.Add(dc);You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed. What should you do? ()

A. Add the following code segment after line 05. dc.ExtendedProperties["Total"] = "Price * Quantity”;

B. Add the following code segment after line 05. dc.Expression = “Prince * Quantity”;

C. Write an event handler for the DataTable‘s TableNewRow event that updates the row‘s Total.

D. Write an event handler for the DataTable‘s ColumnChanged event that updates the row‘s Total.




参考答案:

如果A病的特异危险度大于B病的特异危险度,那么可以认为( )。

如果A病的特异危险度大于B病的特异危险度,那么可以认为( )。A.暴露于A病的联系比之于B病的联系,

查看答案

社区卫生服务的对象包括( )。

社区卫生服务的对象包括( )。A.健康人群和亚健康人群B.高危人群和重点保健人群C.患者D.医务人员E

查看答案

撤除现场防护,并按规定办理本线封锁和邻线限速()km/h销记手续,必要时根据现场处理情况,重新登记办理本线限速封锁和邻线限速申请。

撤除现场防护,并按规定办理本线封锁和邻线限速()km/h销记手续,必要时根据现场处理情况,重新登记办理本线限速封锁和邻线限速申请。

查看答案

油性皮肤的人经常用化妆品时,会在施用部位形成( )。

油性皮肤的人经常用化妆品时,会在施用部位形成( )。A.变态性接触性皮炎B.刺激性接触性皮炎C.痤疮

查看答案

YouinstallWSUSonaserverthatrunsWindowsServer2008.YouneedtoensuretahtthetrafficbetweentheWSUSadministrativewebsiteandtheserveradministratorscomputerisencrypted.Whatshouldyoudo?()

YouinstallWSUSonaserverthatrunsWindowsServer2008.YouneedtoensuretahtthetrafficbetweentheWSUSadministrativewebsiteandtheserveradministratorscomputerisencrypted.Whatshouldyoudo?()

查看答案