Give an example of a common use of a dialog box.
What will be an ideal response?
A confirm dialog box presents the user with a simple yes-or-no question. A file chooser is a dialog box that
presents the user with a file navigator that can be used to select a file. A color chooser is a dialog box that allows the user to
select an RGB color.
You might also like to view...
(Packing Characters into Unsigned Integers) The left-shift operator can be used to pack two character values into a two-byte unsigned integer variable. Write a program that inputs two charac- ters from the keyboard and passes them to function packCharacters. To pack two characters into an unsigned integer variable, assign the first character to the unsigned variable, shift the unsigned variable
left by 8 bit positions and combine the unsigned variable with the second character using the bitwise inclusive-OR operator. The program should output the characters in their bit format before and after they’re packed into the unsigned integer to prove that they’re in fact packed cor- rectly in the unsigned variable. What will be an ideal response?
InputStream and OutputStream are subclasses of the ____ class.
A. IO B. Object C. Stream D. IOStream