#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    Online Test Practice C Programming


    Hello guys i am new. I saw all topics but not find any topic related test i mean practice test for programmers. Because like Maths English or science we cant talk about programming to our any senior. Then Practice test websites help a lot they show test result quickly. Guys please reply about my this free online test website.

    Onlinetestpractice.org :flame:
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,387
    Rep Power
    1871
    First test
    Code:
    #include<stdio.h>
    #define JOIN(s1, s2) printf(\"%s=%s %s=%s \\n\", #s1, s1, #s2, s2);
    int main()
    {
    char *str1=\"India\";
    char *str2=\"BIX\";
    JOIN(str1, str2);
    return 0;
    }
    The actual result is compilation failure - which was none of the options presented.

    But then again, it seems that all your examples are full of stray \ characters.

    Also, what is the point of this useless popup when pressing submit?
    Code:
    {"test_id":"3","taken_time":"1_29","questions":[{"question_id":"75","given_option":"b"},{"question_id":"168","given_option":"***NULL***"}]}
    Just submit the answer already, don't bore people with your debug code.

    You also need to be neutral when posting your questions. When you say "find the error in...", there is no point giving two plausible outputs as these can immediately be dismissed as not the answer, and then it becomes a 50-50 shot at the two options with the word "error" in them.

    You should drop any mention of TurboC from your examples. It's obsolete, nobody offering any employment will be the slightest bit interested.

    On the plus side, at least all your main functions were declared int and ended with return 0; I was rather expecting to see lots of void main horrors.
    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

IMN logo majestic logo threadwatch logo seochat tools logo