100 Multiple choice questions in C

Discussion in 'C' started by coderzone, Apr 2, 2006.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Please take the time to post the questions and if anything is not relating to the article post them as separate query in the forum.
     
  2. sudheer157

    sudheer157 New Member

    Joined:
    Aug 22, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    hi shabbir
    i have only scanned copies of the questions,that is the reason i send them as bmp images in zip file,if possible please send the answers to those questions,
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I have deleted them and if they are not the question relating to the article have them as separate thread. Also try to type them out or try making them OCR.
     
  4. sudheer157

    sudheer157 New Member

    Joined:
    Aug 22, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    hi
    for Q19 in discussons you told sol is 1,but sol 3 seems to be correct,as memory created by alloca is valid only in the array_dup() function.
     
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    But its non standard option forced me to opt for the other one.
     
  6. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Not all the answers are correct. Perhaps you should expend some additional effort before publishing misleading or inaccurate information.
     
  7. shigatsu

    shigatsu New Member

    Joined:
    Sep 16, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi there, does anyone have answer key? i wanna know if my answers were correct. pls send me if it is ok. crazyfunk69@yahoo.com i really do appreciate it. tnx :)
     
  8. Pruthvik_Falcon

    Pruthvik_Falcon New Member

    Joined:
    Oct 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hai.............
    This pruthvik here.............. i saw the questions out here it was real good fealing ......... was on some project n needed some good questions n got those but very much inneed of answers .......... plz help me out........ its damme urgent.............
     
  9. Pruthvik_Falcon

    Pruthvik_Falcon New Member

    Joined:
    Oct 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    can i know the answwers for those c questions........... asps
     
  10. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Do not make the same post over and over again.
     
  11. iarneel

    iarneel New Member

    Joined:
    Nov 3, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
  12. vipul_tilak

    vipul_tilak New Member

    Joined:
    Dec 25, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    SE
    Location:
    Bangalore

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

    vipul_tilak New Member

    Joined:
    Dec 25, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    SE
    Location:
    Bangalore
    My email id is vipul_tilak@yahoo.com or vipul.tilak@gmail.com
     
  14. fundooboy

    fundooboy New Member

    Joined:
    Mar 8, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
  15. michaelqiao

    michaelqiao New Member

    Joined:
    Mar 9, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
  16. intelaravind

    intelaravind New Member

    Joined:
    Apr 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    :crazy: :crazy: can any one pls mail the answers of all questions to intelaravind@gmail.com.
    :D and if possible with explanation
     
  17. MultipleChoiceInC

    MultipleChoiceInC New Member

    Joined:
    May 4, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    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-???)
     
  18. MultipleChoiceInC

    MultipleChoiceInC New Member

    Joined:
    May 4, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    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);
     
  19. MultipleChoiceInC

    MultipleChoiceInC New Member

    Joined:
    May 4, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    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,"?");
     
  20. MultipleChoiceInC

    MultipleChoiceInC New Member

    Joined:
    May 4, 2008
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice