Basic Of C Language - Online Test

Test Difficulty Level: Medium

Syllabus of Test

C language: Questions based on the Basic of C Language.

Sample Question from this online test:

Question: Which of the following denote components of for loop?

Option A: Initialization

Option B: condition

Option C: Increment or decrement

Option D: All the Above

To answer, click the "Start This Test" button below.

Start this Test


Rahul jha on 2009-08-17 12:51:24 wrote,

int x=10, int a[x]; will produce an error: constant expression required

Rohan gtr on 2009-09-11 19:24:42 wrote,

no constant expression not required but [x] is worng

gaurav gupta on 2009-09-13 16:54:29 wrote,

its really a very good site

leela prasad on 2010-01-29 18:29:33 wrote,

please try to give the hard paper .Next i am paticipating test 2 please change it sir

rinku panigrahi on 2010-07-03 18:12:42 wrote,

answer of question no 13 is c.
array size can not be a varible. the correct answer is c

Rajesh Kumar Gupta on 2010-07-03 18:58:03 wrote,

hey ... thnkx for denoting the error in the test ... problem it has been resolved now .... thnkx again.

abhishek chaturvedi on 2010-08-01 11:51:45 wrote,


deepti chaudhary on 2010-09-20 06:09:17 wrote,

nice test..........

Ramya Chandramoorthi on 2010-10-08 16:11:31 wrote,


anil gagan1 on 2010-10-26 03:36:30 wrote,


Ankit Tiwari on 2010-11-16 15:05:11 wrote,


dheeraj kapoor on 2010-11-21 18:24:25 wrote,

fod diya....wid d help of abhishek....

john sen on 2010-11-22 14:08:28 wrote,

good!!!but hopefully the questions could be much harder....few are verryy easy for a c students....

vivek s on 2010-11-29 11:56:12 wrote,

Is do... while loop having "semi colon" at the end of loop?
see qusn no.7

Sharmistha Mandal on 2010-12-24 10:38:47 wrote,

will try to be more....

vinayakaprasad chepuri on 2011-01-18 06:18:33 wrote,


piush kumar on 2011-02-12 07:58:17 wrote,


nilesh bisen on 2011-02-12 09:23:12 wrote,

how que 13 &17 are executed,im confused....nice paper

deepak jaiswal on 2011-02-17 07:30:56 wrote,

it's really a good site for the student

deepak jaiswal on 2011-02-17 07:31:02 wrote,

it's really a good site for the student

sohan verma on 2011-02-25 05:20:12 wrote,

good questions

rahul kushwaha on 2011-02-25 05:20:34 wrote,

i m tring best but not satisfyin myself

sunita subbarasu on 2011-02-26 14:36:37 wrote,

gr8 fun........ vry useful 2.....

Rohit G on 2011-02-26 15:25:29 wrote,

just try..

Vivek Kumar on 2011-02-28 17:39:56 wrote,


asha bisht on 2011-03-28 14:15:42 wrote,

i got 85% i m confident in c language thanks getgyan

Mohammad Azharuddin on 2011-04-01 14:34:00 wrote,

dis is a very fruitful thanxful to this site'

dheeraj dhiman on 2011-04-04 06:51:30 wrote,

it goodddddddddd...............

sunil p on 2011-04-09 05:06:58 wrote,

this very help full to me than x a lot

dharm veer on 2011-04-13 19:22:59 wrote,

q-4 answer is wrong.
global variable act as a static variable.
option (c) is right....dharmveer

babar hayat on 2011-04-18 06:17:29 wrote,

gud for beginners

nuthan murarysetty on 2011-04-22 15:35:09 wrote,

it's some wat easy

sachin puri on 2011-05-07 10:08:27 wrote,

its very easy queation .
if any person have any doubt in any question u can mail me

suresh vuchuru on 2011-05-21 09:29:29 wrote,

please give me the website adress conducting online tests on c plzzzzzzzzzzzzzzzzzz........

tushar joshi on 2011-06-10 11:05:49 wrote,

it very nice to practice

swopna soundar on 2011-06-11 16:22:33 wrote,

nice test

tushar joshi on 2011-06-22 11:07:01 wrote,

very good

sri rama on 2011-07-08 10:51:42 wrote,

Must be take the test after learning c language.

GANESH ANNAMALAI on 2011-07-20 19:07:16 wrote,

nice to check my c language skill...

Sandesh Mutha on 2011-07-24 06:25:27 wrote,


baji shaik on 2011-07-25 14:45:34 wrote,

Very easy man

manoj p on 2011-07-30 06:19:57 wrote,

Good .. this type of questions will help to clear the rests in the interview.

vinita gaikwad on 2011-08-03 14:45:38 wrote,

got 80%

Bhagyalakshmi Chandala on 2011-08-04 04:57:22 wrote,

plz cover all cocepts.its really helpful to us

