1
QuizMultiple Choice

Searching Complex Data

Question 1 • Introduction to Computer Science B – 4-232

You are going to open a file in your program to use what is already in the file. The program is saved in a folder, which has a subfolder called "dataFiles."In the textFiles folder is a text file called "games.txt."Which line of code will open games.txt?

Answer
A
fileIn = open("dataFiles/games.txt","r")
B
fileIn.open("dataFiles/games.txt","r")
C
fileIn.open("games.txt","r")
D
fileIn = open("games.txt","r")
Next
You are going to open a file in your program to…