To Exam Info

IT 232 -- Review Guide for Early Final

Bring to Midterm

Study

Exam Questions Format

Definitions

HTML Tags

html head title style link script meta body img p div span 
h1 h2 h3 h4 h5 h6 h7 br ol ul li table tr td th a img form 
input textarea select button strong em pre sub sup

HTML Special Characters

<  >  &   

CSS Tags

font color background text-indent text-align vertical-align  
text-decoration border margin padding width height
border-radius position left top

Ruby Control Structures

if  elsif  unless  while  until  end

Ruby Instance Methods

C means class method.

Ruby Operators

+  -  *  /  %  =  +=  -=  *=  /=  <<  [ ]  .
<  >  <=  >=  ==  !=  <=>  &&  ||  ^  !  ..

Rails Command Line Statements

new  generate  controller  scaffold  migration  

rake db:migrate  rake db:seed

Rails Model Datatypes

string  integer  float  decimal  boolean  text  date  datetime

Rails Helper Methods

Rails validates Options

:presence_of  :numericality_of

ActiveRecord Associations Class Methods

has_many  belongs_to  has_and_belongs_to_many

HTTP Verbs

HEAD  GET  POST  PUT  PATCH  DELETE  

Some jQuery Selectors

$("p")  $("p:first")  $("#btn")  #(".field") 

Some jQuery Events

ready  click  mouseenter  mouseleave  focus  blur

Be Able To

  1. Explain how to add a new action to a controller after the controller has already been created.
  2. Add or modify the CSS styles to a Rails project.
  3. Know the hex color codes for the 17 standard HTML named colors.
  4. Given two hex color components, determine which one is larger.
  5. Display output from the controller on a web page using IRB.
  6. Set up a one-many relationship between two models.
  7. Set up validations for controls on a form.
  8. Change the values that a select_date control displays.
  9. Use a session variable to hold state information.
  10. Answer questions about Rails project source code.
  11. Use Digest::SHA2.hexdigest to encode passwords.
  12. Write Rails migrations to add a column or remove a column from a database.
  13. Write validations for inputs to a form
  14. Create regular expressions to validate input strings.
  15. Given source code for a Rails project, find the errors.
  16. Given scaffold-generated source code for a Rails project with a one-to-many relationship, modify the source code as requested.
  17. Implement login authentication for a scaffold-based or non-scaffold-based controller. You may bring the Login Authentication tutorial.
  18. Explain how to create a Rails controller with some views.
  19. Modify the HTML and CSS files of a Rails project.
  20. Modify the years displayed in the year of a date entered on the form included in the new or edit view of a scaffold.
  21. Display output from the controller on a web page using ERB.
  22. Manipulate the contents of a Rails database by using ActiveRecord methods typed or loaded from the Rails console.
  23. Write ERB code to display data from a database table in a view.
  24. Predict the output of a Rails project: (a) non-scaffold project, (b) scaffold project, (c) seed file.
  25. Modify a scaffold-based project according to specifications.
  26. Designate a view of a Rails project as the root node.
  27. Add a tooltip to a control or image.
  28. Write jQuery (or CoffeeScript if you prefer) statements to add an event handler to a control that changes CSS properties of one or more controls.
  29. Answer short essay questions. For example:
    1. How is HTML5 different than earlier versions of HTML?
    2. Explain what an array is and how it is used in Rails.
    3. How to the usual Rails scaffold-generated routes differ from nested routes?
    4. Explain what a session variable is.
    5. Explain how to create a Rails application using scaffold software, according to a simple database design.
    6. Explain the difference between the HTTP GET and POST methods.
    7. What does REST mean? How is it related to CRUD?
    8. What is the difference between yield and render?
    9. Explain the difference between JavaScript, jQuery, and CoffeeScript.