14. 如图,在一个 ASPX页面中,有四个RadioButton控件,他们的HTML 代码如下,在图示状态下,当用户单击足球RadioButton控件后,下列说法正确的是() 
       <asp:RadioButton id= “RadioButton1”groupName= “bigBall”runat= “server”
       Text= “篮球”></asp:RadioButton>
<asp:RadioButton id= “RadioButton2”groupName= “bigBall”runat= “server”
       Text= “足球”></asp:RadioButton>
       <asp:RadioButton id= “RadioButton3”groupName= “littleBall”runat= “server”
       Text= “乒乓球”></asp:RadioButton>
   <asp:RadioButton id= “RadioButton4”groupName= “littleBall”runat= “server”
       Text= “羽毛球”></asp:RadioButton>  (选择一项)    
       ()  篮球     ()足球
       ()  乒乓球   ()羽毛球
a) 篮球RadioButton控件的Checked属性变为False
b) 乒乓球RadioButton控件的Checked属性变为False
c) 羽毛球RadioButton控件的Checked属性变为Ture
d) 篮球RadioButton控件的Checked属性变为Ture
15.在ASP.NET中,有一个ASPX页面的部分代码如下,当用户单击Button1按钮后,下列说法正确的是()。(选择一项)
Public class CityBrower:System.Web.UI.Page{
Protected System. Web.UI.WebControls.Button Button1
String name= “Eduask1.0”;
Private void Page-Load(object sender,System.EventArgs e){
    if(!this.IsPostBack)
         name= “Eduask2.0”;
    else
         name= “Eduask3.0”
}
private void Button1-Click(object sender,System.EventArgs e){
    Response.Write(nane);
}
a) 在页面中输出的文本“Eduask3.0”
b) 在页面中输出的文本“Eduask2.0”
c) 在页面中输出的文本“ACCP1.0”
d)  在页面不输出的任何文本
16.如图,是ASP.NET中的一个DropDownList控件,已知该控件的AutoPostBack属性,EnableViewState属性都为TRUE,该控件所在的页面的部分代码如下,在图示状态下,用户单击关羽项后,在页面中输出的结果是()。(选择一项)
   protected System.Web.UI.WebControls.DropDownList DropDownList1;
   protected System.Web.UI.WebControls.Button Button1;
   string name= “诸葛亮”;
   private void Page-Load(object sender,System.EventArgs e){
       if(!this.IsPostBack)}
,           string []names=new string[]{ “张飞”, “关羽”, “刘备”};
            this.DropDownList1.DateSource=names;
            this.DateBind();
       }
}
private void DropDownList1-SelectedIndexChanged(object sender,
System.EventArgs e){
    If(this.DropDownList1.SelectedItem.Text!=null)}
        name=this.DropDownList1SelectedItem.Text;
}
Response.Write(name);
}
a) 诸葛亮
b) 张飞
c) 关羽
d) 刘备
17.  在ASP.NET中,有一个高考分数线查询的网站,各个省份的分数线都存放在一个表中,因此各个省份的考生查询分数线时,通过选择自己的省份来查询录取分数线。程序员设计了 两个页面,在第一个页面中用一个DropDownList控件来绑定各个省份,在第二个页面添加一个DateGrid控件,用来根据第一个页面传递过来的Province参加显示对应省份的录取分数线。考虑到同一个省份的考生特别多,因此同时查看录取分数线的考生比较多,为了减轻服务器的负担,程序员启用页面缓存,下列对两个页面OutputCache指令声明合理的是()
(选择二项)
a) 第一个页面的OutputCache指令:<%@OutputCache duration=120VaryByParam=none%>
b) 第一个页面的OutputCache指令:<%@OutputCache duration=100VaryByParam=none%>
c) 第一个页面的OutputCache指令:<%@OutputCache duration=100VaryByParam=Province %>
d) 第一个页面的OutputCache指令:<%@OutputCache duration=100VaryByParam= Province %>18. 要在ASP.NET页面中显示服务器的计算机名.正确的代码为().(选择一项)
a) Response.Write(Server.IPAddress)
b) Response.Write(Server.MachineName)
c) Response.Write(Application.IPAddress)
d) Response.Write(Application.MachineName)
19.  ASP.NET中,下列关于Response,Request对象的说法错误的是().(选择一项)
a) Request用于检索重浏览器想服务器发送请求中的信息
b) Response用于将数据从服务器发送到浏览器
c) Response对象的Redirect方法用于将客户端重定向到方法指定的页面
d) Request对象的Write方法用于在客户端输出信息
20. 在ASP,NET中,下列代码在页面中的输出结果是().(选择一项)
XmIDocument xd = new XmIDocument();
Xd.LoadXml(“<Person><name>诸葛亮</name></Person>”);
XmIAttribute xa = xd.CreateAttribute(“Sex”);
Xa.Value=“男”;
Xd.DocumentElement.Attributes.Append(xa);
Respones.Write(Server.HtemlEncode(xd.DocumentElement.OuterXml));
a) <Person><name></name></Person><Sex></Sex>
b) <Person><name>诸葛亮</name></Person><Sex>男</Sex>
c) <Person><name>诸葛亮</name><Sex>男</Sex></Person>
    d) <Person Sex=”男><name>诸葛亮</name></Person>21.  在ASP。NET的一个ASPX页面中,程序员采用CustomValidator控件对用来数日兴趣的TextBox控件进行了验证,验证的事件处理程序如下,则在TextBox控件中输入合法的是()。(选择二项)
Private void CustomValidator1_ServerValidate(object source,
System.Web.UI.WebControls.ServerValidateEventArgs args)
{
     string[]NoValids=new string[]{“下”,“玩”,“打”};
     string[]words=args.Value.Split(‘│’);
     if(words.Length!=3)
           args.IsValid=false;
     else
     {‘
          foreach(string ws in words) 
          {
               foreach(string ns in NoValids)
               {
                   If(ws==ns)
                   {
                       args.IsValid=false;
                       returm;
                     }
                 }
             }
         }
 }a) 下棋、打球、玩牌
b) 象棋│乒乓球│玩
c) 下象棋│打乒乓球│玩足球
d) 象棋│乒乓球│游泳

解决方案 »

  1.   

    为啥不自己做成ASPX。然后自己测试看看是什么结果?
      

  2.   

    c) 在页面中输出的文本“ACCP1.0” 
    我估计是北大青鸟的学员
      

  3.   

    a a c c b d d a
      

  4.   

    据说很多用人单位不怎么看得上北大青鸟的第2踢,前面赋值是变量name,Button1的事件中是变量nane,这是脑筋急转弯么?如果确定一个是name,一个是nane的话,应该是答案d,什么也不显示