Question
a.
an asterisk
b.
a space enclosed in single quotes
c.
the number 0
d.
a zero-length string
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. You typically initialize a String variable to _____
Similar Questions
Discover Related MCQs
Q. The end of string is recognized by
View solution
Q. The string HELLO WORLD needs
View solution
Q. Which of the following stream manipulators advances the cursor to the next line on the computer screen?
View solution
Q. You can use the C++ _____ function to assign a value to a String variable
View solution
Q. The standard input stream, which refers to the keyboard, is called
View solution
Q. To include the double quotes as part of the control string we use the symbol
View solution
Q. To use the strcpy function, you must include the _____ header file in your program
View solution
Q. We can output text to an object of class ofstream using the insertion operator « because
View solution
Q. When you write to a file rather than the screen, you use the C++ class _____
View solution
Q. Which of the following statements opens a file named temp.dat for output?
View solution
Q. Which of the following will store the letter H in a Character variable named initial?
View solution
Q. Which of the following creates a String named constant called partNo, whose value is AB45?
View solution
Q. The function strcmp("Jose", "JOSE") will return _____
View solution
Q. The standard output stream, which refers to the computer screen, is called
View solution
Q. Which of the following is a string literal constant?
View solution
Q. Which is an instantiation of the basic_string class template?
View solution
Q. Which character is used to terminate the string?
View solution
Q. How does the strings are stored in the memory?
View solution
Q. Where are the strings stored?
View solution
Q. What will happen if a string is empty?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...
Software Engineering
Learn about the systematic approach to developing software with our Software...