Filters
Question type

Which of the following opens the employee.txt file for output,creates a StreamWriter object,and assigns it to the outFile variable? Which of the following opens the employee.txt file for output,creates a StreamWriter object,and assigns it to the outFile variable?

Correct Answer

verifed

verified

You can use the ____ to open a sequential access file for output.


A) CreateText method
B) StreamReader object
C) StreamWriter object
D) AppendText method

E) All of the above
F) C) and D)

Correct Answer

verifed

verified

You need to create a report using the pictureFrame.txt sequential access file.The report provides a list of all picture frames with a size of 5x7.The report will be saved as another sequential access file named pictureFrame57.txt.Your first step is to ____.


A) declare a StreamWriter variable for the output file
B) open the pictureFrame57.txt file for output using the CreateText method
C) declare a StreamReader variable for the input file
D) open the pictureFrame.txt file

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Variables declared using a structure are often referred to as ____.


A) functions
B) Subs
C) structure variables
D) objects

E) None of the above
F) All of the above

Correct Answer

verifed

verified

You should use the ____ method to close a sequential access file as soon as you are finished using it.


A) Exit
B) Close
C) End
D) Quit

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Which of the following removes the sixth item from the lstTrees control? Which of the following removes the sixth item from the lstTrees control?

Correct Answer

verifed

verified

You cannot include an array in a structure.

A) True
B) False

Correct Answer

verifed

verified

Write the statement that would write two columns of text to an output file named outFile.The first column,which contains the data for the strStudentID variable,must contain nine characters.The second column contains the data for the strLastName variable.

Correct Answer

verifed

verified

Examples of text stored in sequential access files include an employee list,a memo,or a sales report.

A) True
B) False

Correct Answer

verifed

verified

Write an If clause that determines whether the sequential access file named contacts.txt exists.If the file exists,open the file.If the file does not exist,display the message "File not found" in a message box.The application is named "View Contacts".

Correct Answer

verifed

verified

Which of the following declares a StreamReader variable named newFile?


A) Dim inFile As IO.StreamReader
B) Dim newFile As IO.StreamReader
C) Dim newFile As IO.StreamWriter
D) Dim newFile As StreamReader

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

The ____ method writes a newline character after the data.


A) WriteLine
B) ReadLine
C) Write method
D) Read

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

You reserve memory locations by declaring a structure variable.

A) True
B) False

Correct Answer

verifed

verified

Which of the following statements should be used first when opening the input file? Which of the following statements should be used first when opening the input file?

Correct Answer

verifed

verified

After declaring a StreamReader variable,you can use the ____ to open a sequential access file for input;doing this automatically creates a StreamReader object.


A) OpenText method
B) Write method
C) StreamWriter object
D) ReadLine method

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

Write the statement that would remove the item "RGT12985" from the lstPartNumber control.

Correct Answer

verifed

verified

Files to which information is written are called input files.

A) True
B) False

Correct Answer

verifed

verified

A file to which information is written is referred to as a(n) ____ file.


A) report
B) text
C) output
D) data

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

Showing 41 - 58 of 58

Related Exams

Show Answer