Which of the following can be used to determine whether the accounts.txt file exists?
A. If IO.Exists.File("accounts.txt") Then
B. If IO.File.Exists("accounts.txt") Then
C. If IO.File("accounts.txt") Then
D. If IO.Exists("accounts.txt") Then
Answer: B
Computer Science & Information Technology
You might also like to view...
Suppose that ch1 and ch2 are char variables, and alpha is an int variable. The input is: ? A 18 ? What are the values after the following statement executes? ? cin.get(ch1); cin.get(ch2); cin >> alpha; ?
A. ch1 = 'A', ch2 = ' ', alpha = 18 B. ch1 = 'A', ch2 = '1', alpha = 8 C. ch1 = 'A', ch2 = ' ', alpha = 1 D. ch1 = 'A', ch2 = '\n', alpha = 1
Computer Science & Information Technology
To retain restricted access across derived classes, C++ provides a third access specification-protected.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology