Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the primary difference between text files and binary files?
Think about the readability of the files.
What class do you use in C++ to write binary files?
Consider how files are opened in C++.
What are binary files primarily used for?
Think about formats that aren't easily represented in text.
True or False: Binary files contain readable characters.
Recall the definition of binary vs text.
Write a C++ program that prompts the user for 5 integers, stores them in a binary file, then reads them back and displays the values.
Use loops for input and proper stream methods for output.
In Python, write a program that accepts a list of floats, writes them to a binary file, then reads the file contents into a list and calculates the average.
Consider how to convert between types when writing and reading.
5 more questions in this section. Enroll free to practise them all.
Enroll free