Basics Of C Language:Test 5 - 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 takes the first precedence in evaluation among the following operators?

Option A: ||

Option B: !

Option C: &&

Option D: All the Above has equal precedence

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

Start this Test






Comments

sweta bansal on 2009-07-22 18:09:27 wrote,

good questions

arti pandey on 2009-08-09 16:47:44 wrote,

very easy...isliye 50% aaya....

ronak patel on 2009-08-12 20:44:22 wrote,

some hard ,some easy
i scored 55%

Rahul jha on 2009-08-17 18:51:59 wrote,

strcmp("ab","ab") nerver returns zero ,it will return 0.

rajan kumar on 2009-09-07 00:24:59 wrote,

please correct the answer of question 11.
it is c and not b

ramachandra balla on 2009-09-08 18:55:04 wrote,

what's the answer for 11th que?
a) 0
b) ZEROOOOOOOOOO

looking funny :-)

himanshu GUPTA on 2009-10-22 11:35:37 wrote,

i scored 75......

Rajat srivastava on 2009-10-24 17:48:00 wrote,

easyyyyyyyyyyyyyyyyyyy

amit pandey on 2009-11-24 18:21:07 wrote,

pehlla attempt tha ....45% pass ho gaya yaaro :D

sanjay kumawat on 2010-01-22 19:51:59 wrote,

scored ...70%..

mudhani harish on 2010-01-29 18:12:59 wrote,

abe sooooooooo easyyyyyyyyyyyyyy

mayank singh on 2010-02-17 11:36:57 wrote,

i hve doubt about some questionssss.........

Chandra kumar on 2010-02-17 16:28:14 wrote,

Is the answer to question no. 11 correct? I doubt it.

Chandra kumar on 2010-02-17 16:29:24 wrote,

Back to C after a long back. Happy with the 75%.

abhishek chaturvedi on 2010-08-01 11:21:15 wrote,

strcmp("ab","ab") nerver returns zero ,it will return 0.

in last q20,function definition sud include both argument declaration n body but here for declaration , only argument declaration is given no body declaration.........

Rahul jain on 2010-08-04 10:28:54 wrote,

good

vinay kumar on 2010-09-11 04:17:42 wrote,

scored 70%........its soooooooooo simple!!!!
though some answers are wrong.

anil gagan1 on 2010-10-27 06:54:01 wrote,

ok

ashutosh nigam on 2010-11-21 17:48:57 wrote,

q 11 is wrong so pay attention 2 this .overall q r gud 2 solve.

suresh kumar on 2010-12-10 09:25:33 wrote,

it's so easy........ but in question 11 answer wrong!!! bcz strcmp("xyz","xyz") returns 1.

dileep v on 2010-12-17 06:55:49 wrote,

helpful questions

Sharmistha Mandal on 2010-12-24 13:16:26 wrote,

I am confused with the ans of this qns "Which of the following is present in the function declaration?" I think the ans will be D

Sayeed Ahmed on 2010-12-31 10:02:35 wrote,

iNTRESSSSSSSSSSSSSSTINGGG.....!!!!!!!!

nitin jaiswal on 2011-01-25 11:32:24 wrote,

question is easy need some tuff stuff

rakesh prasad on 2011-02-01 03:44:09 wrote,

Got it well..a bit confusion was there in exforsys..

d m on 2011-02-22 09:16:32 wrote,

In this quiz I think your 20th answer is wrong because a function declaration contains only arguments declaration not the body of function.

sohan verma on 2011-02-25 05:06:16 wrote,

i am sorry, for not good scoring

radha ch on 2011-02-26 14:37:50 wrote,

q 11 is wrong ans is 0 bcose for true values it return o

ADESH PAL on 2011-03-10 17:43:39 wrote,

in Q11 -i m confused .......it always return zero that may be int or char
very good questions!

Ankush Dutta on 2011-03-26 11:03:16 wrote,

good question

VIBHUTI VIVEK on 2011-03-27 14:50:43 wrote,

it's good 4 ur knowledge !!!!!!!!!!!!!!!!

vickal gupta on 2011-03-29 06:04:23 wrote,

its funny!!!!!!!!!!!!

bala subramanian on 2011-04-04 06:20:50 wrote,

zero makes hero the qus are knowledegeable

bysani nalini on 2011-04-16 09:36:36 wrote,

