FILE reserved word is?
1.A structure tag declared in stdio.h
2.One of the basic datatypes in c
3.Pointer to the structure defined in stdio.h
4.It is a type name defined in stdio.h
stdout, stdin and stderr are?
1.File pointer
2.File desciptors
3. Streams
4.Structure
What is the meant by 'a' in the following operation? fp = fopen("Random.txtÂ, "aÂ);
1.Attach
2.Append
3.Apprehend
4.Add
Which type of files can't be opened using fopen()?
1.txt
2.bin
3.c
4.None of the mentioned
If there is any error while opening a file, fopen will return?
1.Nothing
2.EOF
3.NULLD.
4.Depends on compiler
The first and second arguments of fopen are?
1. A character string containing the name of the file & the second argument is the mode.
2.A character string containing the name of the user & the second argument is the mode.
3.A character string containing file poniter & the second argument is the mode.
4.None of the mentioned of the mentioned.
What does the following segment of code do? fprintf(fp, "Copying!Â);
1.It writes Copying!"Â into the file pointed by fp
2.It reads Copying!"Â from the file and prints on display
3.It writes as well as reads Copying!"Â to and from the file and prints it
4.None of the mentioned
What is the meant by 'a' in the following operation? fp = fopen("Random.txtÂ, "aÂ);
1.Attach
2.Append
3.Apprehend
4.Add
Which is true about getc.getc returns?
1.The next character from the stream referred to by file pointer
2.EOF for end of file or error
3.Both a & b
4.Nothing
Which of the following fopen statements are illegal?
1. fp = fopen(abc.txt"Â, r"Â);
2.fp = fopen(/home/user1/abc.txt"Â, w"Â);
3.fp = fopen(abc"Â, w"Â);
4.None of the mentioned
Which of the following mode argument is used to truncate?
1.a
2.f
3.w
4.t