Skip to content

Instantly share code, notes, and snippets.

@BrianZanti
Last active September 26, 2019 20:12
Show Gist options
  • Save BrianZanti/5f43760099d035c31b35a93808c00417 to your computer and use it in GitHub Desktop.
Save BrianZanti/5f43760099d035c31b35a93808c00417 to your computer and use it in GitHub Desktop.
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML?
  2. What is an HTML element?
  3. What is an HTML attribute?
  4. What is the difference between a class and an id? When would you use one vs. the other?
  5. What HTML would you write to create a form for a new dog with a "name" and an "age"?
  6. What are semantic tags? When would you use them over a div?
  7. Explain what each of the following HTML tags do and when you would use them:
  • <h1>, <h2>, etc.
  • <p>
  • <body>
  • <a> and the href attribute
  • <img> and the src attribute
  • <div>
  • <section>
  • <ul>, <ol>, and <li>
  • <form>
  • <input>

CSS

  1. What is CSS?
  2. What is a CSS selector? How do you use the ID selector? The class selector?
  3. What are the three ways to include CSS in your HTML documents? What are the pros and cons of each?
  4. What is the Box Model? Describe each component of the Box Model.

SQL

Jumpstart Lab Tutorial

  1. What is a database?
  2. What is SQL?
  3. What is SQLite3?
  4. What is a Table?
  5. What is a primary key?
  6. What is a foreign key?
  7. Explain what each of the following SQL commands do:
  • insert
  • select
  • where
  • order by
  • inner join

PG Exercises

  1. How can you limit which columns you select from a table?
  2. How can you limit which rows you select from a table?
  3. How can you give a selected column a different name in your output?
  4. How can you sort your output from a SQL statement?
  5. What is joining? When do you need to join?
  6. What is an aggregate function?
  7. List three aggregate functions and what they do.
  8. What does the group statement do?
  9. How does the group statement relate to aggregates?

Rails Tutorial: Task Manager

Copy and Pase the link to your repo here:

  1. Define CRUD.
  2. Define MVC.
  3. What three files would you need to create/modify for a Rails application to respond to a GET request to /tasks, assuming you have a Task model.
  4. What are params? Where do they come from?
  5. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment