Mod 1 Flashcards

(42 cards)

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

18
Q

a type of variable that states with ‘@’

A

instance variable

19
Q

is a hash or array

20
Q

is doing something several times

21
Q

everything between do and end

22
Q

=> | x |

A

block variable

23
Q

used to extend or modify functionality in Ruby applications

24
Q

the verification of the behavior we were expecting

25
S.E.A.T.
setup, execution, assertion, teardown
26
a choice depending on whether or not a condition is 'true' or 'false' (choose your own adventure)
conditional branching
27
a set of instructions that is executed repeatedly until some conditions is met
loop
28
in a loop what does while mean
execute as long as true
29
in a loop what does unitl mean
execute from false til true
30
what does loop do mean
code will run for ever
31
is what you have access to and where you have access to it
scope
32
anything not inside a scope is put into this default scope
global scope
33
a type of scope when we create a method
method scope
34
refers to what is available inside a block (everything between do and end)
block scope
35
refers to what is available in a class everything between class and end
class scope
36
represents a collection of named values (keys:values)
hashes
37
an immutable value
symbol
38
ruby programs that help us iterate
enumerable
39
go through code object by object
iteration
40
like each but reaturns a new array
.map
41
will return the first item in a collection that is truthy
.find
42
goes through total collection for that are truthy
.find_all