11th que is wrong it will return 1 only not ZERO

nuthan murarysetty on 2011-04-22 16:06:32 wrote,

nice questions

Sukhil S S on 2011-04-23 09:35:18 wrote,

I think ans of Q20 is also wrong.
We write function declaration as the header of the function (function name and argument list ).. ... So please check it

rose hilda on 2011-04-24 11:11:52 wrote,

useful questions

geeta reddy on 2011-05-19 06:40:38 wrote,

11th ans is c and 20 its a

Anuj Tiwari on 2011-06-09 20:09:50 wrote,

answer of 11th shud be 0 and not zero

mani gandan on 2011-06-21 08:02:26 wrote,

it is the very useful website

tushar joshi on 2011-06-28 07:12:06 wrote,

good

parul jaiswal on 2011-06-29 12:13:17 wrote,

very nice questions.......

tamil p on 2011-06-30 06:53:06 wrote,

s

naina navghare on 2011-07-01 13:12:51 wrote,

nice one

tushar joshi on 2011-07-05 10:28:03 wrote,

good questions

nikita arora on 2011-07-07 17:46:46 wrote,

yipeeeeeee....i scored 80%

tushar joshi on 2011-07-15 05:38:32 wrote,

very good

tushar joshi on 2011-07-20 06:26:44 wrote,

good

jasvir jassi on 2011-07-22 06:22:11 wrote,

some confusion in exforsys................bt nice

tushar joshi on 2011-07-26 06:37:45 wrote,

very good

Silvia Mehta on 2011-08-03 04:16:36 wrote,

good!!
interesting questions!!!

vinita gaikwad on 2011-08-03 14:12:48 wrote,

level was nice got only 50% result :(

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

ya 11th is c n 20 th is A

Bhagyalakshmi Chandala on 2011-08-04 04:14:33 wrote,

i think 11th is c and 20th is a

mogal samrat on 2011-08-10 06:32:47 wrote,

good test friend

chandra prakash kashyap on 2011-08-10 12:53:13 wrote,

i feel good for the participating this test.............

rakesh dontha on 2011-08-11 07:33:10 wrote,

some what interesting

VIKALP SONKAR on 2011-08-13 13:11:32 wrote,

good

om prakash jha on 2011-08-15 00:21:15 wrote,

got 70%

rajesh kurna on 2011-08-17 03:47:26 wrote,

it makes us think and answer them ...............nice .thank u

snehil gour on 2011-08-17 09:47:53 wrote,

i got Percentage: 70 %

snehil gour on 2011-08-17 09:48:21 wrote,

i got Percentage: 70 %

snehil gour on 2011-08-17 09:48:35 wrote,

i got Percentage: 70 %

snehil gour on 2011-08-17 09:48:38 wrote,

i got Percentage: 70 %

Priyanka Nagdeve on 2011-08-20 11:51:52 wrote,

Oh my god....i have topped in dis test....

Rajat Jindal on 2011-08-22 07:28:00 wrote,

getting confidence...75%

saravanan p on 2011-09-14 17:48:49 wrote,

dear webmaster even i can get 80% marks in this test please post some brain teasing questions of C.... that will helpful for interview basis....

thanks and regards... sarvan

Ashish Chaudhari on 2011-09-17 11:24:40 wrote,

good........i got 60%

kaushik das on 2011-09-18 17:37:02 wrote,

easy and scoring

ajeet seth on 2011-09-29 03:41:26 wrote,

practice of mind.....

Thani S on 2011-09-29 10:30:19 wrote,

thanks

Thani S on 2011-09-29 10:30:21 wrote,

thanks

dhirendra jha on 2011-10-01 09:34:18 wrote,

i got 70%, but wanna 100%

muthuraj muthali on 2011-10-10 10:06:29 wrote,

question is very easy .so you will give difficult

karthik ravi on 2011-10-18 07:02:06 wrote,

11th question answer is 0 not zero... and 20th question's answer is A. becoz, the body of function belongs to definition part. not decleration.

And i observe some very different questions here. subscript variable and argument constructors are belongs to c? if so please tell me the topics. i have not studied those at all... anyway good questions.. thanks

jack ilamaran on 2011-10-18 16:31:24 wrote,

i want to continue.

tufan anand on 2011-10-25 09:43:11 wrote,

i thinks if anyone learns from this site then he or she learns wrong concept.

prashant khandelwal on 2011-11-11 17:56:00 wrote,

its gud,
I like it........

bishanjit kumar on 2011-11-27 07:20:26 wrote,

Which of the following about subscript variable in FALSE?
Option A: The subscript variable must be an integer
Option B: The subscript variable must be negative
Option C: Both A and B
Option D: None of the above
Your Answer: A
Correct Answer: B

acording to my knowledge

i think the answer is A because in array's we delare array varibale whose size should be in integer form

inform me if i am wrong with a valid reason

rahul gupta on 2012-01-06 04:57:55 wrote,

questions

Yellaiah B on 2012-03-10 11:06:46 wrote,

What value is returned by following C statement?
strcmp("EXFORSYS", "EXFORSYS");

Option A: -1
Option B: Zero
Option C: 0
Option D: None of the above

Your Answer: C
Correct Answer: B

strcmp() gives "0" if equal.
"-1" if not equal...

Suryansh Mishra on 2012-03-16 15:47:31 wrote,

got 80 percent... yippyyyyy..... :) ;)

