Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
C++ Study Set 1
Quiz 12: More on C-Strings and the String Class
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Assume that
str1
and
str2
are variables of type C- string. The proper expression to use when comparing them for equality is
Question 22
True/False
By being able to pass arrays as arguments, you can write your own functions for processing C- strings.
Question 23
True/False
The
itoa
function is similar to
atoi
, but it works in reverse.
Question 24
Multiple Choice
A library function that looks for the occurrence of one string inside another is
Question 25
True/False
The C++ compiler performs strict array bounds checking whenever an array of characters is being accessed.
Question 26
Multiple Choice
To use the
strlen
function in a program, you must
#include
Question 27
True/False
To use the
ostringstream
class, you must include the
memstringstream
header file.
Question 28
True/False
To declare a C- string, you should use the type expression
string
*
.
Question 29
True/False
There exist C++ stream classes that write and read in- memory strings.
Question 30
True/False
The following statement declares a
string
object and initializes it to
"Once
upon
a time"
. string theString("Once upon a time");