Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/articles/c-tutorials/)
-   -   100 Multiple choice questions in C (http://www.go4expert.com/articles/100-multiple-choice-questions-c-t1373/)

iarneel 19Nov2007 13:59

Re: 100 Multiple choice questions in C
 
plz can some1 send me the ans to/
irnish@yahoo.it

vipul_tilak 25Dec2007 19:12

Re: 100 Multiple choice questions in C
 
Quote:

Originally Posted by shabbir
I would suggest dont keep them here because that would be the spoiler. Put them in a seperate thread and place a link from here if you wish to.


Hi can you please tell me the answers for the following questions?
5
6
7
8
15
16
34
36
37
42
59
61
62
75
78
80
82
85
87
90
95

Please its urgent dude.

Please help me with the answers.......

Big Thanks in advance

vipul_tilak 25Dec2007 19:14

Re: 100 Multiple choice questions in C
 
Quote:

Originally Posted by vipul_tilak
Hi can you please tell me the answers for the following questions?
5
6
7
8
15
16
34
36
37
42
59
61
62
75
78
80
82
85
87
90
95

Please its urgent dude.

Please help me with the answers.......

Big Thanks in advance

My email id is vipul_tilak@yahoo.com or vipul.tilak@gmail.com

fundooboy 8Mar2008 16:06

Re: 100 Multiple choice questions in C
 
Can anyone plz send me answers at
kshire@gmail.com

michaelqiao 9Mar2008 14:51

Re: 100 Multiple choice questions in C
 
Quote:

Originally Posted by fundooboy
Can anyone plz send me answers at
kshire@gmail.com

can anyone please send me the answers to my email michaelqiao59@gmail.com?

intelaravind 15Apr2008 19:52

Re: 100 Multiple choice questions in C
 
:crazy: :crazy: can any one pls mail the answers of all questions to intelaravind@gmail.com.
:D and if possible with explanation

MultipleChoiceInC 6May2008 04:52

Re: 100 Multiple choice questions in C
 
int main(void){free(0)}

Which one of the following statements is true regarding the above code in Standard C?
Choice 1

The freeing of a null pointer will cause a program crash.
Choice 2

The code is wrong because free is not a standard C function.
Choice 3

malloc should be called before free.
Choice 4

The code is wrong because free does not take one argument.
Choice 5

The call to free will have no effect. (Ans-???)

MultipleChoiceInC 6May2008 04:55

Re: 100 Multiple choice questions in C
 
New Question:

double d[128];

Considering the above array d which below code will write the contents of the array d to the stream indicated by the pointer p?
Choice 1

fprintf(p, "%[128d", d);
Choice 2

fwrite(d, sizeof(double), sizeof(d), p);
Choice 3

fwrite(d, sizeof(d), sizeof(double), p);
Choice 4

write(fp, d, sizeof(d));
Choice 5

fwrite(d, sizeof(*d), 128, p);

MultipleChoiceInC 6May2008 05:01

Re: 100 Multiple choice questions in C
 
Which one of the following appends the character '?' to the string str ?
Choice 1

strcat(str,"\?"); (Ans--?)
Choice 2

strccat(str,'?');
Choice 3

strapp(str,'?');
Choice 4

strcat(str,'?');
Choice 5

strcon(str,"?");

MultipleChoiceInC 6May2008 05:02

Re: 100 Multiple choice questions in C
 
Which one of the following is a true statement about an lvalue?
Choice 1

An lvalue is, by definition, the value appearing on the rightmost side of an assignment statement.
Choice 2

By definition, an lvalue is the storage space indirectly referenced by a pointer.
Choice 3

All lvalues can be used on the right side of an assignment statement. (Ans--?)
Choice 4

An lvalue is the result of an arithmetic operation involving quantities of type long int.


All times are GMT +5.5. The time now is 11:11.