NIIT认证 百分网手机站

NIIT认证预测试题

时间:2017-10-13 12:03:51 NIIT认证 我要投稿

2016年NIIT认证预测试题

  C1 jdbc中,那个类可以执行一个存储过程?

  1) PreparedStatement

  2) Statement

  3) CallableStatement

  4) Connection

  B2 以下那一个不是Page命令中的有效属性?

  1) import

  2) export

  3) session

  4) errorPage

  C3 以下方法中哪一个把被约束属性的值中的变化通知给所有的listener beans ?

  1) void addPropertyChangeListener()

  2) PropertyChangeSupport()

  3) void firePropertyChange()

  4) removePropertyChangeListener()

  C4 下列哪个方法不是HttpServlet类的方法?

  1) Get()

  2) Post()

  3) Action()

  4) Put()

  C5 什么是J2EE应用文件的扩展?

  1) .war

  2) .js

  3) .ear

  4) .jar

  A6哪种应用类型在分离的层次上处理表示逻辑、业务逻辑、及数据库的可交互性?

  1) 分布应用

  2) 以服务器为中心的应用

  3) 单块应用

  4) 客户/服务器应用

  C7 使用哪个命令来生成 Stub和Skeleton类?

  1) javac

  2) java

  3) rmic

  4) rmi

  B8 用以下方法中哪一个把目标应用作为bean 激活的定制事件的监听者(listener)注册?

  1) void addPropertyChangeListener()

  2) void addXXXListener()

  3) void firePropertyChange()

  4) removeXXXListener()

  9 B考察以下陈述:

  陈述 A: 带有bean-managed 持久性的实体bean 的代码包含访问数据库的必要的SQL语句。

  陈述B: 带有container -managed 持久性的实体bean 的代码包含访问数据库的必要的SQL语句。

  关于这些陈述以下中哪一个为真?

  1) 这二个陈述 都为真。

  2) 陈述A为真,陈述 B为假。

  3) 这二个陈述 都为假。

  4) 陈述A假,陈述 B为真。

  10 考察以下server类:

  server类的代码:

  import java.rmi.*;

  import java.rmi.server.UnicastRemoteObject;

  import java.sql.*;

  import java.util.*;

  public class ConvertionServerImpl extends UnicastRemoteObject

  implements ConvertionServer

  {

  public ConvertionServerImpl() throws RemoteException

  {

  super();

  }

  public int convert(int amount) throws RemoteException

  {

  return amount*40;

  }

  public static void main(String args[])

  {

  System.setSecurityManager(new RMISecurityManager());

  try

  {

  ConvertionServerImpl instance = new ConvertionServerImpl();

  Naming.rebind("ConvertionServer",instance);

  System.out.println("Server Registered");

  }

  catch(Exception e)

  {

  System.err.println(e);

  }

  }

  }

  A以下中哪个是远程接口的正确代码?

  1) import java.rmi.*;

  import java.util.*;

  public interface ConvertionServer extends Remote

  {

  int convert(int amount) throws RemoteException;

  }

  2) import java.util.*;

  public interface ConvertionServer extends Remote

  {

  int convert(String amount) throws RemoteException;

  }

  3) import java.rmi.*;

  import java.util.*;

  public interface ConvertionServer extends Remote

  {

  convert(String amount) throws RemoteException;

  }

  4) import java.rmi.*;

  import java.util.*;

  public interface ConvertionServer extends Remote

  {

  int convert(String amount) throws RemoteException;

  }

  A11 servlet函数中哪个方法作为请求的调度程序(dispatcher)?

  1) service()

  2) init()

  3) ServletResponse()

  4) ServletRequest()

  C12 BDK 的以下窗口中哪一个允许你设置“Our Button” bean 的选项?

  1) ToolBox window

  2) BeanBox window

  3) Properties window

  4) Method Tracer window

  C13 taglib命令的属性是什么?

  1) Name and prefix

  2) uri and value

  3) uri and prefix

  4) Name and value

  C14 公司要你创建一个应用模块,它要求用户打入州的名,且它必须显示该州的区域地图。你将建议开发小组创建什么类型的.企业 bean?

  1) Container-managed persistence

  2) Stateful session bean

  3) Stateless session bean

  4) Bean-managed persistence

  D15 银行事务由六个步骤组成。如果事务中前四步执行而第五步失败,那么会发生什么?

  1) 当前步骤的作用被废除。

  2) 前一步骤的作用被废除。

  3) 第一步的作用被废除。.

  4) 所有前面步骤的作用被废除。