2
QuizMultiple Choice

Searching Complex Data

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

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

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