Question Set

1. A file written in text mode can be read back in binary mode.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.02 pm
    The difference is that text files contain lines (or records) of text and each of these has an end-of-line marker automatically appended to the end of it whenever you indicate that you have reached the end of a line. Binary files are not broken up into separate lines or records so the end-of line marker is not written when writing to a binary file. So, we cannot read the correct the data in binary mode.
Show Similar Question And Answers
QA->There are 4000 literates in a village.45 % read Newspaper A and 65% read Newspaper B.25% read neither A nor B.How many persons read both the newspapers?....
QA->Old-written material; which cannot be read easily; how can be read?....
QA->Old-written material, which cannot be read easily, how can be read?....
QA->You can import a text file into QuarkXPress from:....
QA->The extension jpeg in the name of a file indicates that it is a/an file.....
MCQ->Read the following statements about files in Pascal A file can grow or shrink dynamically.A file which consists of only characters is called text file.Text files may be read and written using standard Pascal READ and WRITE procedures.Every file must have a beginning but may or may not have an end. Which of the above are correct?....
MCQ->A file written in text mode can be read back in binary mode.....
MCQ->What will be the output of the program? public class Test138 { public static void stringReplace (String text) { text = text.replace ('j' , 'c'); / Line 5 / } public static void bufferReplace (StringBuffer text) { text = text.append ("c"); / Line 9 / } public static void main (String args[]) { String textString = new String ("java"); StringBuffer textBuffer = new StringBuffer ("java"); / Line 14 / stringReplace(textString); bufferReplace(textBuffer); System.out.println (textString + textBuffer); } }....
MCQ->Read the following statements about files in Pascal A file is a data structure which consists of a sequence of components of the same type.The number of components in a file is variable.The components in a file can be accessed only sequentially starting from the beginning of the file. Which of the above are correct?....
MCQ->If the following structure is written to a file using fwrite(), can fread() read it back successfully? struct emp { char n; int age; }; struct emp e={"IndiaBIX", 15}; FILE fp; fwrite(&e, sizeof(e), 1, fp);....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution