WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

C Language for Programming online Test

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
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.

Comments
hereamitenters
By: hereamitenters
867 days 5 hours 56 minutes ago

THANXXX TO SHOW MY IMAGE......

Rakesh
By: Rakesh
780 days 9 hours 15 minutes ago

Its really good ques to be asked in adobe / google like companies

ramya
By: ramya
760 days 7 hours 21 minutes ago

its really helping us

Your Name
By: Your Name
750 days 10 hours 24 minutes ago

helping us

gvsriram murthy
By: gvsriram murthy
747 days 13 hours 8 minutes ago

sreeram - this is good,,we need to work on this....

gvsriram murthy
By: gvsriram murthy
747 days 13 hours 8 minutes ago

good

navaj
By: navaj
736 days 10 hours 39 minutes ago

good, but i have to improve my knowledge. it is very useful site to gain different ideas.

Patel Umang
By: Patel Umang
729 days 6 hours 41 minutes ago

not so hard

NIHAR SHARMA
By: NIHAR SHARMA
698 days 18 hours 7 minutes ago

AMAZING

raj
By: raj
689 days 17 hours 54 minutes ago

liked.....

SiddharthA
By: SiddharthA
587 days 1 hours 54 minutes ago

what will be out put of this pro? WHY?WHY?WHY?????
void main()
{
int a=5;
int b=5;
clrscr();
b= b b;
printf("%d\n",b);
a=a b--;
printf("%d",a,b) ;
getch();
}

SiddharthA
By: srinivas
575 days 9 hours 8 minutes ago

may be the values are a and b are 0's because u use clrscr after definig a and b.........

SiddharthA
By: Ankit Jain
571 days 11 hours 55 minutes ago

hi srinivas,
the clrscr only clears the console.

SiddharthA
By: mukesh sahu
513 days 4 hours 37 minutes ago

error

Manoj Kumar
By: Manoj Kumar
585 days 15 hours 5 minutes ago

can anybody tell me the answer of question which was

main()
{
unsigned int num;
int i;
scanf("%d",

muslim
By: muslim
575 days 15 hours 34 minutes ago

good and interesting questions

shyamala
By: shyamala
569 days 11 hours 17 minutes ago

hi..this test is intresting.we can learn more..

shyamala
By: shyamala
569 days 11 hours 16 minutes ago

hi siddarthA..
is the output 25 and 20 ??

Anurag Sharma
By: Anurag Sharma
562 days 14 hours 55 minutes ago

first of all correct sentence means b=b*b and a=a*b--;
then op will be 25 n 125. bcz u have written post decrement form, means avalue of be is firs assigned so a=5*125

Anurag Sharma
By: Anurag Sharma
562 days 9 hours 39 minutes ago

sry in previous comment i have written wrong explanation

first of all correct sentence means b=b*b and a=a*b--;
then op will be 125 n 24. bcz u have written post decrement form, means value of b is first assigned so a=25*25

Anurag Sharma
By: Anurag Sharma
562 days 9 hours 28 minutes ago

what would be the op and WHYYYYYYYYYYY

void main()
{
char far *a,*b;
printf("%d%d",sizeof(a),sizeof(b));
getch();
}

Anurag Sharma
By: mukesh sahu
513 days 4 hours 35 minutes ago

2 2 (all pointer variables are integer type

Anurag Sharma
By: vidya
507 days 4 hours 46 minutes ago

ans s 4,2 since char ptr takes 2 bytes of memory n far pointer occupies 4 bytes of mem

pranshu
By: pranshu
553 days 15 hours 1 minutes ago

Why we use getch() funtion in C lanuage..?

pranshu
By: anusha
324 days 12 hours 6 minutes ago

to get immediate answr when compiled

swapnil kshirsagar
By: swapnil kshirsagar
512 days 7 hours 17 minutes ago

thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx a lot

Ranjit
By: Ranjit
489 days 9 hours 25 minutes ago

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

surendra
By: surendra
483 days 2 hours 28 minutes ago

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, ...)

surendra
By: bmko
439 days 11 hours 9 minutes ago

I guess command line arguments also falls under that category

eswar
By: eswar
441 days 15 hours 47 minutes ago

its nice

anusha
By: anusha
324 days 12 hours 3 minutes ago

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

roshani aeshal
By: roshani aeshal
218 days 8 hours 22 minutes ago

its so gooood because its self test

roshani aeshal
By: roshani aeshal
218 days 8 hours 19 minutes ago

its also prepation for examination

sid
By: sid
207 days 7 hours 11 minutes ago

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

Lakshmi priya
By: Lakshmi priya
151 days 9 hours 57 minutes ago

sent the certificate for me to my mail

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy

Your Facebook Friends on WizIQ

More Tests By Author

ASP Server Controls
10 Questions | 227 Attempts

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

An ASP.NET Application
10 Questions | 172 Attempts

Test your basic knowledge on DATASTRUCTURES, STACK
10 Questions | 410 Attempts