Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Prework Quiz

##Command Line Basics

What are the terminal commands to:

  • Create a new folder called "Blah"
Your answer goes here
  • Move into the newly created "Blah" folder
Your answer goes here
  • Create a "hello.rb" file
Your answer goes here
  • Open the "hello.rb" file in Sublime Text
Your answer goes here
  • Move back one directory
Your answer goes here

##HTML and CSS

  • Without looking it up, create the basic HTML template structure with Doctype, head, title, and body
Your answer goes here
  • Write the HTML to add a link to google.com
Your answer goes here
  • Link to an external sheet at the path "css/styles.css"
Your answer goes here
  • Why do we want to use external stylesheets and scripts instead of adding them directly into our HTML file?
Your answer goes here
  • What's the difference between a class and an ID? Why do we use them?
Your answer goes here

Using the following HTML:

<h1>Hello Guys!</h1>
<p>Don't Mess This Quiz Up!!!</p>
<div>
  <p>I'm a paragraph!</p>
  <p class="lol">I have a class!</p>
  <p id="wdi">I have an ID!</p>
</div>
  • Write CSS to change the color of the <h1>
Your answer goes here
  • Write CSS to give the <p> with the id of 'wdi' a different font size
Your answer goes here
  • Write CSS to give the <p> with the class of 'lol' a background color.
Your answer goes here
  • Write CSS to give the first <p> in the <div> a yellow border.
Your answer goes here
  • Name at least two of the different color formats used in CSS
Your answer goes here

##Ruby

  • What are the different data types in Ruby?
Your answer goes here
  • How do you print something to the terminal in Ruby?
Your answer goes here
  • What is an array?
Your answer goes here
  • Create an array with 5 of your favorite foods
Your answer goes here
  • Write code to print out the numbers from 1 to 250
Your answer goes here

#Javascript

  • Aside from syntax, how is Javascript different from Ruby?
Your answer goes here
  • How do you print something to the console in Javascript?
Your answer goes here
  • Using a for loop, write code to print out all the odd numbers between 1 and 100. You will also need to use an if statement.
Your answer goes here

##Git

  • What is Git? What is Github?
Your answer goes here
  • What is the command to create an empty git repository in terminal?
Your answer goes here
  • What is the difference between git add and git commit?
Your answer goes here

##Optional Bonus

If you finish early, work on this problem:

Using either Ruby or Javascript, write code that will test if a given string is a palindrome. A palindrome is a word that is the same forwards and backwards, like 'mom' or 'racecar' or 'aibohphobia'. You are not allowed to use the built in reverse method or any similar methods.

Your answer goes here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.