ExamVeda
Login
Home
31
The given statement FILE *fptr;
Discuss
Answer & Solution
Answer: Option A
Solution:

FILE is a pre-defined structure.

32
The function fprintf is used in the program ...........
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
33
What are the two predefined FILE pointers in C?
Discuss
Answer & Solution
Answer: Option C
Solution:

Besides the file pointers which we explicitly open by calling fopen, there are also three predefined streams. stdin is a constant file pointer corresponding to standard input, and stdout is a constant file pointer corresponding to standard output. Both of these can be used anywhere when a file pointer is called for; for example, getchar() is the same as getc(stdin) and putchar(c) is the same as putc(c, stdout). The third predefined stream is stderr. Like stdout, stderr is typically connected to the screen by default. The difference is that stderr is not redirected when the standard output is redirected.

34
Which one of the following is valid for opening a read-only ASCII file?
Discuss
Answer & Solution
Answer: Option E
No explanation is given for this question. Let's Discuss on Board
35
Choose the correct difference between getc() and fgetc().
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
36
. . . . . . . . is an optional argument that gives the maximum number of characters to be read.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
37
What will be the output of the following C code?
#include <stdio.h>
struct p
{
   struct p *next;
   int x;
};
int main()
{
   struct p* p1 = malloc(sizeof(struct p));
   p1->x = 1;
   p1->next = malloc(sizeof(struct p));
   printf("%d\n", p1->next->x);
   return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
38
If the conversion characters of int d, i, o, u and x are preceded by h, it indicates?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
39
Which among the following mathematical function do not have a "double" return-type?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
40
Which of the following function compares 2 strings with case-insensitively?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board