Array 1 Flashcards

1
Q

The foundation for all data sciences in Python

A

Arrays

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

A container for items with the same type

A

Arrays

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

TRUE OR FALSE: A combination of the arrays could save a lot of time
by reducing the overall size of the code.

A

TRUE

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

What’s faster, list or array? Why?

A

Array, because it uses less memory

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

Syntax to Create Python

A

Identifier, Module, Method, Type Code, Elements

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

Specify a name like usually, you do for variables

A

Identifier

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

Python has a special module for creating array in Python, called “array” – you must import it before using it

A

Module

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

The array module has a method for initializing the array. It takes two arguments, type code and elements.

A

Method

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

Specify the data type.

A

Type Code

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

Specify the items within the square brackets

A

Elements

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

The elements are within a _______

A

Bracket

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