Aashirwa Tale on 2011-08-04 05:16:57 wrote,

it made my concepts more clear about c.

Deepika Sharma on 2011-08-15 11:51:21 wrote,

this is good

srikanth M on 2011-08-16 11:48:42 wrote,


rajesh kurna on 2011-08-17 03:59:39 wrote,

nice i got 80% in it................thank u

ashlesha kulkarni on 2011-08-18 10:33:07 wrote,

nice test got 75%

pankaj kumar on 2011-08-18 12:38:22 wrote,

the test is good for beginners but it's average.........some question were very good...........thanzzzzz

naveen kumar on 2011-08-19 15:21:43 wrote,

first i thought i could correctly answer all those questions. but i couldn't. it made me to think deeply and carefully...

Aishwary Pramanik on 2011-08-21 19:31:35 wrote,

95% ...damn man ..need to reach 100% mark!!

AMARJEET KUMAR on 2011-09-18 09:39:53 wrote,

hi frnds,i got 85% in c Proms.....

harpreet kaur on 2011-09-22 19:05:55 wrote,

good experience

Ajay Yadav on 2011-10-03 10:44:28 wrote,

It is avery very good site

Amrit Singh on 2011-10-07 16:05:26 wrote,

nice test for c beginners.

tushar joshi on 2011-10-22 04:59:02 wrote,


Shubham Garg on 2011-11-08 19:14:16 wrote,

test was easy.... try giving some tough questions....

Dhiren Verma on 2011-11-16 19:19:48 wrote,

ye to bachho ka khel tha

ashutosh purohit on 2012-02-05 16:35:56 wrote,

got 95% ...nice experience:)

vaibhav upadhyay on 2012-04-23 19:31:57 wrote,


swapnil shahare on 2012-05-05 18:15:08 wrote,

very gooooood
some extra questions required

LCN Sarthi on 2012-05-24 11:25:18 wrote,

nice :)

pusunala tirumalesh on 2012-06-02 04:03:54 wrote,

i got 70% i satisfied///////////!

swapnil bharti on 2012-06-09 04:14:10 wrote,

i got 80% but i am not satisfied coz all questions are very easy...

Riti Sinha on 2012-06-16 06:31:16 wrote,

to interested job

gaurav Kulkarni on 2012-06-19 14:59:14 wrote,

got 75% i satisfied......

santhosh kumar Rajasekar on 2012-06-29 06:15:25 wrote,


suresh kumaran on 2012-06-29 07:19:06 wrote,

good questions............need more complicated questiond

manu priya on 2012-07-28 17:46:31 wrote,

need some complicated questions.

Lina Khambayat on 2012-08-07 09:24:49 wrote,

It's really good to judge to our level of knowledge.

Amala Joseph on 2012-08-08 10:16:00 wrote,

Got 80% I satisfied

Deepak Agrawal on 2012-08-14 16:54:49 wrote,

Nice Test
Anybody tell me About "exforsys" function.....
plz tell me hurry....
on my mail_id.... i.e.

Harsh Soni on 2012-08-20 07:37:19 wrote,


anbu priya on 2012-08-22 08:52:41 wrote,

Talent boosting test

sowmya jayaramu on 2012-09-09 16:33:19 wrote,

test was ok

vikas chauhan on 2012-09-20 19:48:03 wrote,


vikas chauhan on 2012-09-20 19:53:50 wrote,

Best One...

Mohan Kumar on 2012-11-04 06:17:19 wrote,


yogesh saiwal on 2012-11-30 08:19:09 wrote,

Question 17 :

What is the output of the following C program?
int x=10, y=20,z;
printf("x=%d z=%d",x,z);

Option A: x=50 z=0

Option B: x=10 z=70

Option C: x=50 z=70

Option D: None of the above

please explain that problem......

sahul kumar on 2012-12-13 16:54:10 wrote,

i got 85% .i ca
n obtain at least 100%

Nagarjuna Anantha on 2013-03-05 12:38:57 wrote,

nice bujji

srinivas a on 2013-04-19 10:57:27 wrote,

int x=10, y=20,z;
printf("x=%d z=%d",x,z);
According to c operator precedence ! execute 1st if(!y>=5)means if(0>=5)condition is failed so 1st statement x=50 is skip..... x is already defined as 10,so ans is x=10,z=70....

nithya k on 2013-05-11 17:08:05 wrote,


krishna yadav on 2013-06-04 11:54:06 wrote,


Anshul Jain on 2013-07-15 20:06:27 wrote,

It was eassy test

sonal gupta on 2013-11-24 17:00:40 wrote,

very nice for non IT background students..

sudhir hogale on 2014-10-31 10:32:26 wrote,

What is the output of the following C program?
int x=10, y=20,z;
printf("x=%d z=%d",x,z);

Option A: x=50 z=0

Option B: x=10 z=70

Option C: x=50 z=70

Option D: None of the above

please explain that problem......