Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

21. Values in an array are stored and worked with using a __________. a. method b. locator c. subscript d. element locator 22. In the

21. Values in an array are stored and worked with using a __________. a. method b. locator c. subscript d. element locator

22. In the array declaration below, what is the significance of the number 7? Dim strNames(7) As String a. It indicates the number of elements in the array. b. Its the upper bound (highest subscript value) of the array. c. Its the value assigned to the array elements. d. Its one greater than the upper bound of the array.

23. The lowest possible subscript of an array is __________. 0 1 1 There is no limit

24. When opening a file, use this method to determine whether a file exists before you attempt to open it: a. ExistFile(filename) b. IO.Exists(filename) c. System.IO.File.Exists(filename) d. System.File.Exists(filename)

25. The StreamReader objects __________ is used to determine when the end of the file has been reached. a. EndOfStream property b. Poke method c. EOF flag d. FileEnd flag

26. This control is used to display a standard Windows Open dialog box. a. OpenDialog b. OpenFileDialog c. OpenWindow d. OpenWindowDialog

27. The _______ method displays a dialog window when selecting a file that you want to open. a. DisplayDialogControl b. DisplayDialog c. ShowDialog d. ShowControl

28. When the PrintDocument controls Print method is executed, it triggers the __________ event. a. Printer b. PrintDoc c. PagePrint d. PrintPage

29. All of the following steps must be taken when a file is used by an application except ______. a. the file must be opened. If the file does not exist, the file will be created. b. the file must have a fully qualified path when opening the file. c. data is either written to the file or read from the file. d. when the application is finished using the file, the file is closed.

30. Which of the following statements are not true about text files? a. contains plain text b. cannot be viewed with an editor such as Notepad c. is the simplest type of data file d. known as a sequential-access file

31. When a file is selected from an Open dialog box, the path and file name are stored in the controls __________ property? a. Filename b. PathName c. File d. Item

32. This method is used to add more data to the end of an existing file. a. System.IO.File.OpenText b. System.IO.File.AppendText c. System.IO.File.CreateText d. System.IO.File.OpenNew

33. This method places an item of data in a file without terminating the line. a. WriteLine b. ReadLine c. Append d. Write

34. What does the following line do? Do Until inputFile.EndOfStream

a. Checks to see if the file exists b. Checks to see if the next input is 1 c. Checks to see if the file is empty d. Checks to see if all the data in the file has been read

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago