VB.NET Dialog Boxes, File I/O, and Printing

Test your knowledge of standard dialog controls, StreamReader/StreamWriter file operations, and printing functionality in Visual Basic .NET.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which is not a standard dialog box?

  1. ColorDialog
  2. FontDialog
  3. OpenDialog
  4. PrintDialog
  5. ZoomDialog
Question 2 Multiple Choice (Single Answer)

Why are standard dialog boxes used?

  1. They are easy to create.
  2. They provide functionality familiar to users.
  3. Developers can create their own versions of Dialog boxes.
  4. Both a and b.
  5. All of the above.
Question 3 Multiple Choice (Single Answer)

How are dialog boxes implemented in a program?

  1. A dialog box is generated programmatically.
  2. A dialog control is placed in the component tray.
  3. A dialog control is placed on the form.
  4. Both a and b.
  5. All of the above.
Question 4 Multiple Choice (Single Answer)

The standard prefix for a dialog control is:

  1. dal.
  2. dia.
  3. dil.
  4. dlc.
  5. dlg.
Question 5 Multiple Choice (Single Answer)

What is the method used to activate the color dialog box?

  1. ActivateDialog
  2. DisplayDialog
  3. ExhibitDialog
  4. ShowDialog
  5. StartDialog
Question 6 Multiple Choice (Single Answer)

The name of the class used to programmatically create a color dialog box is:

  1. Color
  2. ColorBox
  3. ColorDialog
  4. ColorDisplay
  5. ColorDisplayBox
Question 7 Multiple Choice (Single Answer)

The name of the class used to programmatically create a font dialog box is:

  1. Font.
  2. FontBox.
  3. FontDialog.
  4. FontDisplay.
  5. FontDialogBox.
Question 8 Multiple Choice (Single Answer)

Which OpenFileDialog control property specifies the choices in the "Files of type" dropdown box?

  1. FileName
  2. FileNames
  3. FileType
  4. Filter
  5. FilterIndex
Question 9 Multiple Choice (Single Answer)

Which property is the same in the OpenFileDialog and the SaveFileDialog control?

  1. FileName
  2. Filter
  3. InitialDirectory
  4. Both a and b.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

Which method is found in both the StreamReader and StreamWriter class?

  1. Close
  2. Peak
  3. Flush
  4. Both a and b.
  5. All of the above.
Question 11 Multiple Choice (Single Answer)

The StreamReader and StreamWriter class are both subclasses of which class?

  1. IO
  2. Stream
  3. StreamIO
  4. Both a and b.
  5. All of the above.
Question 12 Multiple Choice (Single Answer)

Which dialog control allows the user to zoom in on a document?

  1. PrintDialog
  2. PrintPreview
  3. PageSetupDialog
  4. Both a and b.
  5. All of the above.
Question 13 Multiple Choice (Single Answer)

Which dialog control has a Document property?

  1. PrintDialog
  2. PrintPreview
  3. PageSetupDialog
  4. Both a and b.
  5. All of the above.
Question 14 Multiple Choice (Single Answer)

Which object must be assigned to the Document property?

  1. Document
  2. DocumentPage
  3. DocumentPrint
  4. PageDocument
  5. PrintDocument
Question 15 Multiple Choice (Single Answer)

When is the PrintPage event activated?

  1. When the PrintDialog control is displayed.
  2. When an assignment is made to the Document property.
  3. The first time the Print method is called.
  4. Every time a page is printed after the Print method is called.
  5. None of the above.