Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a file?
Think about where your documents are stored on your computer.
Name two types of files.
What kind of files can you read easily versus those you can’t?
What does the 'r' mode mean in file operations?
Consider whether this mode allows you to change the file.
True or False: A binary file is human-readable.
Think about how you'd access the data in a binary file.
Write a program in Java that reads a text file and counts the number of lines in it.
Use 'readLine()' method for line-by-line reading.
Using Python, create a binary file to store integer values from 1 to 10 and read them back to display.
Remember to handle... all modes properly when working with binary files.
4 more questions in this section. Enroll free to practise them all.
Enroll free