当前位置:MCTS(70-528)题库

问题:

[单选]

You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)
01 Dim dt As New DataTable("Products")
02 dt.Columns.Add(New DataColumn("Price", _ GetType(Decimal)))
03 dt.Columns.Add(New DataColumn("Quantity", _ GetType(Int32)))
04 Dim dc As DataColumn = New DataColumn("Total", _ GetType(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 = "Price * 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.

碘缺乏的主要原因是()。 母亲孕期没吃或吃含碘的食物少。 长期不吃新鲜蔬菜、水果或高烧。 长期腹泻。 吃乳、蛋、肉少。 按服务目的不同分类的文档不包括() 用户文档。 开发文档。 系统分析报告。 管理文档。 简述激励机制的设计。 企业质量负责人负责医疗器械质量管理工作,应当() 独立履行职责。 在企业内部对医疗器械质量管理具有裁决权。 承担相应的质量管理责任。 负责销售管理。 负责储运管理。 安全生产责任事故处理“四不放过”原则是指什么?

You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)
01 Dim dt As New DataTable("Products")
02 dt.Columns.Add(New DataColumn("Price", _ GetType(Decimal)))
03 dt.Columns.Add(New DataColumn("Quantity", _ GetType(Int32)))
04 Dim dc As DataColumn = New DataColumn("Total", _ GetType(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? ()

参考答案:

  参考解析

本题暂无解析

在线 客服