Exam 10: Structures and Sequential Access Files

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

Which of the following determines whether an item is selected in the lstTrees control?

Free
(Multiple Choice)
4.7/5
(30)
Correct Answer:
Verified

B

Files that are read by the computer are called ____ files.

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

C

You use the ____ member access operator to separate the structure variable's name from the member variable's name.

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

D

Case-Based Critical Thinking Questions Case 1 - Frames Unlimited Frames Unlimited is a wholesale picture and poster frame business. Frame data is stored in sequential access files that contain four columns: item number, item name, size, and price. Which of the following statements should be used first when opening the input file?

(Multiple Choice)
4.9/5
(42)

What is the difference between a structure and a structure variable?

(Essay)
4.8/5
(33)

In Visual Basic, you use a(n) ____ to read data from a sequential access file.

(Multiple Choice)
4.8/5
(38)

What is the difference between an input file and an output file?

(Essay)
4.9/5
(28)

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

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.9/5
(36)

In addition to getting data from the keyboard and sending data to the computer screen, an application can also get data from and send data to a file on a disk.

(True/False)
4.8/5
(30)

Which of the following declares a StreamReader variable named newFile ?

(Multiple Choice)
4.8/5
(38)

Write a Structure statement that defines a structure named Vehicle. The structure contains three member variables named strMake , strModel , and intYear . Then write the Private statement that declares a Vehicle variable named truck .

(Essay)
4.8/5
(37)

In Visual Basic, you use a(n) ____ to write a stream of characters to a sequential access file.

(Multiple Choice)
4.8/5
(30)

Assume that the variable amount contains the value 46. How many characters will be padded in the statement below? amount = amount.ToString.PadLeft(5)

(Multiple Choice)
4.8/5
(34)

Case-Based Critical Thinking Questions Case 1 - Frames Unlimited Frames Unlimited is a wholesale picture and poster frame business. Frame data is stored in sequential access files that contain four columns: item number, item name, size, and price. 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 ____.

(Multiple Choice)
4.9/5
(38)

Write the statement that would remove the selected item from the lstFlowers control if an item is selected.

(Essay)
4.9/5
(26)

The ____ method writes a newline character after the data.

(Multiple Choice)
4.7/5
(38)

You cannot include an array in a structure.

(True/False)
4.8/5
(36)

Files to which information is written are called input files.

(True/False)
4.8/5
(31)

Write the code to declare a variable named outFile that can be used to write data to a sequential access file. Then write the statement to open a sequential access file named customers.txt for output.

(Essay)
4.9/5
(34)
Showing 1 - 20 of 60
close modal

Filters

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