Jitendra Kumar on 2012-03-26 07:42:22 wrote,

Some answers are wrong. Please correct them

harinath reddy on 2012-04-01 04:41:15 wrote,

very nice....

ranjan raj on 2012-04-09 19:06:15 wrote,

its easy test .... some was based on memory only... i got 95%

swapnil bharti on 2012-05-16 13:43:35 wrote,

good question
i got 60% mark

vishal srivastava on 2012-05-27 09:12:31 wrote,

1. what is the logic behind question 11 options writing zero and 0
2. It is not necesary that a single argument constructor is always a copy constructor
3. while declaring a function, functions body is not there. function body is at the time of defining function.

LCN Sarthi on 2012-06-16 06:39:48 wrote,

c is nice language

akshay saindane on 2012-06-23 04:38:47 wrote,

the answer of 11th question is appsouloutly wrong because the correct ans is "0"
since the funn strcmp(); always returns an int value

pramit chanda on 2012-06-23 04:50:25 wrote,

good questions........

pramit chanda on 2012-06-23 04:55:27 wrote,

ok...

sabiya kazi on 2012-07-11 13:26:40 wrote,

Increase difficulty of queshions...................
strcmp() returns difference between 2 strings....
if both strings lexically equal then returns 0....
if first is longer than second,return value greater than 0,otherwise less than 0...

ramesh hiranwar on 2012-08-05 13:47:00 wrote,

good questions , & increase the hard questions into it ...........

santu pal on 2012-08-06 12:33:32 wrote,

yeahhh

Mohan Kumar on 2012-11-04 05:15:20 wrote,

Hi dude, I've two doubts in this quiz and need a clarification from you, please :
1. "Question 11 :

What value is returned by following C statement?
strcmp("EXFORSYS", "EXFORSYS");

Option A: -1

Option B: Zero

Option C: 0

Option D: None of the above

Your Answer: C

Correct Answer: B"

I think both Options B & C are same, please check out it.

2. "Question 20 :

Which of the following is present in the function declaration?

Option A: Argument declaration

Option B: Body of function

Option C: Both A and B

Option D: None of the above

Your Answer: A

Correct Answer: C"

For this question, the answer might be A only, because in the function declaration(prototype), we are just declaring the function name with return type and the argument's data type only. Please check out this and clarify me, let me too check out for this.

Mohan Kumar on 2012-11-04 05:18:00 wrote,

Also, for the constructor question, the single argument constructor can be of any type (either a normal or a copy), its not compulsory that all single argument constructor must be a copy constructor. Please check out this too.

sushil patel on 2012-12-15 05:56:44 wrote,

some questions are little bit hard that,s why i got 65%...

Ankit Kumar on 2013-01-30 17:32:54 wrote,

For question 11 both options B and C are right.

vikas pancharia on 2013-03-03 11:37:41 wrote,

mast tha i got in 55%..............

kml 333 on 2013-07-14 16:35:59 wrote,

just post the well known question and answer only... 11th and 20th...bcos we r trying to study from net like ur site....

Anjani Singh on 2013-11-04 07:44:08 wrote,

11. c

20.a
above are the correct answer for the qustin number 11 and 20.

sunny kumar tiwari on 2014-10-11 05:18:08 wrote,

correct answer for 11 & 20 is c & a respectively