Module Title: : Cloud Application Development



Similar documents
SPRING INTERVIEW QUESTIONS

Spring Data JDBC Extensions Reference Documentation

Spring 3.1 to 3.2 in a Nutshell. Sam Brannen Senior Software Consultant

Developing modular Java applications

What s new in Spring 3.1?

Java EE Web Development Course Program

Network Security and Penetration Testing

Module Title: Auditing 2

Enterprise Application Development In Java with AJAX and ORM

Running and Testing Java EE Applications in Embedded Mode with JupEEter Framework

Spring Data Cassandra - Reference Documentation

Tutorial for Spring DAO with JDBC

Customer Bank Account Management System Technical Specification Document

The Spring Framework: An Open Source Java Platform for Developing Robust Java Applications

Java EE 7: Back-End Server Application Development

Evaluation. Copy. Evaluation Copy. Chapter 7: Using JDBC with Spring. 1) A Simpler Approach ) The JdbcTemplate. Class...

CERTIFIED MULESOFT DEVELOPER EXAM. Preparation Guide

Specialized Programme on Web Application Development using Open Source Tools

Java and RDBMS. Married with issues. Database constraints

IBM WebSphere Server Administration

10CS73:Web Programming

APAC WebLogic Suite Workshop Oracle Parcel Service Overview. Jeffrey West Application Grid Product Management

<Insert Picture Here> Hudson Security Architecture. Winston Prakash. Click to edit Master subtitle style

Witango Application Server 6. Installation Guide for OS X

The end. Carl Nettelblad

Weaving Stored Procedures into Java at Zalando

WebSphere Server Administration Course

Java Building Web Apps with Spring Rob Harrop, Interface21 Ltd.

Core Java+ J2EE+Struts+Hibernate+Spring

Converting Java EE Applications into OSGi Applications

Tutorial: Building a Web Application with Struts

Module Title: Management Accounting 2

Specialized Programme on Web Application Development using Open Source Tools

CORK INSTITUTE OF TECHNOLOGY INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ. Semester 1 Examination 2013/2014. Module Title: Strategic Finance for Agribusiness

How To Extend Content Broker Storage On Libs Libs (Libs) With Libs 4.5) And Libs 5.5

How To Write A Nosql Database In Spring Data Project

Java Application Developer Certificate Program Competencies

MA-WA1920: Enterprise iphone and ipad Programming

SSC - Web development Model-View-Controller for Java web application development

Module Title: Advanced Systems Administration 2

Framework Adoption for Java Enterprise Application Development

Research Article. ISSN (Print) *Corresponding author Lili Wang

OSGi Service Platform Release 4

Complete Java Web Development

Spring Security 3. rpafktl Pen source. intruders with this easy to follow practical guide. Secure your web applications against malicious

JAVA/J2EE DEVELOPER RESUME

Course Name: Course in JSP Course Code: P5

This training is targeted at System Administrators and developers wanting to understand more about administering a WebLogic instance.

Web Frameworks and WebWork

An introduction to creating JSF applications in Rational Application Developer Version 8.0

Model-View-Controller. and. Struts 2

PROGRAMMERS GUIDE. Version 1.x

Job Reference Guide. SLAMD Distributed Load Generation Engine. Version 1.8.2

The first time through running an Ad Hoc query or Stored Procedure, SQL Server will go through each of the following steps.

3 Techniques for Database Scalability with Hibernate. Geert Bevin - SpringOne 2009

An Oracle White Paper June RESTful Web Services for the Oracle Database Cloud - Multitenant Edition

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

Building Web Services with Apache Axis2

A Guide to Migrating Enterprise Applications to Spring

Course Description. Course Audience. Course Outline. Course Page - Page 1 of 5

Nicholas S. Williams. wrox. A Wiley Brand

SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package Data Federation Administration Tool Guide

No no-argument constructor. No default constructor found

Dozer v User's Guide

White Paper: 1) Architecture Objectives: The primary objective of this architecture is to meet the. 2) Architecture Explanation

JSR-303 Bean Validation

Cohort: BCA/07B/PT - BCA/06/PT - BCNS/06/FT - BCNS/05/FT - BIS/06/FT - BIS/05/FT - BSE/05/FT - BSE/04/PT-BSE/06/FT

Witango Application Server 6. Installation Guide for Windows

Module Title: Management Information Systems

Course Number: IAC-SOFT-WDAD Web Design and Application Development

How To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post

OpenShift is FanPaaStic For Java EE. By Shekhar Gulati Promo Code JUDCON.IN

Java EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java

Case Studies of Running the Platform. NetBeans UML Servlet JSP GlassFish EJB

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

What s really under the hood? How I learned to stop worrying and love Magento

Client-Server Architecture & J2EE Platform Technologies Overview Ahmed K. Ezzat

Module 13 Implementing Java EE Web Services with JAX-WS

