for binary files, a ___ must be appended to the mode string.
Mohammed
Guys, does anyone know the answer?
get for binary files, a ___ must be appended to the mode string. from screen.
For binary files, a ___ must be appended to the mode string.
For binary files, a ___ must be appended to the mode string. (a) Nothing (b) “b” (c) “binary” (d) “01”
For binary files, a ___ must be appended to the mode string.
← Prev Question Next Question →
1 Answer
← Prev Question Next Question →
Find MCQs & Mock Test
JEE Main 2024 Test Series
NEET Test Series
Class 12 Chapterwise MCQ Test
Class 11 Chapterwise Practice Test
Class 10 Chapterwise MCQ Test
Class 9 Chapterwise MCQ Test
Class 8 Chapterwise MCQ Test
Class 7 Chapterwise MCQ Test
Related questions
For binary files, a ___ must be appended to the mode string.
For binary files, a ___ must be appended to the mode string. Nothing “b” “binary” “01”. c programming Objective type Questions and Answers.
Discussion Forum
Que. For binary files, a ___ must be appended to the mode string.
a. Nothing b. “b” c. “binary” d. “01” Answer:“b”
siya :(June 07, 2020)
nice Click Here to Reply
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here
Similar Questions:
When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
If a file is opened in r+ mode then
Which of the following library function is not case-sensitive?
Which among the following mathematical function do not have a “double” return-type?
The statement progThe statement
printf ("%d", ++5) ;
prints Each call of va_arg
Consider the declaration
static char hello[ ] = " hello " ;
The output of printf( " % s \ n ", hello) ;
will be the same as that of
What type of value does sizeof return?
Which type of files can’t be opened using fopen()?
stdout, stdin and stderr are
Memory allocation using malloc() is done in?
If y is of integer type then the expression
3 * ( y - 8 ) / 9 and ( y - 8 )/ 9 * 3
Which among the following is right?
What is the size of float in a 32-bit compiler?
Which is true about getc returns?
Which of the following mode argument is used to truncate?
Which of the following doesn’t require an & for the input in scanf?
Which of the following data-types are promoted when used as a parameter for an ellipsis?
int sscanf(char *string, char *format, arg1, arg2, …)
GATE CSE Resources
Questions from Previous year GATE question papers
UGC NET Computer science Resources
UGC NET Previous year questions and practice sets
NET General Paper 1
UGC NET Previous year questions and practice sets
GATE CSE Online Test
Attempt a small test to analyze your preparation level. This GATE exam includes questions from previous year GATE papers.
UGC NET practice Test
Practice test for UGC NET Computer Science Paper. The questions asked in this NET practice paper are from various previous year papers.
File Access
This set of C Multiple Choice Questions & Answers (MCQs) focuses on “File Access – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What are the first and second arguments of fopen? a) A character string containing the name of the file & the second argument is the mode b) ... Read more
C Programming Questions and Answers – File Access – 1
« Prev Next »
This set of C Multiple Choice Questions & Answers (MCQs) focuses on “File Access – 1”.
Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial.
1. What are the first and second arguments of fopen?
a) A character string containing the name of the file & the second argument is the mode
b) A character string containing the name of the user & the second argument is the mode
c) A character string containing file pointer & the second argument is the mode
d) None of the mentioned
View Answer Answer: a Explanation: None.
2. For binary files, a ___ must be appended to the mode string.
a) Nothing b) “b” c) “binary” d) “01” View Answer Answer: b Explanation: None.
Note: Join free Sanfoundry classes at Telegram or Youtube
advertisement
3. What will fopen will return, if there is any error while opening a file?
a) Nothing b) EOF c) NULL
d) Depends on compiler
View Answer Answer: c Explanation: None.
4. What is the return value of getc()?
a) The next character from the stream is not referred by file pointer
b) EOF for end of file or error
c) Nothing
d) None of the mentioned
View Answer Answer: b Explanation: None.
Take C Programming Tests Now!
5. When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
a) Standard input b) Standard output c) Standard error
d) All of the mentioned
View Answer Answer: d Explanation: None.
6. In C language, FILE is of which data type?
a) int b) char * c) struct
d) None of the mentioned
View Answer Answer: c Explanation: None. advertisement
7. What is meant by ‘a’ in the following C operation?
fp = fopen("Random.txt", "a");
a) Attach b) Append c) Apprehend d) Add View Answer Answer: b Explanation: None. advertisement
8. Which of the following mode argument is used to truncate?
a) a b) f c) w d) t View Answer Answer: c Explanation: None.
9. Which type of files can’t be opened using fopen()?
a) .txt b) .bin c) .c
d) none of the mentioned
View Answer Answer: d Explanation: None.
Sanfoundry Global Education & Learning Series – C Programming Language.To practice all areas of C language, here is complete set of 1000+ Multiple Choice Questions and Answers.
« Prev - C Programming Questions and Answers – Formatted Input – 2
» Next - C Programming Questions and Answers – File Access – 2
Next Steps:Get Free Certificate of Merit in C Programming
Participate in C Programming Certification Contest
Become a Top Ranker in C Programming
Take C Programming Tests
Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Related Posts:Buy Computer Science Books
Practice Computer Science MCQs
Apply for C Internship
Apply for Computer Science Internship
Watch Advanced C Programming Videos
advertisement
Recommended Articles:
C Programming Questions and Answers – File Access – 2
C++ Programming Questions and Answers – File Handling
Visual Basic Questions and Answers – Writing Data to a Sequential Access File
Linux Program to Open and Close a File using File Descriptors
C Questions and Answers – File Operations – 1
Linux Program to Create a File using File Descriptors
Python Program to Copy One File to Another File
C# Program to View the Access Date and Time of a File
C Questions and Answers – File Operations – 2
Python Program to Append the Content of One File to the End of Another File
advertisement
Additional Resources:C Programs on File Handling
C# Programs on File Handling
Advanced C Programming
C Programming Examples
C Programming Interview Questions
Popular Pages:C Programming MCQ Questions
Python Programming Examples
C++ Programming MCQ Questions
Java Programming Examples
100+ Android Programming Examples
Guys, does anyone know the answer?