Exam 10: Characters, C-Strings, and More About the String Class
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
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 __________ 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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)