Chapter 1 Flashcards

(35 cards)

1
Q

$filename

A

= variable

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

||

A

OR

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

“&&”

A

AND

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

==

A

Compare

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

reads user input

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

chomp

A

strips new lines

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

10..1 =

A

array 10 - 1

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

@filename=

A

an array

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

“hello” x 3;

A

“hellohellohello”

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

“hello”. “ “. “world”;=

A

“hello world” (concatenation)

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

reverse =

A

prints it backwards

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

sort( ) =

A

sorts a list by case sensitive alphabetic

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

pop( ) =

A

removes the last element from the back of the array

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

shift( ) =

A

removes the first element from the front of the array

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

push( ) =

A

add new item to the end of the array

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

unshift( ) =

A

add new item to the front of the array

17
Q

&subroutine_name =

A

calls up a subroutine

18
Q

&subroutine_name =

A

calls up a subroutine

21
Q

==

22
Q
A

reads user input

23
Q

chomp

A

strips new lines

24
Q

10..1 =

25
@filename=
an array
26
"hello" x 3;
"hellohellohello"
27
"hello". " ". "world";=
"hello world" (concatenation)
28
reverse =
prints it backwards
29
sort( ) =
sorts a list by case sensitive alphabetic
30
pop( ) =
removes the last element from the back of the array
31
shift( ) =
removes the first element from the front of the array
32
push( ) =
add new item to the end of the array
33
unshift( ) =
add new item to the front of the array
34
splice( ) =
change the middle of an array
35
&subroutine\_name =
calls up a subroutine