C-Command Line Arguments Questions and Answers
Practice ModeShowing 10 of 129 questions
Q31
fclose () function can
Answer: Option D
Q32
If an error occurs during closing of a file then fclose () returns
Answer: Option B
Q33
File I/O functions
Answer: Option A
Q34
Find the output
#include "stdio.h"
void main ( )
{
int i=5;
char x='x';
float y=3.9;
char str[20];
sprint(str,"%d %c %f",i,x,y);
printf("%s",str);
}
Answer: Option C
Q35
The commonly used functions for writing to a text stream are
Answer: Option D
Q36
in UNIX, file protection can be assigned at
Answer: Option D
Q37
The sector size of a disk working in MS DOS envoronment is
Answer: Option A
Q38
The function read ( ) returns
Answer: Option A
Q39
Find out the output
#include "fcnt1.h"
#include"sys\stat.h"
void main ( )
{
int x;
x=open ("raja.txt",
0_CREAT | _TEXT, S_TWRITE);
printf ("%d", k);
}
Answer: Option C
Q40
State the correct statement.
Answer: Option D