PlacementPapers.asia

Placement Papers 2008,2009,2010 for Freshers.Largest Collection of IT Companies Placement Papers and Interview Questions in india. Latest Placement Papers of IT and Non-IT Companies.




Categories

Links

  • Dharma Placement Paper-2006 (Technical)
    Give the output of the programs in each case unless mentioned otherwise :
    1. void main()
    {
    int d=5;
    printf(“%f”,d);
    }
    Ans: Undefined
    2. void main()
    {
    int i;
    for(i=1;i<4,i++)
    switch(i)
    case 1: printf(“%d”,i);break;
    {
    case 2:printf(“%d”,i);break;
    case 3:printf(“%d”,i);break;
    }
    switch(i) case 4:printf(“%d”,i);
    }
    Ans: 1,2,3,4
    3. void main()
    {
    char *s=”\12345s\n”;
    printf(“%d”,sizeof(s));
    }
    Ans: 6
    4. void main()
    {
    unsigned i=1; /* unsigned char k= -1 => k=255; */
    signed j=-1; /* char k= -1 => k=65535 */
    /* unsigned or [...]

    No Comments