Exam 10: Characters, C-Strings, and More About the String Class
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
You may use the <, >, <=, >=, ==, and != relational operators to compare string objects.
Free
(True/False)
4.8/5
(30)
Correct Answer:
True
What is the output of the following statement?


Free
(Multiple Choice)
4.8/5
(47)
Correct Answer:
B
"Whitespace" encompasses which of the following?
Free
(Multiple Choice)
5.0/5
(38)
Correct Answer:
D
A test using the isupper function will return false if the argument is an uppercase character.
(True/False)
4.8/5
(35)
To test whether a character is a numeric digit character, use this function.
(Multiple Choice)
4.9/5
(38)
The ftoa function converts a floating-point value to an ASCII value.
(True/False)
4.8/5
(34)
To determine whether a character is whitespace, use this function.
(Multiple Choice)
5.0/5
(32)
The isdigit function will return a true if its argument is a digit between 0 and 9.
(True/False)
4.9/5
(30)
If a C-string that cannot be converted to a numeric value is passed to the atoi function, the function's behavior is undefined by C++.
(True/False)
4.9/5
(41)
To use the strlen function in a program, you must also write #include ________.
(Multiple Choice)
4.8/5
(33)
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.
(Multiple Choice)
4.8/5
(30)
A library function that can find one C- string inside another is:
(Multiple Choice)
4.9/5
(37)
Look at the following statement.
The expression being tested by this statement will evaluate to true if var1 is:

(Multiple Choice)
4.7/5
(43)
If an uppercase character is passed as an argument to toupper, the result will be an uppercase character.
(True/False)
4.8/5
(35)
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
(40)
The strlen function returns a C-string's length and adds one for \0.
(True/False)
4.9/5
(27)
This function will return true if its argument is a printable character other than a digit, letter, or space.
(Multiple Choice)
4.8/5
(40)
The C++ library provides functions for converting a string representation of a number to a numeric data type, and vice-versa.
(True/False)
4.8/5
(36)
The C++ compiler performs strict array bounds checking when it encounters an array of characters.
(True/False)
4.9/5
(40)
Showing 1 - 20 of 45
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)