Interger Expressions Flashcards

1
Q

interger1 -eq interger2

A

interger1 is equal to interger2

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

interger1 -ne interger2

A

interger1 is not equal to interger2

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

interger1 -le interger2

A

interger1 is less than or equal to interger2

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

interger1 -lt interger2

A

interger1 is less than interger2

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

interger1 -ge interger2

A

interger1 is greater than or equal to interger2

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

interger1 -gt interger2

A

interger1 is greater than interger2

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

What is a Modulus aka mod?

A

int % 2 (Divides the number by 2 and returns the remainder)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
$((a + 200))
A

Add 200 to $a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
$(($RANDOM%200))
A

Random number 0..199

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
declare -i count
A

Declare “count” as type integer

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