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

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

A test using the isupper function will return False if the argument is an uppercase character.

(True/False)
4.8/5
(89)

The expression being tested by the statement shown below will evaluate to true if var1 is __________. if (!isdigit(var1))

(Multiple Choice)
4.9/5
(82)

The null terminator stands for ASCII code

(Multiple Choice)
4.9/5
(75)

The __________ function will change a character argument from uppercase to lowercase.

(Multiple Choice)
5.0/5
(76)

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

(True/False)
4.9/5
(80)

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

(Multiple Choice)
4.8/5
(82)

The __________ function will change a character argument from lowercase to uppercase.

(Multiple Choice)
5.0/5
(76)

Select all that apply. Which of the following would be appropriate in a program that allows the user to enter either an uppercase or lowercase character in response to a prompt?

(Multiple Choice)
4.8/5
(84)

Which of the following will return true if the argument is a printable character other than a digit, letter, or space?

(Multiple Choice)
4.9/5
(73)

To test whether a character is a numeric digit character, use the __________ function.

(Multiple Choice)
4.8/5
(91)

To test whether a character is a printable character, use the __________ function.

(Multiple Choice)
4.8/5
(87)

The function that accepts a C-string containing a number as its argument and returns the integer equivalent is

(Multiple Choice)
4.8/5
(74)

Although C++ provides ample library functions to handle numeric values, we must write all of our own functions to manipulate character values.

(True/False)
4.9/5
(80)

Which of the following defines an array of C-strings that will hold 49 characters and the null terminator?

(Multiple Choice)
4.8/5
(86)

The following string that uses a semicolon as a delimiter contains four tokens: "apple;cherry;lemon cream"

(True/False)
4.8/5
(84)

The escape sequence that represents the null terminator is

(Multiple Choice)
4.8/5
(77)

The function that reverses the order of a C-string is

(Multiple Choice)
4.9/5
(78)

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

(True/False)
4.7/5
(82)

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

(True/False)
4.8/5
(77)

The ftoa function converts a floating-point value to an ASCII value.

(True/False)
4.8/5
(82)
Showing 21 - 40 of 47
close modal

Filters

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