Interview JAVA TEST 3.2
Interview JAVA TEST 3.2
This section outlines some programming problem set. Please complete ALL the problem
set and email the code to us. Should you have any question, feel free to email to us. Be
sure to include your contact information in your email.
All code should be written in Java programming language. You must use version at least
1.7 of Java. Please include a suitable number of comments in your code as well. We
want to see the way you would normally write the code. If a trivial solution does exist to
one of the problems (i.e. there is an API call that does it), try to avoid to use it as it will
give us very little to go gauge your skills.
Problem Set
Problem 1
Problem 2
Problem 3
Problem 4
Problem 1
Bob and Alice are two people who really like mathematics. One day, Bob wanted to test
Alice’s knowledge on number series. The rule is simple, Bob will provide a series of
numbers, and Alice is asked to write the n member of the next series.
Now, Bob wants Alice to tell him what is the 1000 th member of this series. It’s gonna
take a lot of time for Alice to calculate manually, hence she asked you for help to create
a simple application to help her calculate the result.
Please help Alice and tell her what the 1000th member of that series is.
Code 1
Problem 2
Say I give you a file, inside contains a lot of characters, especially character ‘a’. Your
application will base on some rules and replace the ‘a’ with something else, and display
on the console.
Code 2
Problem 3
After graduation, Alice is going to establish a new online shopping company. To support
this, they have hired you as their freelance programmer. Your task is to develop a simple
baseline web application for them so that they can continue their work based on what
you have done.
In these very first criteria, they want you to build a simple website which contains the
following functionalities:
● Login
● Add product (only need to provide name and price)
● Update product (can only edit the name and price)
● Delete product
● Logout
They require you to use the following technologies and tools below:
● JSF
● Hibernate
● jQuery
● Jboss/GlassFish/Tomcat 6.0
● Netbeans or Eclipse
NB: For simplicity, the first admin data (username and password) can be
inserted directly to the database.
Code 3
Problem 4
Alice online business have growth and decide to move to mobile world, hence she have
engage third party to develop the mobile application.
Alice requires you to enhance the web application (Problem 3) by adding a simple
RESTful web service features that able to return the object in JSON format by using
technologies below:
● Jersey
● Gson/Jackson
{
“name”:”product name”,
“price”:”product price”
}
Code 4