L&T Infotech  Placement Paper   Candidate Experiences   College Of Engineering,Roorkee-8 Mar 2008

L&T Infotech  Placement Paper   Candidate Experiences   College Of Engineering,Roorkee-8 Mar 2008


  • Posted by  FreshersWorld 
    7 Jan, 2012

    L & T INFOTECH PAPER ON 8TH MARCH AT O.E.C

    hi friends, this is partho mota from oec.on 8th march L&T recruitment drive came to our college, and i was one of the lucky from 3000 std. who appeared.
    some of the sample C question asked from me were as follows:-
    1.What's the expected output for the following program and why? 
    enum {false,true};
    int main()
    {
    int i=1;
    do
    {
    printf("%d\n",i);
    i++;
    if(i < 15)
    continue;
    }while(false);
    return 0;
    }

    2.The following C program segfaults of IA-64, but works fine on IA-32. 
    int main() { int* p; p = (int*)malloc(sizeof(int)); *p = 10; return 0; }
    Why does it happen so?

    3.I thought the following C program is perfectly valid (after reading about the comma operator in C). But there is a mistake in the following program, can you identify it? 
    #include
    int main()
    {
    int a = 1,2;
    printf("a : %d\n",a);
    return 0;
    }

    4.Explain the output of the following C program (No, the output is not 20). 
    #include
    int main() { int a=1; switch(a) { int b=20; case 1: printf("b is %d\n",b); break; default:printf("b is %d\n",b); break; } return 0; }

    ng
    Friends these were some of the questions which i was asked.i tell you, never loose hope, and if u don't know the answer just go on bluffing....As i totally bluffed as the HR was a mad Foolish person i was got selected...So my dear friends practice bluffing from now...No need to study those rubbish things from R.S Agarwal and GGGRRREEE Barraon....

    By
    Partho Mota
    O.E.C

2009-2016 downloadmela.com. All rights reserved.