CS Terms Flashcards

1
Q

Exponentiation

A

expt

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

Square Root

A

sqrt

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

Remainder

A

Remainder

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

Absolute value

A

abs

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

greatest common divisor

A

gcd

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

Least Common Multiple

A

lcm

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

What does modulo do?

A

Find the remainder of the division of the first number by the second

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

What does quotient do?

A

Divides the first integer by the second to obtain the quotient.

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

What does remainder do?

A

Determines the remainder of dividing the first by the second integer

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

What does round do?

A

Rounds a real number to an integer

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

What does floor do?

A

Determines the closest integer below a real number

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

What does ceiling do?

A

Determines the closest integer above a real number

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

How do you use check-expect?

A

(check-expect observed-value expected-value)

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

What is a base case?

A

The simplest form of the recursive problem. The condition that causes the method to end.

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

What is a recursive case?

A

The steps that an algorithm takes to make the problem one step smaller and move towards the base case.

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

What is the difference between modulo and remainder?

A

Modulo: Answer keeps the sign of the SECOND number
Remainder: Answer keeps the sign of the FIRST number