CHAP 7 STRINGS Flashcards

(10 cards)

1
Q

getch();

A

get character function

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

the + operator can be used between strings to add them together to make a new string.

A

concatenation

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

used to store multiple values in a single variable. a group or collection of similar kinds of elements or data items that are stored together in contiguous memory spaces

A

array

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

a pre defined function in , <>

A

conio.h
get character

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

contains a collection of character surrounded by double quotes

A

string

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

can also be defined as character array

A

string

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

string functions

A

length, input, ignore, substring, insert, replace, erase, find, assign

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

The array [ ] starts from [ ] and goes up to [ ] (where N is the total number of elements in the array). Programming languages are designed in such a way that the array name always points to the first element of an array.

A

index
zero
N-1

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

reads a single character from the keyboard and it doesn’t echo to the console and doesn’t wait for an enter to store variable.

A

get character

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

to use [ ], you must include an additional header file in the source code. it is called [ ]

A

string

<string>
</string>

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