C Language for Programming Online Test

Are the following two declarations same? char far *far*scr; char far far ** scr ;
False
True
Can we pass a variable argument list to a function at run-time?
False
True
Can a structure contains a pointer to itself
False
True
Is it necessary that size of all elements in a union should be same?
False
True
Since enumerations have integral type and enumeration constants are of type int can we freely intermix them with other integral types, without errors?
False
True
Can we have an array of bit fields?
False
True
In the following code #include main( ) { FILE *fp ; fp = fopen ( "trial", "r" ) ; } fp points to
None of the above
The first character in the file
The name of the file
A structure which contains a char pointer which points to the first character in the file
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\n\0"
"I am a boy"
"I am a boy\n\0"
"I am a boy\r\0"
To print out a and b given below, which printf() statement would use? float a = 3.14; double b = 3.14;
printf ( “%f %Lf”, a, b ) ;
printf ( “%Lf %Lf”, a, b) ;
printf ( “%Lf %f”, a, b) ;
printf ( “%f %f”, 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< None of the above
It prints all even bits from num.
It prints binary equivalent of num.
It prints all odd bits from num
/

abcdefgh
d
e
Error
Are the three declarations char **apple, char *orange[ ], and char cherry[ ][ ] same?
False
True
The preprocessor can trap simple errors like missing declarations, nested comments or mismatch of braces
False
True
To tackle a double in printf() we can use %f, whereas in scanf() we should use %lf.
False
True
The binary equivalent of 5.375 is
None of the above
101011
101.101 1 10111
101.011
Description:

This is another test on C Language for improving the aptitude in Computer Programming Language
Disclaimer: Content, such as images used in the questions (if any), have been picked up from various places for the sole purpose of Instruction.

Discussion

Patel Devang

Find aptitude questions solution Here.

http://studyoverflow.com/aptitude/

ask any question here in discussion

21 days 8 hours 9 minutes ago

Lakshmi priya

sent the certificate for me to my mail

1113 days 23 hours 56 minutes ago

sid

whats this average score......???...

1169 days 21 hours 10 minutes ago

roshani aeshal

its also prepation for examination

1180 days 22 hours 18 minutes ago

roshani aeshal

its so gooood because its self test

1180 days 22 hours 21 minutes ago

anusha

really good one...
after this test i came to know my knowledge in c lang

1287 days 2 hours 2 minutes ago

eswar

its nice

1404 days 5 hours 46 minutes ago

surendra

Answer to Question 2 "can we pass a variable argument list to a function at run time ?" is given as false. But it should be true because this is how printf is implemented.

int printf(const char *format, ...)

1445 days 17 hours 28 minutes ago

Ranjit

Thank you ...Its very good for me to improve my c knowledge

1451 days 23 hours 25 minutes ago

swapnil kshirsagar

thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx a lot

1474 days 21 hours 17 minutes ago

Your Facebook Friends on WizIQ

More Tests By Author

ASP Server Controls
10 Questions | 532 Attempts

ASP.NET, Namespaces ASP.NET
10 Questions | 1823 Attempts

An ASP.NET Application
10 Questions | 356 Attempts