Exam 10: Structures and Sequential Access Files

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The syntax used to declare a StreamWriter variable is ____. The syntax used to declare a StreamWriter variable is ____.

Free
(Not Answered)
This question doesn't have any answer yet
Ask our community

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

Free
(Not Answered)
This question doesn't have any answer yet
Ask our community

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

Free
(True/False)
4.8/5
(24)
Correct Answer:
Verified

False

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

Programmers refer to a sequence of characters as a ____.

(Multiple Choice)
4.7/5
(33)

An application contains the Structure statement shown below: An application contains the Structure statement shown below:    Write a Dim statement that declares a Furniture variable named sofas.Then,write assignment statements that assign the value Sectional to the strStyle member,and assign the number 1895.99 to the decPrice member. Write a Dim statement that declares a Furniture variable named sofas.Then,write assignment statements that assign the value "Sectional" to the strStyle member,and assign the number 1895.99 to the decPrice member.

(Essay)
4.8/5
(36)

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

Getting data from a file is referred to as "reading from the file," and sending data to a file is referred to as "writing to the file."

(True/False)
4.9/5
(43)

You should ____ the pictureFrame.txt file as soon as you have finished using it.

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

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

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

(Multiple Choice)
4.9/5
(38)

An application contains the Structure statement shown below: An application contains the Structure statement shown below:    Write a Dim statement that declares an eight-element one-dimensional array of SalonInfo variables.Name the array mySalonInfo.Write the code to store the following data in the array:   Write a Dim statement that declares an eight-element one-dimensional array of SalonInfo variables.Name the array mySalonInfo.Write the code to store the following data in the array: An application contains the Structure statement shown below:    Write a Dim statement that declares an eight-element one-dimensional array of SalonInfo variables.Name the array mySalonInfo.Write the code to store the following data in the array:

(Essay)
4.9/5
(43)

To access a member of a structure variable in an array,you use the syntax ____. To access a member of a structure variable in an array,you use the syntax ____.

(Not Answered)
This question doesn't have any answer yet
Ask our community

A(n)____ is defined as a sequence (stream)of characters followed by the newline character.

(Multiple Choice)
4.8/5
(25)

Describe two advantages to programmers of using structures and structure variables.

(Essay)
4.8/5
(33)

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.

(Essay)
4.9/5
(39)

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

(True/False)
4.8/5
(44)

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

In the syntax for the PadLeft method,____ is an integer that represents the total number of characters you want the string to contain.

(Multiple Choice)
4.9/5
(31)
Showing 1 - 20 of 58
close modal

Filters

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