Exam 10: Structures and Sequential Access Files
Exam 1: An Introduction to Visual Basic 201544 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure60 Questions
Exam 5: More on the Selection Structure58 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and SQL60 Questions
Select questions type
You can use the ____ to open a sequential access file for append.
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
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:
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:
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)
Which of the following determines whether an item is selected in the lstTrees control?
(Multiple Choice)
4.7/5
(29)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)