Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of

题目

Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.  Which pattern can the developer use to solve this problem?()

  • A、 Transfer Object
  • B、 Service Locator
  • C、 Intercepting Filter
  • D、 Business Delegate

相似考题
参考答案和解析
正确答案:D
更多“Squeaky Beans Inc.&en”相关问题
  • 第1题:

    Section B (18 marks)

    Directions: For each blank in the following passage there are four words or phrases marked A, B, C and D. Fill in each blank with the word or phrase that best fits the context.

    Behind our house is the start of a fascinating trail (小径). This trail is one of the old roads that wind through untold miles of forest. My 36 , Beans, and I walk the trail frequently. Normally, Beans sniffs alongside the trail to follow the smell of a deer track or 37 some cause known only to him.

    Beans is a white dog, quite handsome and very 38 . He not only understands what

    we tell him, but also often makes sounds as if he were trying to 39 back.

    One morning, we took a different route, which led us to an unfamiliar trail. I was sure this trail would eventually lead us to our familiar 40 . But, no. We seemed to be far off course. After two hours, I suddenly realized that Beans probably 41 the way home. So I urged, "Beans, take me home." He ran down a new trail. But it merely led to an intersection (岔道口) of trails.

    Soon it became 42 that we were getting nowhere. I began to picture the rest of the day in the 43 , without food or drink. We had walked about ten miles. But Beans seemed totally 44 . The sniffing and exploring was going well for him.

    Finally, we 45 a crossroad near a highway. Lady Luck suggested I should turn left. We did and 46 reached a cottage beside a field. I knocked on the door and explained my situation to an old man. He laughed and then drove us home.

    Since our adventure, I 47 that Beans probably knew all along how to get home.

    He was just having too much fan exploring new trails.

    36______

    A. deer

    B. dog

    C. lady

    D. man


    正确答案:B

  • 第2题:

    My I have two ______ instead of beans, please?

    A、corn's ear

    B、corn ears

    C、ear of corns

    D、ears of corn


    参考答案:D

  • 第3题:

    What is NOT mentioned as a part of the chocolate production process in Valbonne?

    A.Cocoa beans are ground
    B.Chocolate is packaged
    C.Chocolate is pressed
    D.Cocoa beans are roasted

    答案:B
    解析:
    从第二封邮件细节中可以找出来。

  • 第4题:

    在J2EE中,对于我们自己设计的Bean,应该()。  

    • A、一定要继承java.beans.Beans;
    • B、一定要实Runnable接口
    • C、一定要继承java.lang.Thead类
    • D、可以不继承java.beans.Beans;

    正确答案:D

  • 第5题:

    菠菜泥的英文为()

    • A、MashedPotatoes
    • B、Boiled Spinach
    • C、Mashedspinach
    • D、Boiled beans

    正确答案:C

  • 第6题:

    在J2EE中,对于我们自己设计的Bean,应该()。 

    • A、一定要继承java.beans.Beans
    • B、一定要实现Runnalbe接口
    • C、一定要继承java.lang.Thread类
    • D、可以不继承java.beans.Beans

    正确答案:D

  • 第7题:

    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()

    • A、Java code
    • B、Template text
    • C、Scripting code
    • D、Standard action
    • E、Expression language

    正确答案:B,D,E

  • 第8题:

    多选题
    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()
    A

    Java code

    B

    Template text

    C

    Scripting code

    D

    Standard action

    E

    Expression language


    正确答案: A,C
    解析: 暂无解析

  • 第9题:

    单选题
    For Question 1, select one answer choice.  Which of the following can be inferred from the overall process involved in preparing coffee beans?
    A

    Coffee beans must be roasted longer than coffee berries.

    B

    Soaking is the lengthiest step in the preparation process.

    C

    Consumer preference regarding the final strength and color of coffee varies.

    D

    A consumer’s passion for coffee determines exactly how the beans are processed.

    E

    The more exotic and unfamiliar the coffee bean, the longer it takes to prepare.


    正确答案: E
    解析:
    本题是推断题。段落最后一句话“The berries are soaked, dried, sorted, and finally roasted for various amounts of time, depending on how strong and dark the consumer prefers his coffee”描述了咖啡豆的加工过程,加工咖啡豆的各道工序所用的时间会因消费者对咖啡的口感与色泽的要求不同而有所长短,由此可知,消费者对咖啡的口感和色泽要求各异,选项C符合题意。

  • 第10题:

    单选题
    在J2EE中,对于我们自己设计的Bean,应该()。
    A

    一定要继承java.beans.Beans

    B

    一定要实现Runnalbe接口

    C

    一定要继承java.lang.Thread类

    D

    可以不继承java.beans.Beans


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    关于servlet,下面那句话是错误的()
    A

    不要使用java.beans.Beans.instantiate()方法。

    B

    不再使用HttpSession时,应该尽早使用invalidate()方法释放。

    C

    任何时候都不能使用Servlet的SingleThreadModel。

    D

    不再使用JDBC资源时,应该尽早使用close()方法释放。


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    ()是struts-config.xml文件配置数据源的标签。
    A

    data-source

    B

    data-sources

    C

    set-property

    D

    form-beans


    正确答案: A
    解析: 暂无解析

  • 第13题:

    菠菜泥的英文是( )。

    A.Mashed Potatoes

    B.Boiled Spinach

    C.Mashedspinach

    D.Boiled beans


    正确答案:C

  • 第14题:

    属于Web客户端脚本语言。

    A.JavaScript

    B.RSS

    C.JSP

    D.Java Beans


    正确答案:A
    解析:本题考查的是动态网页编程方面的知识。动态网页编程技术分为两大类;客户端动态编程技术和服务器端动态编程技术。 JavaScript是一种基于Java语言的客户端脚本语言。RSS是简易信息聚合的缩写,是一种支持内容订阅的信息推送协议。JSP是基于Java的服务器端脚本语言。Java Beans是Java组件技术。

  • 第15题:

    关于servlet,下面那句话是错误的()

    • A、不要使用java.beans.Beans.instantiate()方法。
    • B、不再使用HttpSession时,应该尽早使用invalidate()方法释放。
    • C、任何时候都不能使用Servlet的SingleThreadModel。
    • D、不再使用JDBC资源时,应该尽早使用close()方法释放。

    正确答案:C

  • 第16题:

    会话Beans只有无状态一种。


    正确答案:错误

  • 第17题:

    jsp:useBean动作的scope属性设置为()将使同一用户在不同页面共享Beans。

    • A、page
    • B、session
    • C、application
    • D、request

    正确答案:B

  • 第18题:

    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()

    • A、Transfer Object
    • B、Front Controller
    • C、Service Locator
    • D、Intercepting Filter
    • E、Business Delegate
    • F、Model-View-Controller

    正确答案:C

  • 第19题:

    多选题
    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()
    A

    Java code

    B

    Template text

    C

    Scripting code

    D

    Standard action

    E

    Expression language


    正确答案: A,D
    解析: 暂无解析

  • 第20题:

    单选题
    基于Servlet、JSP和Java Beans的Web应用体系结构中,()从应用服务器取得控制权来执行基本的流程控制。
    A

    JSP

    B

    HTML页面

    C

    Servlet

    D

    View Beans


    正确答案: C
    解析: 暂无解析

  • 第21题:

    单选题
    Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.  Which pattern can the developer use to solve this problem?()
    A

     Transfer Object

    B

     Service Locator

    C

     Intercepting Filter

    D

     Business Delegate


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()
    A

    Transfer Object

    B

    Front Controller

    C

    Service Locator

    D

    Intercepting Filter

    E

    Business Delegate

    F

    Model-View-Controller


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly,the consultant created several dozen JSP pages that directly communicate with the database. The Squeakybusiness team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the newsystem. Which pattern can the developer use to solve this problem?()
    A

    Transfer Object

    B

    Service Locator

    C

    Intercepting Filter

    D

    Business Delegate


    正确答案: C
    解析: 暂无解析