楼主: tigersjtu

Websphere 285试题

[复制链接]
论坛徽章:
0
31#
 楼主| 发表于 2005-1-14 01:38 | 只看该作者
30、        When configuring a data source, which of the following MUST be supplied prior to starting the server?(Select 2)
A)        Description
B)        Userid
C)        Password
D)        Name
E)        JNDI name
Answer:         D,E

使用道具 举报

回复
论坛徽章:
0
32#
 楼主| 发表于 2005-1-14 01:38 | 只看该作者
31、        A Java application is ending unexpectedly without any error messages. To determine the problem, an effective course of action would be to:
A)        Enclose the main() method in a try/catch block.
B)        Set a breakpoint at the end of the program, it will stop the program just before it exits.
C)        Set an uncaught Java Exception breakpoint on java.lang.Exception.
D)        Set breakpoints at the beginning of each method and single step until the problem is found.
Answer:         D

使用道具 举报

回复
论坛徽章:
0
33#
 楼主| 发表于 2005-1-14 01:38 | 只看该作者
32、        A developer has written code for a class which contains unqualified and fully-qualified class references. The developer brings up the context menu in the editor and chooses Source -> Organize Imports. What is the result, assuming no import conflicts?
A)        Import statements are added to resolve all class references. Fully-qualified references have the full path removed because they are no longer needed.
B)        Import statements are added to resolve all class references. Previously fully-qualified references remain unchanged.
C)        Import age generated for the class references within scope of the current cursor position only.
D)        No imports are generated, since the developer must select the class references to add imports for them.
Answer:         A

使用道具 举报

回复
论坛徽章:
0
34#
 楼主| 发表于 2005-1-14 01:39 | 只看该作者
33、        A developer modifies a JSP and saves the changes. What step MUST be performed so that the changes take effect and the new results are displayed?
A)        Restart the server
B)        Clear the local JSP cache
C)        Recompile the JSP
D)        Click the Refresh or Reload button on the browser
Answer:         C

使用道具 举报

回复
论坛徽章:
0
35#
 楼主| 发表于 2005-1-14 01:39 | 只看该作者
34、        A developer sets a breakpoint in a Java class and starts the server in debug mode. However, the thread does not suspend when it reaches the breakpoint which is now indicated with a white sphere. What BEST explains why the thread did not suspend?
A)        The breakpoint has been removed
B)        The breakpoint is enabled, but the server was not configured correctly
C)        The class has not been installed in the JVM
D)        The breakpoint is disabled
Answer:         D

使用道具 举报

回复
论坛徽章:
0
36#
 楼主| 发表于 2005-1-14 01:39 | 只看该作者
35、        ??A developer is debugging a program and is stopped at a breakpoint. The developer needs to examine the contents of a complex variable. The BEST way to drill down to see the values of the contained types is to:
A)        Hover the cursor over the variable name to see its value
B)        Select the variable and from its context menu select “Inspect”.
C)        Select the variable and from its context menu select “Display”.
D)        Select the variable on the Variables view and double click.
Answer:         B

使用道具 举报

回复
论坛徽章:
0
37#
 楼主| 发表于 2005-1-14 01:39 | 只看该作者
36、        A developer has placed a breakpoint in a JSP source file. During execution, the application is NOT suspended by the debugger. What is the MOST likely problem?
A)        The breakpoint was placed on an HTML tag.
B)        The server was not started in debug mode.
C)        Generate debug information when compiling JSPs is not checked in the server config.
D)        The breakpoint is enabled, but the JSP cannot be compiled.
Answer:         B

使用道具 举报

回复
论坛徽章:
0
38#
 楼主| 发表于 2005-1-14 01:40 | 只看该作者
37、        A developer has defined class Dog in package com.myco.pets. The developer just created a new Scrapbook page. While evaluating the following linesog dog=new Dog(3, “Shadow”);
           dog.setAge(5);
the developer gets the following message: “Dog cannot be resolved or is not a type”. How can the developer resolve this problem?
A)        Create the Srapbook page in the com.myco.pets package
B)        Use the Set Imports menu choice from the scrapbook’s context menu, and add the com.myco.pets package
C)        Add an import statement before creating the new Dog (import com.myco.pets.Dog
D)        Before evaluating the code, select the com.myco.pets package on the Navigator view
Answer:         B

使用道具 举报

回复
论坛徽章:
0
39#
 楼主| 发表于 2005-1-14 01:40 | 只看该作者
38、        A developer is stopped at a breakpoint and needs to examine the value of a variable. However, the developer cannot find the variable in the Variables view. A possible reason for this is that variable is:
A)        Out of scope
B)        In scope
C)        An unknown type
D)        Misspelled
Answer:         A

使用道具 举报

回复
论坛徽章:
0
40#
 楼主| 发表于 2005-1-14 01:40 | 只看该作者
39、        The list “a through c” below represents different function keys. The list “1 through 3” represents different stepping functions of the debugger.
a) F5    1) Step Over
b) F6    2) Step Into
c) F8    3) Resume
Which of the following choices correctly matches each function key with the appropriate stepping function?
A)        a1,b2,c3
B)        a2,b1,c3
C)        a1,b3,c2
D)        a3,b2,c1
Answer:         B

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表