The first and second arguments of fopen() are
File Handling--C programming

Quiz
•
Computers, Other
•
University
•
Hard
SACHIN Chennai
Used 71+ times
FREE Resource
Student preview

34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
FILE is of type ______
A. int type
B. char * type
C. struct type
D. None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following true about FILE *fp
A. FILE is a keyword in C for representing files and fp is a variable of FILE type.
B. FILE is a stream
C. FILE is a buffered stream
D. FILE is a structure and fp is a pointer to the structure of FILE type
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following fopen statements are illegal?
A. fp = fopen(“abc.txt”, “r”);
B. fp = fopen(“/home/user1/abc.txt”, “w”);
C. fp = fopen(“abc”, “w”);
D. None of the mentioned.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When fopen() is not able to open a file, it returns
A. EOF
B. NULL
C. Run-time Error
D. None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of files can’t be opened using fopen()?
A. .txt
B. .bin
C. .c
D. None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It is not possible to combine two or more file opening mode in open () method.
A. True
B. False
Create a free account and access millions of resources
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade