{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

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