Thread: Quiz on C

  1. #1
    C is Sea. I know a drop! ganesh bala's Avatar
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    58

    Lightbulb Quiz on C

    Hi ,

    Anyone Please post some tricky questions on C or Links for C quiz..

    It will be helpful 4 me..


    Thanks in Advance..

  2. #2
    and the hat of copycat stevesmithx's Avatar
    Join Date
    Sep 2007
    Posts
    587
    Not everything that can be counted counts, and not everything that counts can be counted
    - Albert Einstein.


    No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
    - Herbert Mayer

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    But the first one is definitely not good:

    These definitely do not have the right answer:
    http://www.geekinterview.com/quiz/review/16/1258.html
    http://www.geekinterview.com/quiz/review/16/1260.html
    http://www.geekinterview.com/quiz/review/16/1264.html

    These are a bit dodgy (may or may not be correct answer, depending on circumstances):
    http://www.geekinterview.com/quiz/review/16/1265.html

    These are compiler-dependant (compiler appears to be 16-bit in this case):
    http://www.geekinterview.com/quiz/review/16/1268.html
    http://www.geekinterview.com/quiz/review/16/1270.html

    That's after about half of the 52 questions.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    C is Sea. I know a drop! ganesh bala's Avatar
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    58

    Thumbs up Thanks

    thanks 4 ur post... Geekinterview was helpful..

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by ganesh bala View Post
    thanks 4 ur post... Geekinterview was helpful..
    I wasn't impressed - there were questions that were CLEARLY wrong, others that use undefined behaviour and the answer is dependant on compiler behaviour. Not a very good basis for "good knowledge".

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Those questions are terrible, NOT worth looking at.

    This website has a nice quiz, why not use that?

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by zacs7 View Post
    Those questions are terrible, NOT worth looking at.

    This website has a nice quiz, why not use that?
    Yes, it's almost like GeekInterview actually wants you to fail in interviews...

    But that is the SECOND hit - and it's actually the answers to the quiz you get... ;-)

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    C is Sea. I know a drop! ganesh bala's Avatar
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    58
    Thanks 4 sharing ....

    If u know , u just post me some other links too

  9. #9
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Quote Originally Posted by zacs7 View Post
    Those questions are terrible, NOT worth looking at.

    This website has a nice quiz, why not use that?
    Which website. Don't see any link from your post ???

    -ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

  10. #10
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by ssharish2005 View Post
    Which website. Don't see any link from your post ???

    -ssharish
    "this" = cprogramming.com

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  11. #11
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Quote Originally Posted by matsp View Post
    "this" = cprogramming.com

    --
    Mats
    At least someone here knows some C++

  12. #12
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Jeez, Geekinterview is one sorry-assed site.

    Every program needs to begin with
    #include <ancient_1980s_assumptions.h>
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  13. #13
    Complete Beginner
    Join Date
    Feb 2009
    Posts
    312
    Hi everyone,

    I set up a small C quiz some time ago, see http://www.0xe3.com/quiz/.

    The questions/answers are fully ANSI/ISO C9x compliant, but I like to restrain from C99-specific stuff. I'd be glad to hear your comments, or better yet, see you add some questions.

    Greets,
    Philip

  14. #14
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It would be nice to get a summary of the result on the final page, don't you think?

    Some of the questions are quite obscure (e.g. dealing with undefined behaviour that isn't entirely obvious to most people). I think there could be some more basic ones.

    Edit: And for fun, it would be nice to see what the percentage answers for each of the incorrect options where once the answer is given (e.g. when the right answer is given 30.9% of the time, what percentage cover was of the other 2 answers).

    --
    Mats
    Last edited by matsp; 02-10-2009 at 05:45 AM.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  15. #15
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Also, quiz question 0x06a should probably rename the third answer to "undefined", since the current answer is sort of implying that the reader don't know the answer...

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. my Quiz
    By hanadi in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2009, 12:43 PM
  2. Try this quiz (just made it with C)
    By voltson4 in forum C Programming
    Replies: 1
    Last Post: 07-11-2003, 06:28 PM
  3. C programming language quiz
    By Trancongan in forum C Programming
    Replies: 7
    Last Post: 04-21-2002, 01:04 PM
  4. C programming quiz
    By Denise in forum C Programming
    Replies: 2
    Last Post: 11-09-2001, 04:49 AM
  5. Brainstorm quiz
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 12:04 PM