M# Flashcards

1
Q

is usually declared as an array of char

A

C-String

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

declares a set of functions to

work with C style string (null terminated byte strings).

A

header file

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

copies character string from source to destination

A

strcpy

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

copies a specified bytes of characters from source to

destination.

A

strncpy

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

appends a copy of a string to the end of another string

A

strcat

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

appends a specified number of characters of a string to

the end of another string

A

strncat

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

returns length of given string

A

strlen

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

compares two null terminating string. The

comparison is done lexicographically.

A

strcmp

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

compares a specified number of characters of two
null terminating strings. The comparison is done l
exicographically.

A

strncmp

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

can be used to read a line of input
and place the string of characters on that line into a C-string
variable.

A

getline

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

allows your program to read in one character

of input and store it in a variable of type char

A

get function

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

Convert uppercase letter to lowercase

A

tolower

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

Convert lowercase letter to uppercase

A

toupper

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

Check if character is lowercase letter

A

islower

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

Check if character is alphabetic

A

isalpha

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

Check if character is decimal digit

A

isdigit

17
Q

Check if character is alphanumeric

A

isalnum

18
Q

Check if character is a white space

A

isspace

19
Q

Check if character is a punctuation character

A

ispunct

20
Q

Check if character is printable

A

isprint

21
Q

Check if character has graphical representation

A

isgraph

22
Q

Check if character is a control character

A

Isctrl

23
Q
The class which provides a definition to do so is called
a
A

String class

24
Q

needs to be included in the program

to use the String class.

A

String header

25
Q
This function member is analogous to the member
function get except that it is used for output rather than
input.
A

put

26
Q

This header declares a set of functions to classify and

transform individual characters

A

cctype

27
Q

Check if character is uppercase letter

A

isupper

28
Q

calculates the number of characters in

the string including spaces and punctuation marks.

A

length()

29
Q

Values present in two strings can be checked for equality either
using the X or the X

A

equality operator ‘==’

compare() function.

30
Q

Two string can be joined either by using the X

or the X

A

addition operator ‘+’

append() function