Skip to content

Instantly share code, notes, and snippets.

View NicholasJacques's full-sized avatar
💭
😃

Nicholas Jacques NicholasJacques

💭
😃
View GitHub Profile

Module 1 Week 4 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short description or snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).

1. Give one difference between Modules and Classes.

Classes have to be instantantiated to be used, Modules cannot be instantiated.

@NicholasJacques
NicholasJacques / diagnostic.markdown
Last active February 10, 2017 07:50
Week_2_and_3_Diagnostic

Define a class called PizzaOven which has a method cook_pizza which returns the string "mmm 'za".

class PizzaOven

  def cook_pizza
    "mm za"
  end

end
Floats and Integers
What’s the difference between a float and integer?
>> A Float has decimals while an integer is only whole numbers
What’s are the similarities and differences between BigNum and FixNum?
>> BigNum and FixNum are both classes.
>> * Bignum and FixNum both hold whole numbers, can't accomodate decimal points, both types of integers
>> * BigNum are over 18/19 digits
What will 4.0 / 2 return?
>> 2.0
@NicholasJacques
NicholasJacques / prework.md
Last active January 18, 2017 19:15 — forked from mbburch/prework.md
An example template for your Turing pre-work Gist

Turing School Prework - Nicholas Jacques

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist: