Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
20 Cards in this Set
- Front
- Back
In C++, a C-string is a sequence of characters stored in consecutive memory, terminated by a ________. |
null character |
|
This function will return true if its argument is a printable character other than a digit, letter, or space. |
ispunct |
|
The strcpy function's arguments are: |
two addresses |
|
This function converts a C-string to an integer and returns the integer value. |
atoi |
|
The statement: char var1 = tolower('A'); will result in: |
var1 storing the ASCII value for lower case 'a'.
|
|
To define a C-string that will store students' last names of up to 25 characters in length, which is an appropriate statement? |
char lastName[26]; |
|
To change a character argument from lower to upper case, use this function. |
toupper |
|
A practical application of this function is to allow a user to enter a response of 'y' or 'Y' to a prompt. |
tolower or toupper |
|
True/False: C++ 11 introduces a function named to_string that converts a numeric value to a string object. |
true |
|
To determine whether a character is whitespace, use this function. |
isspace |
|
The null terminator stands for this ASCII code. |
0 |
|
This library function reverses the order of a C-string. |
None of these |
|
To use the strlen function in a program, you must also write #include ________. |
<cstring>
|
|
Which statement converts the string "10" to the integer value 10? |
atoi("10") |
|
This function concatenates the contents of one C-string with another C-string. |
strcat |
|
To test whether a character is a printable character, use this function.isprint |
isprint |
|
Look at the following statement. if (!isdigit(var1)) The expression being tested by this statement will evaluate to true if var1 is: |
both an alphabetic character and a symbol such as $ or & |
|
True/False: You may use the <, >, <=, >=, ==, and != relational operators to compare string objects. |
true |
|
This function accepts pointers to two C-strings and an integer argument, which indicates how many characters to copy from the second C-string to the first. |
strncpy |
|
A library function that can find one C- string inside another is: |
strstr |