微软MCAD 70-310 实战百题
题目内容

You have a SqlDataReader object named ordersDataReader. This object contains a column named OrderQuantity that has an integer value. This object also contains one row for each order received during the previous week.You need to write code that will process each row in orders Data Reader and pass OrderQuantity to a function named myFunction.Which code segment should you use?

2021-12-25

A.Dim weeklyOrderQuantity As Long = 0 While ordersDataReader.Read()Call myFunction(ordersDataReader("OrderQuantity")) End While

B.Dim weeklyOrderQuantity As Long = 0 While ordersDataReader.NextResuit()Call myFunction(ordersDataReader("OrderQuantity")) End While

C.Dim weeklyOrderQuantity As Long = 0 Dim orderCount As Integer = 0While orderCount < ordersDataReader.FieldCount Call myFunction(ordersDataReader("OrderQuantity")) orderCount += 1 ordersDataReader.Read()End While

D.Dim weeklyOraerQuantity As Long = 0 Dim orderCount As Integer = 0While orderCount < ordersDataReader.FieldCount Call myFunction(ordersDataReader("OrderQuantity")> orderCount += 1 ordersDataReader.NextResult()End While

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端