To Exam Info
IT231 -- Review Guide for Midterm
Bring to Midterm
- One page of crib notes with writing on both sides.
Study
- Course Notes, especially Review Questions at the beginning of each
lecture.
- Midterm Review Questions
- Projects 1 to 4
- The textbook will help fill in the gaps in your knowledge.
Exam Format
- Exam questions will be of the following possible formats:
Short Answer; Short Essay; Multiple Choice.
There will be no computer problems.
Definitions
- Command Prompt Window, DOS commands, Ruby, ERB, Rails, DRY,
Convention over Configuration, controller,
view, layout, route, HTML vs. XHTML, CSS, scaffold, model, CRUD, helper
function, Rails datatypes, Rails helper methods (stylesheet_link_tag,
image_tag, link_to), ERB delimiters (<%=, %>),
REST, HTTP (GET, POST, PUT,
HEAD, DELETE), port number, well-known port, default port for HTTP,
default port for Rails, 5 ways to run Ruby (IRB, batch Ruby script, ERB,
Rails console, load Ruby file from Rails console), Ruby constants
(integer, floating point, string, boolean), Ruby classes (FixNum, Float,
Time, String, Array; see the
UML Examples Page for methods. We will
cover the Range, and Hash classes after the midterm),
instance variable, local variable, method,
Ruby object methods common to many objects (new, to_s, to_i,
to_f, class, methods), Rails datatypes (integer, float, string, text,
boolean, date, time), Ruby operators (=, +, -, *, /, %, ==, <, >, <=, >=, !=,
<=>), Ruby control structures (if..else, while), Ruby builtin
methods (puts, print, random, STDIN.gets), ActiveRecord methods (new, count,
save, all, find, delete, delete_all).
Be Able to
- Explain how to create a Rails controller with some views.
- Modify the HTML and CSS files of a Rails project.
- Set the following properties for body, p, h1, h2, h3, td, th,
and a: background color, text color, font, font size, font weight
(bold or normal).
- Set the width and height of an image.
- Write views that are compatible with a layout.
- Use the Rails helper functions stylesheet_link, image_link, link_to.
- Explain how to create a Rails application using scaffold software, according
to a simple database design.
- Modify the years displayed in the year of a date entered on
the form included in the new or edit view of a scaffold. (Recall that
the form is defined in _form.erb.html.
- Predict the output of a Ruby script.
- Modify a Ruby command line application to accept user input.
- Modify a Ruby command line application to display output from the
controller on a web page using ERB.
- Write a Rails project that displays an image on a form according to
calculations in the controller (like Project 4).
- Determine the instance variables and methods of a class by
looking at a UML Diagram or Ruby source code.
- Create a UML Diagram based on the source code for a Ruby class.
- Write Ruby source code statements to test a Ruby class as specified
by Ruby source code.
- Write a command line statement to create a Rails model.
- Add validations to a Rails model (validates_presence_of,
validates_length_of, validates_numericality_of).
- Manipulate the contents of a Rails database by using ActiveRecord
methods loaded from the Rails console (like Project 3, Item 4.
- Find mistakes in the source code for a Ruby project.