Exam 10: Characters, C-Strings, and More About the String Class

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The itoa function is similar to atoi, but it works in reverse.

(True/False)
4.8/5
(73)

To change a lower case character to an upper case character, use this function.

(Multiple Choice)
5.0/5
(78)

This function concatenates the contents of one C-string with another C-string.

(Multiple Choice)
4.8/5
(74)

The null terminator stands for this ASCII code.

(Multiple Choice)
4.7/5
(74)

This function accepts a C-string as an argument and converts the string to a long integer.

(Multiple Choice)
4.9/5
(74)

This library function reverses the order of a C-string.

(Multiple Choice)
5.0/5
(82)

This is the escape sequence representing the null terminator.

(Multiple Choice)
4.9/5
(85)

This function accepts a pointer to a C-string as an argument, and it returns the length of the C-string (not including the null terminator).

(Multiple Choice)
4.9/5
(77)

After the following statement executes, what value is stored in the variable num? num =atoi⁡(′′1000′′); =\operatorname{atoi}\left(^{\prime\prime}1000^{\prime\prime}\right) ;

(Multiple Choice)
4.8/5
(70)

A practical application of this function is to allow a user to enter a response of 'y' or 'Y' to a prompt.

(Multiple Choice)
5.0/5
(89)

To determine whether a character entered is a letter of the alphabet, use this function.

(Multiple Choice)
4.9/5
(81)

To change a character argument from lower to upper case, use this function.

(Multiple Choice)
4.9/5
(92)

This function accepts a C-string containing a number as its argument and returns the integer equivalent.

(Multiple Choice)
4.7/5
(76)

When using the strcat function, you must be careful not to overwrite the bounds of an array.

(True/False)
4.9/5
(68)

This function converts a C-string to an integer and returns the integer value.

(Multiple Choice)
4.9/5
(87)

The strcpy function's arguments are:

(Multiple Choice)
4.9/5
(89)

By being able to pass arrays as arguments, you can write your own functions for processing C-strings.

(True/False)
4.8/5
(67)

In C++, a C-string is a sequence of characters stored in consecutive memory, terminated by a ________.

(Multiple Choice)
4.9/5
(76)

C++ 11 introduces a function named to_string that converts a numeric value to a string object.

(True/False)
4.7/5
(76)

To test whether a character is a printable character, use this function.

(Multiple Choice)
4.9/5
(96)
Showing 21 - 40 of 45
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)