JavaWeb综合笔试题

内容发布更新时间 : 2024/5/2 10:30:45星期一 下面是文章的全部内容请认真阅读。

a) b) c) d)

Oracle由数据文件组成

Oracle表空间是Oracle数据库逻辑结构中一个重要的组件

Oracle表空间包括数据文件和控制文件 Oracle一个表空间只能包含一个数据文件

36有如下HTML代码片段:

《侏罗纪世界》这部电影很不错,我很喜欢!

使用jQuery实现单击“发表评论”后,将textarea元素中的文字显示在div中,并将textarea元素中内容清空,则下列代码正确的是()。(选择一项) a) $(\

var$txt=$(\var$msgList=$(\$txt.append($msgList); $(\})

b) $(\

var$txt=$(\var$msgList=$(\$msgList.append($txt); $(\})

--WORD格式--可编辑--

c)

d)

$(\var$txt=$(\var$msgList=$(\$msgList.append(\$(\})

$(\var$txt=$(\var$msgList=$(\$msgList.append($txt); $(\})

37在MySQL中,现有学生信息表student,包含) studentID,sname(学生姓名)。下面编写查询所有

姓“李”学生的学生编号、学生姓名的SQL正确的是()。(选择一项) a) select studentID,sname from student whe

re sname='李'

b) select studentID,sname from student whe

re sname like'%李'

c) select studentID,sname from student whe

re sname='李%'

d) select studentID,sname from student whe

re sname='%李%'

--WORD格式--可编辑--

38在网页中有如下HTML代码,下面选项()可以实现)

标签中无论字体多大始终首行缩进二个汉字。

(选择二项) a) .apple{text-indent:2em;} b) .apple{text-indent:30px;} c) p{text-indent:4em;} d) p{text-indent:2em;}

39在MySQL中,现有分数表scores设计如下:) courseID(课程编号)studentID(学生编号)score(分

数)另有一个学生信息表student,包含studentID,sname(学生姓名)。已知学生可能具有多门不及格的课程,下面编写查询所有不及格学生的学生编号、学生姓名的SQL正确的是()。(选择一项) a) select studentID,sname from student whe

re exists (select studentID from

scores where score<60 and studentID = student .studentID)

b) select studentID,sname from student whe

re exists (select studentID from

scoreswhere score>60andstudentID=student .studentID)

c) select studentID,sname from student whe

re studentID = (select studentID from scoreswhere score<60andstudentID=student .studentID)

--WORD格式--可编辑--

d)

select studentID,sname from student where studentID in (select studentID from scores where score<60 and studentID=student .studentID)

40在进行Web应用开发时,使用数据源和连接池可以实) 现数据库连接的优化,以下选项中能够正确实现数据

源连接的是()。(选择一项) a) Context source=new InitalContext();

Connection conn=source.getConnection();

b) DataSource source=new DataSource();

Connection conn=source.getConnection();

c) Context ctx=new InitialContext();

DataSource

ds=(DataSource)ctx.lookup(\v/数据源名称\

Connectionconn=ds.getConnection();

d) Contextctx=newInitalContext();

DataSourceds=ctx.lookup(\数据源名称\Connectionconn=ds.getConnection();

41在doLogin.jsp中,实现了用户登录的验证,如果用) 户输入用户名是“admin”,密码是“0000”,则验

证通过,并通过“session.setAttribute(\名存储到session中,现要创建loginControl.jsp文件用来实现权限控制,以下选项()可以填入loginControl.jsp实现此功能。(选择一项)

--WORD格式--可编辑--

a)

b)

c)

d)

<%

String

login=session.getAttribute(\

if(login==null||!\ response.sendRedirect(\%> <%

Stringlogin=(String)session.getAttribute(\

if(login==null||!\ response.sendRedirect(\%> <%

String

login=(String)session.getAttribute(\ if(login==null||!\ response.sendRedirect(\%> <%

String

login=(String)request.getAttribute(\ if(login==null||!\ response.sendRedirect(\%>

42在HTML中,HTML最基本的语法结构是什么()(选) 择一项)

--WORD格式--可编辑--

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi