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

  • 0
  • 0
  • 约3.45万字
  • 约 34页
  • 2023-06-08 发布于河南
  • 举报

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

上海第二工业大学web程序设计期末考试题库--第1页 一、选择题 1、在 三层结构里,下面层之间引用关系中,( )是正确。 a) 表示层引用数据访问层辑层,业务逻辑层引用数据访问层。 b) 数据访问层引用业务逻辑层 c) 业务逻辑层引用表示层 d) 业务逻辑层引用数据访问层 2、在 框架下,为 Command 对象指定存储过程名称使用是( ) 属性。 a) CommandText b) CommandTyp c) CommandValu d) CommandParameter a 3、在 ASP 页面 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( “请选选择”,””); 第 1 页 上海第二工业大学web程序设计期末考试题库--第1页 上海第二工业大学web程序设计期末考试题库--第2页 this. lCity.Items.Insert(0, newIItem); b) ListIttem newItem = new ListItemm( “请选择”,””); this. lCity.Items.Insert(0, newIItem); c) ListIttem newItem = new ListItemm( “请选择”,””); this. lCity.Items.AA (0, newIteem); d) Item newItem = neew Item( “请选选择”,””); this. lCity.Items.AA (newItem); 批注: DropDownList 中每一项是一个 ListItem 对象,要插入到第 一项,应该使用 Insert 方法 b 4、在 ASP 中,以下关于连接字符串配置代码正确是( ) a) connectionStrings a id=BookShop connectionString=Data Sourc e=.;Initial Catalog=BookShopDB;U ser ID=sa;Password=123/ /connectionStrings b) connectionStrings a name=BookShop connectionString=Data Source=.;Initial Catalog=BookShopDB;User ID=sa;Password=123/ /connectionStrings c) co

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档