Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/24

Click to flip

24 Cards in this Set

  • Front
  • Back
  • 3rd side (hint)

puts

Means put string. Simply writes onto the screen whatever comes after it.

Intergers

Numbers without decimal points

Number

Floats

Aka floating point numbers. Num ers with decimal places

Decimal

Number

12 (12 + 12)

Didgits

'12'

\ (backslash)

Escape character. Allows the computer to escape the apostrophe in strings

Assignment

Giving a string a name so your computer will remember it. The names are called variables. First letter has to be lowercase

.to_s

Allows an object to be part of a string

.to_i

Allows an integer to be an object

.to_f

Allows a float to be a version of a string

Gets

Only retrieves strings

Chomp

Uses as gets.chomp takes the enters off the end of the strings

.reverse

Makes a new backward version of a string. Works on sentences not single words (method)

.length

(Method) tells you the number of characters including spaces in the string

Upcase

Changes all the lower case to upper case in the string (method)

Downcase

Changes all upper to lower (method)

Swapcase

Switches the case of every letter (method)

Capitalize

Switches the first letter to uppercase (method)

Branching

"If" what comes after "if" is true then you run the code

Looping

Telling your computer to do something over and over again

If

If a certain condition is met will run code

Else

If the if was not met will run a differeent code

While

Works with looping

Logical operators

Or, and, not