Module 2 Flashcards

(12 cards)

1
Q

is a collection of similar elements of same data type at a contiguous memory location.

A

array

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

Components of Array

A

Array name
index type
base type

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

collective name for the array element.

A

Array name

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

set of subscripts that are used to differentiate one element to another.

A

Index type

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

data type of array element.

A

Base type

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

Also called as linear array

A

One Dimensional Array

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

The entire array has only one name. However, you need to be able to refer to individual elements of the array.

A

ARRAY INDEX

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

TYPES OF ARRAY

A
  • ONE-DIMENSIONAL ARRAYS
  • MULTI DIMENSIONAL ARRAYS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

declares the base type/data type of the array.

A

type

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

specifies the number of elements that an array can hold.

A

size

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

is used when you have to take input strings which have spaces in between them.

A

getline() function

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

returns an integer, which is a measure of the difference between the two strings.

A

compare()

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