上海第二工业大学web程序设计期末考试题库.pdfVIP

  • 1
  • 0
  • 约2.91万字
  • 约 18页
  • 2023-06-09 发布于河南
  • 举报

上海第二工业大学web程序设计期末考试题库.pdf

上海第二工业大学web程序设计期末考试题库--第1页 一、选择题 1、 .NET 的三层结构里,下面的层之间的引用关系中,( )是正确。 a) 表示层引用数据访问层辑层,业务逻辑层引用数据访问层。 b) 数据访问层引用业务逻辑层 c) 业务逻辑层引用表示层 d) 业务逻辑层引用数据访问层 2、 .NET 框架下,为 Command 对象指定存储过程名称使用的是( )属性。 a) CommandText b) CommandType c) CommandValue d) CommandParameter a 3、 ASP.NET 页面 Default.aspx 中有如下代码: asp:DropDownList ID=ddlCity runat=server asp:ListItem Text=北京市 Value=0/asp:ListItem asp:ListItem Text=天津市 Value=0/asp:ListItem /asp:DropDownList 以下代码可以实现在下拉列表最前面添加一项“请选择”的是( )。 a) Item newItem = new Item( “请选选择”, ””); this.dddlCity.Items.Insert(0, newIItem); b) ListIttem newItem = new ListItemm( “请选择”, ””); this.dddlCity.Items.Insert(0, newIItem); c) ListIttem newItem = new ListItemm( “请选择”, ””); this.dddlCity.Items.AAdd(0, newIteem); d) Item newItem = neew Item( “请选选择”, ””); this.dddlCity.Items.AAdd(newItem); 批注: DropDownList 中的每一项是一个 ListItem 对象,要插入到第一项,应该使 用 Insert 方法 b 4 、 ASP.NET 中,以下关于连接字符串配置的代码正确的是( ) a) connectionStrings add id=BookShop connectionString=Data Source=.;Initial Catalog=BookShopDB;User ID=sa;Password=123/ /connectionStrings b) connectionStrings add name=BookShop connectionString=Data Source=.;Initial Catalog=BookShopDB;User ID=sa;Password=123/ /connectionStrings c) configuration add id=BookShop connectionString=Data Source=.;Initial Catalog=BookShopDB;User ID=sa;Password=123/ /configuration 上海第二工业大学web程序设计期末考试题库--第1页 上海第二工业大学web程序设计期末考试题库--第2页 d) configuration

文档评论(0)

1亿VIP精品文档

相关文档