To Lecture Notes

IT 231 -- 10/23/12

 

Review Questions

  1. Name some methods of the Array class.
    Ans: new, length, delete, empty?, [ ], ==
     
  2. Name some methods of the Range class.
    Ans: new, begin, end, to_a, include?, ==
     
  3. How to you place a literal double quote character in a Ruby String object?
    Ans: Use \" .
     
  4. What is shown in the browser?
    Ans: The output is
     
    1. Line 1
    2. Line 2
    3. Line 3

    If you want the output to be double spaced, use this code instead
    <ol>
        <li>Line 1<br />&nbsp;</li>
        <li>Line 2<br />&nbsp;</li>
        <li>Line 3</li>
    </ol>
    
  5. How can you change the type of numbers used in an ordered list?
      Ans: Use the following css style:

  6. What does each of these Ruby code fragments do?
  7. What is the output?
  8. Find the mistakes in this view and controller code:
  9. Convert this style to hex color codes:
  10. What are the hex color codes for these HTML colors:
     

 

FormHelper vs. FormTagHelper Methods

 

Project 5