07 Flashcards

1
Q

Array

A

A collection of values in which all the values have the same type, & each is id by an index

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

Element

A

One of the vales in an array. The [] operator selects elements

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

Allocate

A

To reserve memory for an array or other obj. The new operator allocates memory

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

Reference

A

A val that indicates a storage loc. In a memory diagram reference appears as an arrow

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

Index

A

An integer variable or value used to indicate an element of an array

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

Alias

A

A var that referes to the same obj as another var

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

Traversal

A

Looping through the elements of an array or other collection

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

Search

A

A traversal pattern used to find a particular element of an array

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

Reduce

A

A traversal pattern that combines the elements of an array into a single val

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

Accumulator

A

A var used to accumulate results during a traversal

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

Deterministic

A

A program that does the same thing every time it is run

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

Nondeterministic

A

A program that always behaves differently, even when run with same input

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

Pseudorandom

A

A sequence of number that appears to be random but are actually the product of a deterministic computation

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

Histogram

A

An array of integers in which each integer counts the # of vales that fall into a certain range

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

Enhances for loop

A

An alternative syntax for traversing the element of an array or other collection

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