Fall-Quiz#3: Algorithms Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

”++” is the ______ operator

A

incrementor

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

”–” is the ______ operator

A

decrementor

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

what is the final value of b

int b = -6;
b*=-2;

A

12

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

list two qualities that all recursive procedures must have

A

base case and a call to self

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

what quality does a dictionary have that makes it possible to perform a binary search?

A

the dictionary is alphabetically ordered

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