SHARE
TWEET

Untitled

a guest Oct 15th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # B2 Intermission Work
  2.  
  3. Answer these Check for Understanding questions as you work through the assignments.
  4.  
  5. ## HTML
  6.  
  7. 1. What is HTML?
  8. 1. What is an HTML element?
  9. 1. What is an HTML attribute?
  10. 1. What is the difference between a class and an id? When would you use one vs. the other?
  11. 1. What HTML would you write to create a form for a new dog with a "name" and an "age"?
  12. 1. What are semantic tags? When would you use them over a `div`?
  13. 1. Explain what each of the following HTML tags do and when you would use them:
  14.   * `<h1>`, `<h2>`, etc.
  15.   * `<p>`
  16.   * `<body>`
  17.   * `<a>` and the `href` attribute
  18.   * `<img>` and the `src` attribute
  19.   * `<div>`
  20.   * `<section>`
  21.   * `<ul>`, `<ol>`, and `<li>`
  22.   * `<form>`
  23.   * `<input>`
  24.  
  25.  ## CSS
  26.  
  27. 1. What is CSS?
  28. 1. What is a CSS selector? How do you use the ID selector? The class selector?
  29. 1. What are the three ways to include CSS in your HTML documents? What are the pros and cons of each?
  30. 1. What is the Box Model? Describe each component of the Box Model.
  31.  
  32. ## SQL
  33.  
  34. ### Jumpstart Lab Tutorial
  35.  
  36. 1. What is a database?
  37. 1. What is SQL?
  38. 1. What is SQLite3?
  39. 1. What is a Table?
  40. 1. What is a primary key?
  41. 1. What is a foreign key?
  42. 1. Explain what each of the following SQL commands do:
  43.   * insert
  44.   * select
  45.   * where
  46.   * order by
  47.   * inner join
  48.  
  49. ### PG Exercises
  50.  
  51. 1. How can you limit which columns you select from a table?
  52. 1. How can you limit which rows you select from a table?
  53. 1. How can you give a selected column a different name in your output?
  54. 1. How can you sort your output from a SQL statement?
  55. 1. What is joining? When do you need to join?
  56. 1. What is an aggregate function?
  57. 1. List three aggregate functions and what they do.
  58. 1. What does the `group` statement do?
  59. 1. How does the `group` statement relate to aggregates?
  60.  
  61. ## Rails Tutorial: Task Manager
  62.  
  63. **Copy and Paste the link to your Task Manager repo here:**
  64. **Copy and Paste the link to your Static Challenge here:**
  65.  
  66. 1. Define CRUD.
  67. 1. Define MVC.
  68. 1. 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.
  69. 1. What are params? Where do they come from?
  70. 1. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top