Are the following two declarations same?
char far *far*scr;
char far far ** scr ;
True
False
Can we pass a variable argument list to a function at run-time?
True
False
Can a structure contains a pointer to itself
True
False
Is it necessary that size of all elements in a union should be same?
True
False
Since enumerations have integral type and enumeration constants are of type int can we freely intermix them with other integral types, without errors?
True
False
Can we have an array of bit fields?
True
False
In the following code
#include
main( )
{
FILE *fp ;
fp = fopen ( "trial", "r" ) ;
}
fp points to
A structure which contains a char pointer which points to the first character in the file
The name of the file
The first character in the file
None of the above
If a file contains the line "I am a boy\r\n" then on reading this line into the array str using fgets() what would str contain?
"I am a boy\r\0"
"I am a boy\n\0"
"I am a boy"
"I am a boy\r\n\0"
To print out a and b given below, which printf() statement would use?
float a = 3.14;
double b = 3.14;
printf ( “%f %f”, a, b) ;
printf ( “%Lf %f”, a, b) ;
printf ( “%Lf %Lf”, a, b) ;
printf ( “%f %Lf”, a, b ) ;
What does the following program do?
main( )
{
unsigned int num ;
int i ;
scanf ("%u", &num) ;
for (i=0;i<16;i++)
printf(“%d",(num< It prints all odd bits from num
It prints binary equivalent of num.
It prints all even bits from num.
None of the above
/
Error
e
d
abcdefgh
Are the three declarations
char **apple,
char *orange[ ], and
char cherry[ ][ ]
same?
True
False
The preprocessor can trap simple errors like missing declarations, nested comments or mismatch of braces
True
False
To tackle a double in printf() we can use %f, whereas in scanf() we should use %lf.
True
False
The binary equivalent of 5.375 is
101.011
101.101 1 10111
101011
None of the above