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

问题:

[多选] You are creating a Web Form. You write the following code segment to create a SqlCommand object. SqlConnection conn = new.SqlConnection(connString); conn.Open(); SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = “select cont(*) from Customers”; You need to display the number of customers in the Customers table. Which two code segments can you use to achieve this goal? ()

A . object customerCount = cmd.ExecuteScalar();lblCompanyName.Text = customerCount.ToString();
B . int customerCount = cmd.ExecuteNonQuery();lblCompanyName.Text = customerCount.ToString();
C . SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr[0].ToString();
D . SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr.ToString()

结构化系统开发方法的基本思想是:采用结构化思想、系统工程的观点和方法,按照用户至上的原则,先将整个系统作为一个大模块,自顶向下进行模块分解,然后,再()按照系统的结构将各个模块进行组合,最终实现系统的开发。 自顶向下。 自左而右。 自下而上。 自前而后。 直接工程费是指施工过程中耗费的构成工程实体的各项费用,包括哪些费用? 软件缺陷是指软件未达到软件产品需求说明书中指明的要求。 IPSec的运行模式可分为()和()两种。 什么是开发者养护和污染者治理原则?该原则在我国环保法中有何具体适用? You are creating a Web Form. You write the following code segment to create a SqlCommand object. SqlConnection conn = new.SqlConnection(connString); conn.Open(); SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = “select cont(*) from Customers”; You need to display the number of customers in the Customers table. Which two code segments can you use to achieve this goal? ()
参考答案:

  参考解析

本题暂无解析

在线 客服