NGASI AppServer Manager SaaS/ASP Hosting Automation for Cloud Computing Administrator and User Guide

Building Web Applications, Servlets, JSP and JDBC

<Insert Picture Here> Java EE 7. Linda DeMichiel Java EE Platform Lead

Web Applications and Struts 2

Beginning POJOs. From Novice to Professional. Brian Sam-Bodden

WEB SERVICES. Revised 9/29/2015

easylookup Setup Guide

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

WebObjects Web Applications Programming Guide. (Legacy)

Performance Optimization For Operational Risk Management Application On Azure Platform

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Java Programming. JDBC Spring Framework Web Services

Apache Sling A REST-based Web Application Framework Carsten Ziegeler cziegeler@apache.org ApacheCon NA 2014

How To Write An Online Shopping Application In Java Ee

Expert Spring MVC and Web Flow

Web Anwendungen Entwickeln mit JSF, Spring und Tomcat

Servlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011

Mastering Tomcat Development

Java Web Services Training

Transcription:

CORK INSTITUTE OF TECHNOLOGY INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ Semester 2 Examinations 2013/14 Module Title: : Cloud Application Development Module Code: SOFT 8022 School: Science and Informatics Programme Title(s): BSc. Cloud Computing Programmes Code(s): KCLDC _8_Y4 External Examiner(s): Internal Examiner(s): Dr. David White Dr. Donna O Shea Instructions: Duration: Answer 3 questions. Within each question answer all parts. All questions carry equal marks. For multiple choice questions identify the correct answer by stating it in the answer book. 2 Hours Sitting: Summer 2014 Requirements for this examination: Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination. If in doubt please contact an Invigilator. Page 1 of 7

Question 1 Total 20 marks. Question 1 Part A MCQ each question is worth 2 marks. 1.1. From the list below identify the functional area that is NOT associated with Spring: a) Data Access b) Web c) Aspect Oriented Programming d) Code expression 1.2. Spring containers are the core of a Spring container. With regard to these containers select from the list below the types of containers that are supported by Spring (there are 2 correct answers): a) Application contexts defined by the org.springframework.context.applicationcontext interface. b) Spring containers defined by the org.springframework.spring.container interface. c) Bean factories defined by the org.springframework.beans.factory.beanfactory interface. d) Bean containers defined by the org.springframework.beans.containers.beancontainer interface. 1.3. In order to over-ride the beans default singleton behaviour to ensure that a unique instance of a bean is returned each time it is asked for what scope should be declared for the bean (select one): a) Scope= not-singleton b) Scope= prototype c) Scope= unique-instance d) Scope= only-one-instance 1.4. Select the list below the term that best describes the term Dependency Injection. a) It refers to sections of code that have to be included in many places with little or no alteration b) It is a software design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time. c) It is a Java object which does not follow any of the major Java object models, conventions, or frameworks. d) It is a software design pattern that ensures the inclusion of hard coded dependencies at run-time. 1.5. Identify from the list below the application context flavour that is invalid: a) ClassPathXmlApplicationContext b) FileSystemXmlApplicationContext c) SourceFolderXmlApplicationContext d) XmlWebApplicationContext Question 1 Part B question is worth 5 marks. A Plain Old Java Object (POJO) acronym is used to emphasize that a given object is an ordinary Java Object, and not a special object. With regard to POJOs list specifically the three things that a POJO should not have to do? Page 2 of 7

Question 1 Part C question is worth 5 marks Explain through the use of an example what is meant by the term boilerplate code. Identify how the Spring framework helps eliminate boilerplate code. Question 2 Total 20 marks. Question 2 Part A MCQ each question is worth 2 marks. 2.1. What is wrong with the following bean declaration? <bean "SimpleBeanExample" class="com.adfframework.labs.sillyshow.thehit.songwriterimpl" lazy-init="true"> <constructor-arg name="name" value="mary Jones"/> a) Lazy-init needs to be set to false. b) The constructor argument is incorrectly defined. c) ID portion of the bean declaration is missing. d) There is nothing wrong with it. 2.2. The developer wants to ensure that the same instance of a bean is returned each time it is asked for. In order to do this select the correct statement from the list below: a) scope="singleton" needs to be defined as part of the bean declaration. b) scope="prototype" needs to be defined as part of the bean declaration. c) You do not have to do anything as the same instance of the bean is returned by default each time it is called. d) Answer a) and c) are correct. e) None of the above are correct. 2.3. How would you auto inject into a field by its name? a) By using the @Autowired and @Qualifier spring annotations. b) With the name attribute of the @Autowired. c) By using the single @Qualifier annotation. d) By using the @Autowire name. e) None of the above 2.4. Identify from the list below the best statement that is associated with the @Component annotation. a) You need to enable classpath scanning specifying the packages to read to see if the annotation exists in the POJO defined. b) It creates a component that is associated with the service layer of the application. c) In the event that a POJO whose class name is XYZ is annotated with @Component annotation this will create a bean whose name is XYZ in the container in Spring. d) None of the above statements are correct. 2.5. Identify from the list below the best statement that explains autowiring in Spring. a) byname, bytype and byundetect are all types of autowiring. b) It increases the amount of configuration reduced in XML. c) It autowires relationships between collaborating beans without using <constructor-arg> and <property> XML elements. Page 3 of 7

