success error

Form Is Invalid!

Download New CIS170A Quiz 7 in vb

Download New CIS170A Quiz 7 in vb


1. A cassette tape’s methodology for accessing a single song is analogous to _____.
• a relational database
• VSAM file
• a sequential file
• an object-oriented database

2. A sequential access file is often used to _____.
• store data
• sort data
• streamline program code
• All of the above

3. “Appending” data to a file means you want to _____.

• add data at the end of the file
• add data at the beginning of the file
• search for the matching position in the file and add data there
• All of the above

4. To add data to a new file, you would _____.

• read and write a file
• append a file
• update a file
• create a file

5. Once you finish processing data in a file, you should _____ the file to avoid losing all of its data.

• close
• append
• exit
• output

6. When reading data from a sequential file, the data will be read _____.

• in alphabetical order
• sorted from smallest to largest
• in key field order
• in the order in which it was written

7. The sequential files created with our programs are exactly like data files created with _____.

• Microsoft Word
• Windows Notepad
• Windows Wordpad
• Microsoft OneNote
• All of the above

8. The Peek function can be used to help us detect the _____ character in a sequential file.

• end-of-function
• end-of-file
• start-of-function
• start-of-file

9. Select the example statement below that would open a sequential file for output.

• Dim sr As IO.StreamReader = IO.File.AppendText(“GRADES.TXT”)
• Dim sw As IO.StreamWriter = IO.File.CreateText(“GRADES.TXT”)
• Dim sw As IO.StreamWriter = IO.File.OpenText(“GRADES.TXT”)
• Dim sr As IO.StreamReader = IO.File.OpenText(“GRADES.TXT”)

10. Assume the file MONTHS.TXT contains 12 records, the names of all calendar months in ascending order. What is stored in OUTPUT.TXT after the following code is executed?

Dim letter As String
Dim sr As IO.StreamReader = IO.File.OpenText(“MONTHS.TXT”)
Do While sr.Peek -1
Dim sw As IO.StreamWriter = IO.File.CreateText(“OUTPUT.TXT”)
letter = sr.ReadLine

• All the month names in descending order
• All the month names in ascending order
• December
• January

11. Give three different file modes that Visual Basic allows you to use when accessing a file.
File can be opened in 3 different modes.

Want to Buy Quiz?

We apprehend the dire state of affairs of college students. If you’re wondering, can I pay a person to do my examination, then we’ve given you covered. Time is of the essence, and college students cannot take any chances with regard to exams. To assist our college students in those circumstances, we’ve up to date our operations from an hourly foundation to 24/7, addressing college students’ pay-a-person to-take examination now concerns. Our specialist’s paintings spherical the clock in your order. Moreover, our client representatives are constantly online to absorb your rent for a person to take my exam queries. Get online classes, examinations, and direct help from Get Exam Done. For custom, help email us at [email protected] or WhatsApp us at +1(657)366-7486

Placeholder $3.99
Download New CIS170A Quiz 7 in vb
  • 200+ Downloads