ExamVeda
Login
Home
91
The parameter control string in the printf () is a C String that contains text to be . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
92
What will be the output of the following C code?
printf(“\n Output: %5d \t %x \t %#x”, 234,234,234);
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
93
The syntax to print a % using printf statement can be done by . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
94
What will be the output of the following C code?
#include <stdio.h>
#include <stdlib.h>
int main()
{
    srand(9000);
    printf("%d\n", rand());
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
95
The conversion characters d, i, o, u, and x may be preceded by h in scanf() to indicate?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
96
The maximum number of characters to be printed is specified by . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
97
In function free(p), p is a . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
98
What will be the output of the following code?
char t=’N’;
printf(“\n %c \n %3c \n %5c”,t,t,t);
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
99
What will be the output of the following C code?
#include <stdio.h>
int main(int argc, char** argv)
{
    char *s = "myworld";
    int i = 3;
    printf("%10.*s", i, s);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
100
What is the output of the following C code if there is no error in stream fp?
#include <stdio.h>
int main()
{
    FILE *fp;
    fp = fopen("newfile", "w");
    printf("%d\n", ferror(fp));
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board