Case-Based Critical Thinking Questions
Case 1: Frames Unlimited
?
Frames Unlimited is a wholesale picture and poster frame business. Frame data are 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?

A. If IO.File.Exists("pictureFrame57.txt") Then
B. If IO.File.Exists("pictureFrame.txt") Then
C. inFile = IO.File.OpenText("pictureFrame57.txt")
D. inFile = IO.File.OpenText("pictureFrame.txt")


Answer: B

Computer Science & Information Technology

You might also like to view...

What is a reverse firewall and why would you use one?

What will be an ideal response?

Computer Science & Information Technology

To merge cells across columns, the ____ attribute is used.

A. rowspan B. span C. colspan D. both a and c

Computer Science & Information Technology

Briefly describe authorization.

What will be an ideal response?

Computer Science & Information Technology

Which of the following will create the String r1 = "a TOYOTa"?

``` String r = "a toyota"; ``` a. String r1 = r.replace("toyot", TOYOT"); b. String r1 = r.replace('t','T'); r1 = r.replace('o','0'); r1 = r.replace('y','Y'); c. String r1 = r.replace('t','T').replace('o', '0').replace('y', 'Y'); d. String r1 = r.substring(2, 4).toUpperCase();

Computer Science & Information Technology