Chapter 1 Flashcards

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

19
Q

||

A

OR

20
Q

&&

A

AND

21
Q

==

A

Compare

22
Q
A

reads user input

23
Q

chomp

A

strips new lines

24
Q

10..1 =

A

array 10 - 1

25
Q

@filename=

A

an array

26
Q

“hello” x 3;

A

“hellohellohello”

27
Q

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

A

“hello world” (concatenation)

28
Q

reverse =

A

prints it backwards

29
Q

sort( ) =

A

sorts a list by case sensitive alphabetic

30
Q

pop( ) =

A

removes the last element from the back of the array

31
Q

shift( ) =

A

removes the first element from the front of the array

32
Q

push( ) =

A

add new item to the end of the array

33
Q

unshift( ) =

A

add new item to the front of the array

34
Q

splice( ) =

A

change the middle of an array

35
Q

&subroutine_name =

A

calls up a subroutine