Shared Flashcard Set

Details

CISC 192 Chapter 10 Mesa
Back of the Book Questions
28
Computer Science
Undergraduate 2
12/06/2012

Additional Computer Science Flashcards

 


 

Cards

Term
The _______ function returns true if the character argument is uppercase.
Definition
isupper
Term
The _______ function returns true if the character argument is a letter of the alphabet.
Definition
isalpha
Term
The _______ function returns true if the character argument is a digit.
Definition
isdigit
Term
The _______ function returns true if the character argument is a whitespace character.
Definition
isspace
Term
The ______ function returns the uppercase equivalent of its character argument.
Definition
toupper
Term
The _______ function returns the lowercase equivalent of its character argument.
Definition
tolower
Term
The ________ file must be included in a program that uses character testing functions.
Definition
cctype
Term
The _______ function returns the length of a string.
Definition
strlen
Term
To _______ two strings means to append one string to the other.
Definition
concatenate
Term
The ________ function concatenates two strings.
Definition
strcat
Term
The ________ function copies one string to another.
Definition
strcopy
Term
The ________ function searches for a string inside of another one.
Definition
strstr
Term
The _______ function compares two strings.
Definition
strcmp
Term
The ________ function copies, at most, n number of characters from one string to another.
Definition
strncopy
Term
The _______ function returns the value of a string converted to an integer.
Definition
atoi
Term
The _______ function returns the value of a string converted to a long integer.
Definition
atol
Term
The _______ function returns the value of a string converted to a float.
Definition
atof
Term
The _______ function converts an integer to a string.
Definition
itoa
Term
Character testing functions such as isupper, accept strings as arguments and test each character in the string. (T/F)
Definition
FALSE
Term
If toupper's argument is already uppercase, it is returned as is, with no changes. (T/F)
Definition
TRUE
Term
If tolowers's argument is already lowercase, it will be inadvertently converted to uppercase. (T/F)
Definition
FALSE
Term
The strlen function returns the size of the array containing a string.
Definition
false, length not size
Term
If the starting address of a C-string is passed into a pointer parameter, it can be assumed that all the characters, from that address up to the byte that holds the null terminator, are part of the string. (T/F)
Definition
TRUE
Term
C-string handling functions accept as arguments pointers to strings (array names or pointer variables), or literal strings. (T/F)
Definition
TRUE
Term
The strcat function checks to make sure the first string is large enough to hold both strings before performing the concatenation. (T/F)
Definition
False, no bound checking in C++
Term
The strcpy function will overwrite the contents of its first string argument. (T/F)
Definition
TRUE
Term
The strcpy function performs no bounds checking on the first argument. (T/F)
Definition
TRUE
Term
There is no difference between "847" and 847. (T/F)
Definition
FALSE
Supporting users have an ad free experience!