d) Mixing automatic and explicit wiring is not allowed in Spring. Question 2 Part B question is worth 5 marks Consider the example detailed below. Autowiring bytype based on the example above generates an error. Specify the reason why this error occurred and identify a solution to the problem. <bean id="account" class="account"> <constructor-arg name="accountnumber" value="1234"></constructor-arg> <constructor-arg name="accountbalance" value="10.22"></constructor-arg> <bean id="secondaccount" class="account"> <constructor-arg name="accountnumber" value="2345"></constructor-arg> <constructor-arg name="accountbalance" value="10022"></constructor-arg> <bean id="customer" class="customer" autowire="bytype"> <property name="name" value="mary Jones"></property> <property name="address" value="cit, Cork"></property> <bean id="secondcustomer" class="customer"> <property name="name" value="lucy Jones"></property> <property name="address" value="cit, Cork"></property> <property name="account" ref="secondaccount"></property> Question 2 Part C question is worth 5 marks What is meant by the term component scanning? Identify the annotations and stereotypes used to enable component scanning within Spring. Page 4 of 7

Question 3 Total 20 marks. Question 3 Part A MCQ each question is worth 2 marks. 3.1 What data access technology is not supported by the Spring framework outlined below: a) Jdbc b) Hibernate c) NoSQL d) JPA 3.2 Using Springs Jdbc framework reduces the amount of work that the developer is now responsible for. From the list below select one or more items that the developer needs to perform when using Springs JDBC framework. a) Process any exception b) Prepare and execute the statement c) Set up the loop to iterate through the results (if any) d) Specify the statement e) Do the work for each iteration 3.3 Using JdbcTemplate what is the name of the Spring provided class that you would use for result set parsing and merging rows into a single object. Select a unique answer. a) RowMapper b) ResultSetExtractor c) ResultSetMapper d) RowCallbackHandler 3.4 Identify from the list below an invalid transaction attribute: a) Propagation b) Isolation c) Rollback d) TimeAllowed e) ReadOnly 3.5 Using JdbcTemplate batch processing is accomplished by implementing a special interface, BatchPreparedStatementSetter. Using this interface select the methods that you must implement as part of this interface. a) getbatchsize b) updateset c) setvalues d) batchupdate Question 3 Part B question is worth 5 marks. Using the code below select the error (if any) that exists. public class SingerDAOImpl implements SingerDAO { private DataSource datasource; private JdbcTemplate template;... Page 5 of 7

//some methods are not shown on purpose public void create(string name, Integer age) { String SQL = "insert into Singer (name, age) values (:name, :age)"; Map<String, Object> parameters = new HashMap <String, Object>(); parameters.put("name", name); parameters.put("age", age); template.update(sql, parameters); System.out.println("Created Record Name = " + name + " Age = " + age); } Question 3 Part C question is worth 5 marks The acronym ACID is used to describe transactions. Explain this acronym in detail. Question 4 Total 20 marks. Question 4 Part A MCQ each question is worth 2 marks. 4.1 Based on the list below order the Spring MVC work flow. The first item in the list should represent the item that occurs first in the flow and so on. a) The client gets the generated response and the service is complete. b) The controller uses the view. c) HTTP request comes into the controller. d) The controller accesses the model. 4.2 Based on the list below select the statement that best represents the purpose of Springs DispatcherServlet. a) Front controller that dispatches requests to registered request handlers. b) Back controller that returns responses to listeners. c) It simply dispatches servlets to listeners. d) None of the above. 4.3 What annotation would you use on method argument to bind it to the value of a URI template in Spring MVC? a) @Path b) @PathVariable c) @Variable d) @VariablePath 4.4 Identify from the list below the Spring security standard naming convention that is invalid when creating a custom login form: a) j_spring_security_check b) j_spring_security_logout c) j_username d) j_password e) j_domain 4.5 Select the view resolver you need to use when using Apache tiles in your Spring MVC project. a) InternalResourceViewResolver Page 6 of 7

b) UrlBasedViewResolver c) TemplateBasedViewResolver d) TilesResourceViewResolver Question 4 Part B question is worth 5 marks. Using the code presented below state how Spring will resolve the view name called logout using the view resolver defined below. <bean class="org.springframework.web.servlet.view.internalresourceviewresolver"> <property name="prefix <value>/web-inf/jsp/company</value> </property> <property name="suffix"> <value>.jsp</value> </property> Question 4 Part C question is worth 5 marks Outline five key features of the Spring MVC framework. Page 7 of 7