Exam 9: Files, Printing, and Structure

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following declares a structure data type named Complex, which has two fields named Real and Imaginary, both of which are of type Double?

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

B

This method is used to add more data to the end of an existing file.

Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
Verified

B

Which of the following code segments creates a new file named address.txt, writes the following two lines to the file, and then closes the file? Bob Johnson Somewhere USA

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

C

When a file is selected from an Open dialog box, the path and file name are stored in the control's ______property?

(Multiple Choice)
4.8/5
(34)

Which of the following statements are not true about text files?

(Multiple Choice)
4.7/5
(35)

Which of the following code segments writes the contents of three parallel arrays named strStudentName, intID, and strMajor to a file in the format below? Assume all arrays have the same number of elements. Vince Student, 1234, Computer Science Nancy Student, 4321, Electrical Engineering

(Multiple Choice)
4.7/5
(36)

An application must first ______a file before it can be used.

(Multiple Choice)
4.8/5
(44)

The fields within a structure can be __________.

(Multiple Choice)
4.9/5
(33)

An Open dialog box displays the current folder unless the ______property specifies a different path.

(Multiple Choice)
4.7/5
(41)

What does the following line do? Do Until inputFile.EndOfStream

(Multiple Choice)
4.7/5
(42)

To left justify the columns in the String.Format method, use preceding the column width.

(Multiple Choice)
4.7/5
(36)

The color of text printed by an

(Multiple Choice)
4.9/5
(32)

In order to retain data while a program is not running, data must be saved in __________.

(Multiple Choice)
4.9/5
(38)

When the PrintDocument control's Print method is executed, it triggers the ______event.

(Multiple Choice)
4.8/5
(40)

The following statements describe advantages of the Open and Save As dialog boxes except __________.

(Multiple Choice)
4.9/5
(40)

The StreamWriter's CreateText method will _____________.

(Multiple Choice)
4.8/5
(40)

This method places an item of data in a file without terminating the line.

(Multiple Choice)
4.8/5
(36)

To serve as a visual reminder that the structure or class name is not a variable, structure names and class names should ___________.

(Multiple Choice)
4.9/5
(39)

When opening a file, use this method to determine whether a file exists before you attempt to open it:

(Multiple Choice)
4.8/5
(42)

The StreamReader object's ______is used to determine when the end of the file has been reached.

(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 36
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)