Beruflich Dokumente
Kultur Dokumente
Web Programming
Final exam review
Dr. Williams
Central Connecticut State University
Exam info
Final worth 20% of your grade
2 letter size piece of paper, hand written
notes both sides
Exam will be a mix of:
True/False
Short answer
Essay
Design a solution
Important details
Exam will be given at university scheduled time:
Monday, December 12th 11:00 am - 1:00 pm
What to expect
Questions similar to the midterm but which
technologies to use will be cumulative:
What would you use technology XXX for?
Describe the difference between technology XXX and
YYY
Given an application description, describe how you
would use one or more technologies to solve it
For situation YYY is technology XXX the best choice
(Note this would be within technology stack i.e.
Java/Rails not which is better Java or Rails)
Rails
Routes
Controller
View
Model
MVC design
JEE
Ruby on Rails
Security
Ajax
What capability does it give your web
application/when would you use it
Sample application, given a description of a
dynamic page describe how you would use
Ajax to solve it describing the steps in the Ajax
flow
Ajax cont.
From server side what forms can the response
take how does that effect how read on
javascript side
How do you write AJAX return to the page
Conceptually how to process an XML
response, how to process JSON response
why would you want one of these response
types
While Rails can generate Ajax code you
still need to understand how it works
(i.e. what is the underlying flow)
Servlets
What is purpose of a Servlet
Responding to requests
Servlets cont.
Using request, session, context attributes
make sure you know the difference and
when you would use each
Processing data and using views
Example question: Youve been asked to
implement this application using a Servlet as
a controller, how would you implement it,
contrast this to how it would be done with
Rails
JSP
What is it, when would you use it over a
servlet/when would you use a servlet instead,
relation to Rails
Using scriptlets, expressions
JavaBeans
Provide easy integration of JPA model for
display in JSP view
JDBC
What elements are necessary to setup a database
to be accessed by the application server
How would you make a 1-many relationship in
the database
What would be a scenario when it makes more
sense to use JDBC rather than JPA?
Java EE
MVC with Java EE
What plays each role and how integrate
Why MVC?
How do you develop and what are the
responsibilities of the controller
Ex. You are developing a web page where the user is
entering and creating a new record. What classes are
involved, the role of each of these classes and how
are they implemented
Rails flow
URL
Action
Purpose
GET
/users
index
GET
/users/1
show
GET
/users/new
new
POST
/users
create
GET
/users/1/edit
edit
PATCH
/users/1
update
DELETE
/users/1
destroy
For Rails
Know how to conceptually explain
Rails vs Java EE
Potential question formats
Given application description
Create conceptual design and flow for each
architecture
Compare and contrast similarities between
specific solutions either given or one you came up
with (see above)
Security
What does it mean to program securely
What is XSS, what specifically happens
What is SQL injection, show/describe how it could
be used
Safe linking to new tabs
Why HTTPS
Secure login considerations
Storage of password
Why SSL critical