CIS170A Week 7 Quiz – Study Guide – 100% score for this study guide

Lab Price = $9
Please feel free to send us your queries at: support@iqrajavaid.com

P.S: This is just a study guide. The questions may not appear exactly like this.
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

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
sw.WriteLine(letter)
sw.Close()
Loop
sr.Close()

• 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

Relevant Material
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at support@iqrajavaid.com.
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Payment Details
Lab Price = $9
Please feel free to send us your queries at: support@iqrajavaid.com

Payment methods

Add to Cart

Buy Now

View Cart