Code Monkey home page Code Monkey logo

wdi_2_ruby_quiz_buzz's Introduction

QuizBuzz

FizzBuzz is an extremely common early screening question in interviews for programming jobs.

It is a simple problem that is given with the purpose of filtering out people who simply can't program, without requiring a program with much complexity.

We're going to bump the difficulty up just a bit however to ensure that you can always knock it out of the park on FizzBuzz

Instructions

Do not search online or use your notes.

This quiz is rare in that it must be done from memory, as it is possible that an interviewer will ask you to complete FizzBuzz in front of them without a reference.

Use RSpec and TDD (write test first, code second) to write a method called fizz_buzz that does the following:

  • fizz_buzz takes a single input argument of x
  • If x is divisible by 3, return a string of fizz
  • If x is divisible by 5, return a string of buzz
  • If x is divisible by both 3 and 5, return a string of fizzbuzz

Evaluatory Points

3 points are given for the fizz_buzz method working properly. These are all or nothing, as an employer will not accept a partial solution.

1 point is given for good tests that pass.

1 point is given for excellent style (proper indentation, solid logic)

wdi_2_ruby_quiz_buzz's People

Contributors

tibbon avatar tsyan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.