Exam 10: Structures and Sequential Access Files

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

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

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

D

Data types created using the Structure statement are referred to as user-defined data types or structures.

Free
(True/False)
4.9/5
(27)
Correct Answer:
Verified

True

Which of the following statements will close the sequential access file associated with the outFile variable?

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

D

Programmers use structure variables to store related items in an array,even when the items have different data types.

(True/False)
4.8/5
(37)

Write the code to declare a variable named inFile that can be used to read data from a sequential access file.Then write the statement to open a sequential access file named samples.txt for input.

(Short Answer)
4.9/5
(36)

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

(Essay)
4.8/5
(27)

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

(Multiple Choice)
4.7/5
(29)

The syntax used to declare a StreamWriter variable is ____.

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.9/5
(33)

Which of the following can be used to determine whether the accounts.txt file exists?

(Multiple Choice)
4.9/5
(39)

The ____ method writes a newline character after the data.

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.8/5
(32)

When you pass a structure variable to a Sub or Function procedure,its member variables are not automatically passed.

(True/False)
4.8/5
(34)

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
(25)

Most programmers use the Structure statement,rather than the Class statement,to create data types that contain procedures.

(True/False)
4.9/5
(32)

Write a Do clause that reads each line of text in a sequential access file and assigns the line to the strTextLine variable.Process the loop until the end of the file has been reached.The file is associated with a StreamReader variable named inFile.

(Short Answer)
4.9/5
(27)

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
(28)

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 samples.txt for output.New data should be written to the file after any existing data in the file.

(Short Answer)
4.7/5
(38)

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
(38)

After opening a file for input,you can use the ____ to read the file's contents,one line at a time.

(Multiple Choice)
4.8/5
(28)
Showing 1 - 20 of 60
close modal

Filters

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