C views each file simply an a sequential stream of _____ a) bits b) bytes c) fie
ID: 3810954 • Letter: C
Question
C views each file simply an a sequential stream of _____ a) bits b) bytes c) fields d) records Function a) forces an end-of-file condition b) determine whether the end-of-file indicator is set for a file c) sets the end-of-file indicator for a file d) flushes the contents of the file from the current position to the end a) Function fprintf is equivalent to printf. b) Function fprintf is equivalent to printf except that fprintf also receives as an argument a file pointer for the file to which the data will be written. c) Function fprintf is equivalent to printf except that fprintf also receives as an argument a file control block for the file to which the data will be written. d) Function fprintf is equivalent to printf except that fprintf also disables the file end-of-file indicator. If a file is not closed explicitly by a program _____ a) the operating system normally will close the when program execution terminates b) the file will be left open when the program terminates, creating a possible security breach c) the operating system will query the user to determine if he or she wishes to close the file when the program terminates d) the operating system will not allow the owner of that program to run any other programs Arrays are data structures consisting of related data items of the same _____ a) sort order b) subscript c) type d) elementExplanation / Answer
1) Which of the following is not a stream associated with c.?
Ans: d)stderr
All the remaining three are associate with c and the only fourth one is different.
2)C views each file simply as a sequentoial streem of?
Ans: a)bits.
Since in assembly language each and every instruction counts with root measurement which is nothing but bit.
3) Function feof?
Ans: forces an end of file condition.
foef is used to force an end-of-file condition.
4)
Ans: d
5)If a file is not closed explicitily by a program?
Ans: c
the operating system will query the user to determine to close the file when the program terminates.
6)
Ans: d)element
Array is nothing but a set of elements of same datatype.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.