当前位置:首页 > 笔试完成
System.out.printIn(“service”); a)get b)post c)service d)service get
46)在Java Web应用程序中,要完成将用户会话中的“counter”计数器的值增加1,下列()是正确的Servlet代码片段. (选择一项)
a) HttpSession session=request.getSession(true);
int ival=session.getAttribute(“counter”);
if(ival===null){ ival=1; }else{
Ival=ival+1; }
Session.setAttribute(“counter”,ival);
b)HttpSession session=request.getSession(true);
Integer ival =(integer)session.getAttribute(“counter”); Session.setAttribute(“counter”,ival+1);
c)HttpSession session=request.getSession(true);
integer ival=(integer)session.getAttribute(“counter”);
if(ival==null){
ival=new Integer(1);
}else{
Ival=new Integer(ival.intValue()+1); }
Session.setAttribute(?counter?,ival);
d)HttpSession session=request.getSession(); int ival=session.getAttribute(“counter”); if(ival==null){ ival=1; }else{
Ival=ival+1; }
Session.setAttribute(“counter”,new integer(ival));
47) 某电子邮箱的左侧菜单如图菜单如图所示,左侧为展开状态,右侧为折叠状态,单击“文件夹”或“邮箱服务”前面的三角箭头在,可以折叠或展开其相应的内容,在菜单变化的过程中整个页面无刷新,使用ASP.NET AJAX的()的控件可以实现此功能。(选择一项)
文件夹 文件夹 收件箱 邮箱服务 草稿箱 记事本
已发送 集邮中心 已删除 随身邮
垃圾邮件 新邮箱伴侣 升级到VIP 邮件服务 记事本 集邮中心 随身邮 新邮箱伴侣 升级到VIP a) Tabs
b) Accordion
c) CollapsiblePanel d) ModalPopup
48)在ASP。NET中,下面关于DataList控件和Repeater控件描述中错误的是()。(选 择一项)
a)这两种数据控件都允许使用模板显示数据 b)这两种控件都是继承WebControl类
c)使用DataList时,可以设定一些属性来进行个性化输出
d)调用这两种控件的DataBind()方法时完成数据与控件的绑定操作 49)第三方软件的CodeSmith是一款非常著名的商业代码生成器。在以下CodeSmith 指令中,正确定义了目标参数的是() (选择二项) a)<%@Property Name=”SourceTable”Type=”SchemaExplorer.TableSchema” Category=”Context”Description=”Souce Table.”%>
b) <%@Property Name=”TargetTable”Type=”SchemaExplorer.TableSchema” Category=”Context”Description=”Target Table.”%>
c)<%@Parameter Name=”SourceTable”Type=”SchemaExplorer.TableSchema” Category=”Context”Description=”Source Table”%>
e) <%@Parameter Name=”SourceTable”Type=”String”Category=”Context”
Description=”Source Table”%>
50)在ASP.NET中,将GridView控件中的记录自动分页为每页5行,应该实施的步骤是() (选择一项) a)设置PageSize属性为4, 并在PageindexChanged事件中设置 CurrentPageindex属性 b)设置 PageSize属性为5, 并在PageindexChange事件中设置CurrentPageindex属性及 执行GridView控件的数据绑定
c)设置AllowPaging 属性为True,设置PageSize属性为5 d)设置AllowPaging 属性为True,设置Pagesetting属性为5
共分享92篇相关文档