Exam 9: Files, Printing, and Structures

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

This control is used to display a standard Windows Open dialog box.

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

B

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

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

A

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

Free
(Multiple Choice)
5.0/5
(40)
Correct Answer:
Verified

C

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.8/5
(37)

This predefined constant moves the print position forward to the next even multiple of 8 columns.

(Multiple Choice)
4.8/5
(35)

A structure should be used instead of an array when .

(Multiple Choice)
5.0/5
(41)

A file is like a stream of data that must be read from its beginning to its end.

(Multiple Choice)
4.8/5
(39)

This property allows the developer to specify the type of files that will appear in a dialog box.

(Multiple Choice)
4.7/5
(39)

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

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.8/5
(44)

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.9/5
(34)

___ 14. All of the following steps must be taken when a file is used by an application except _.

(Multiple Choice)
4.7/5
(38)

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

(Multiple Choice)
4.9/5
(46)

To change the color of text in a windows form, you could use this.

(Multiple Choice)
4.7/5
(30)

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?

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.8/5
(32)

The StreamReader.Read method will ___.

(Multiple Choice)
4.9/5
(34)

Identify the following statements which will: Format a string to contain the word "Name" in a column of 20 characters wide, followed by the word "Address" in a second column, also 20 characters wide.

(Multiple Choice)
4.9/5
(38)

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

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

Filters

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