Array 2 Flashcards

1
Q

Each item stored in an array is called an _____.

A

Element

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

Location of each element

A

Index

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

Index starts with _

A

0

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

______is used to create an
array with data type and value list specified in its arguments.

A

array(data_type, value_list)

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

5 Basic operations supported by an array

A

Traverse, Insertion, Deletion, Search, Update

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

Print all the array elements one by one.

A

Traverse

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

Adds an element at the given index.

A

Insertion

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

Deletes an element at the given index.

A

Deletion

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

Searches an element using the given index or by the value.

A

Search

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

Updates an element at the given index.

A

Update

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

_________are the codes that are used to define the type of
value the array will hold.

A

Typecode

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

Represents signed integer of size 1 byte/s

A

b

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

Represents unsigned integer of size 1 byte

A

B

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

Represents character of size 1 byte

A

c

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

Represents signed integer of 2 bytes

A

i

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

Represents unsigned integer of 2 bytes

A

I

17
Q

Represents floating points of size 4 bytes

A

f

18
Q

Represents floating points of 8 bytes

A

d