Answer the following statements true (T) or false (F)

1. If I have already written the```
#include
```header, I can overload
```
operator<< for
``````
class A
```as follows:
2. You have a helping function that is not a member of your class. You want your class
member functions to be able to see it and use it but no other file in your program may
see it. You can place it in an unnamed namespace to make it invisible from outside the file.
3. Namespaces may not be nested.
4. During name resolution, nested namespaces behave like nested blocks.


1. True
2. True
3. False
4. True

Computer Science & Information Technology

You might also like to view...

All file properties can be directly changed by users.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Rewrite the program in Listing 13.10 so that it has all of the following changes:

• The class name is MemoSaver2. • There are six buttons instead of five at the bottom of the GUI. They are arranged as follows: Hint: Use the GridLayout manager on the button panel. • When the user saves the text as the first memo, the text area changes so that it says Memo 1 saved, and when the second memo is saved, the text area changes to say Memo 2 saved. (See Self-Test Question 43 for a hint.) • When the Exit button is clicked, the program ends, and the window goes away. The close-window button also ends the program. So the Exit button and the close-window button perform the same action. • In addition to the default constructor, another constructor produces the same display, except that the text area can accommodate a given number of lines and characters per line. This constructor has the following form: public MemoSaver2(int lineCount, int charCount) • The text area has line wrap, so that if more characters are entered than will fit on the line, the extra characters automatically go on the next line. • The method main constructs two windows, one using the default constructor and one using the added constructor with arguments 5 and 60, in that order. This program can be created by modifying MemoSaver.java, Listing 13.10, but there is one potential problem with the display. Depending on the resolution of the user’s screen, the window size may be too small to show the complete text panel. If that happens, the first few characters typed into the text box will not be visible. This is a little disconcerting; unless enough characters are typed it will appear that the text box is not letting the user enter anything. Increasing the width of the window from 600 should fix the problem (changing it to 700 works for a screen resolution of 1024 by 768).

Computer Science & Information Technology

The ____ data type stores only the actual character string.

A. CHAR B. VARCHAR C. TEXT D. STRING

Computer Science & Information Technology

Use the ____ dialog box to specify the fields you want to include in an address block.

A. Insert Address Block B. Insert Field C. Edit Address Block D. Format Address Block

Computer Science & Information Technology