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
(40)

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

(Multiple Choice)
4.8/5
(34)

The null terminator stands for ASCII code

(Multiple Choice)
4.8/5
(30)

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

(Multiple Choice)
5.0/5
(29)

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

(True/False)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
5.0/5
(30)

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
(39)

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

(Multiple Choice)
4.8/5
(26)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.7/5
(33)

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
(31)

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

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(42)

The escape sequence that represents the null terminator is

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.9/5
(33)

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

(True/False)
4.7/5
(32)

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

(True/False)
4.8/5
(30)

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

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

Filters

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