1. Question:What is a newline escape sequence? 

    Answer
    A newline escape sequence is represented by the \n character. This is used to insert a new line when displaying data in the output screen. More spaces can be added by inserting more \n characters. For example, \n\n would insert two spaces. A newline escape sequence can be placed before the actual output expression or after.

    1. Report
  2. Question:What is the difference between text files and binary files? 

    Answer
    Text files contain data that can easily be understood by humans. It includes letters, numbers and other characters. On the other hand, binary files contain 1s and 0s that only computers can interpret.

    1. Report
  3. Question:What is the advantage of a random access file? 

    Answer
    If the amount of data stored in a file is fairly large, the use of random access will allow you to search through it quicker. If it had been a sequential access file, you would have to go through one record at a time until you reach the target data. A random access file lets you jump directly to the target address where data is located.

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd