Mod 1 Flashcards

1
Q

are what allows us to store data in Ruby, containers

A

variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

a packet of instructions, a set of reusable code

A

methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

an input to a method

A

argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

guides for method, place hold for arguments

A

parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

the result/ output of a method

A

return value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

piece of data

A

object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

running a command

A

execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

where less complex functionality is exposed in an interface and more complex functionality is suppressed

A

abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

why do we use methods

A

streamline, reusability, faster, DRY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how does abstract help us code

A

keeps complexity from users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

is a description of how something should behave

A

Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A type of of object (blueprint)

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

piece of data

A

object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

a specific object (built from blueprint)

A

Instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

noun- what an object ‘is’, attributes that describe object

A

state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

verb- what an object ‘does’ or what ‘can be done’ to an object, Methods that model object behavior

A

behavior

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

specific properties of an object

A

attribute

18
Q

a type of variable that states with ‘@’

A

instance variable

19
Q

is a hash or array

A

collection

20
Q

is doing something several times

A

iteration

21
Q

everything between do and end

A

block

22
Q

=> | x |

A

block variable

23
Q

used to extend or modify functionality in Ruby applications

A

Gem

24
Q

the verification of the behavior we were expecting

A

assertion

25
Q

S.E.A.T.

A

setup, execution, assertion, teardown

26
Q

a choice depending on whether or not a condition is ‘true’ or ‘false’ (choose your own adventure)

A

conditional branching

27
Q

a set of instructions that is executed repeatedly until some conditions is met

A

loop

28
Q

in a loop what does while mean

A

execute as long as true

29
Q

in a loop what does unitl mean

A

execute from false til true

30
Q

what does loop do mean

A

code will run for ever

31
Q

is what you have access to and where you have access to it

A

scope

32
Q

anything not inside a scope is put into this default scope

A

global scope

33
Q

a type of scope when we create a method

A

method scope

34
Q

refers to what is available inside a block (everything between do and end)

A

block scope

35
Q

refers to what is available in a class everything between class and end

A

class scope

36
Q

represents a collection of named values (keys:values)

A

hashes

37
Q

an immutable value

A

symbol

38
Q

ruby programs that help us iterate

A

enumerable

39
Q

go through code object by object

A

iteration

40
Q

like each but reaturns a new array

A

.map

41
Q

will return the first item in a collection that is truthy

A

.find

42
Q

goes through total collection for that are truthy

A

.find_all