Lesson 4 Flashcards

1
Q

What is an array?

A

An array is a container that can hold a fixed number of items.

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

What is a single dimensional array known as?

A

A list.

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

A two-dimensional array is known as what?

A

A table.

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

What are square brackets used for?

A

They are used to create an array. They either provide the value held by the member of the array or change the value.

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

What does DRY stand for in software development?

A

dont repeat yourself

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

Violations for DRY is referred to as what?

A

WET. Which means we enjoy typing etc.

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

What is the purpose of a for loop?

A

They visit each element of an array.

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

Linear search or sequential search is what?

A

A way to find a value within a lsit.

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

Sorting?

A

Process which data are arranged based on their values.

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

There are 3 types of sorting what are they?

A

Bubble, Selection, and insertion Sort.

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

Bubble sort?

A

Arrange data ascending or descending orders.

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

Selection sort?

A

Involves finding the minimum element (from an ascending order) and putting it at the beginning of an unsorted part.

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

Insertion sort?

A

Values from the unsorted part are picked and placed into correct positions in the sorted part.

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

What are parallel arrays?

A

Two or more arrays to represent a collection of data where each corresponds to an array index for a matching field. Example if age and height are the table names0 and height0 would represent the first person.

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

Multidimensional arrays?

A

Use one set of square brackets per dimension or axis of the array.

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

Fixed array?

A

AN array in which the size or length is determined when the array is created.

17
Q

Dynamic array?

A

Random access, list data that allows elements to be added or removed.

18
Q

What is binary sometimes called?

A

Base-2

19
Q

Base 2?

A

2^1 2^2 …. etc

20
Q

What does the American Standard Code for Information Interchange do?

A

They assigned each letter of the alphabet and symbols their own code.

21
Q

4 parts to problem-solving are?

A

Decompose, pattern matching, abstraction, and algorithm.

22
Q

Decompose?

A

break down a problem

23
Q

pattern matching?

A

find similarities.

24
Q

Abstraction?

A

Pull out specific differences to make one solution work for multiple problems.