Sreejobs Logo
   For Latest Job Updates  
sreenutech.com Online Exams
Home Govt Jobs IT Fresher Jobs IT Exp Jobs IT Walk-Ins MBA Jobs BPO Jobs Register FAQ’s Post Job Contact Us
Search:
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 20.
1) Which of the following operations are INCORRECT?


2)

void  main()

{

int i =0;j=0;

if(i && j++)

printf("%d..%d",i++,j);

printf("%d..%d,i,j);

}



3) In the following program how long will the for loop get executed? #include int main() { int i; for(;scanf("%s", &i); printf("%d\n", i)); return 0; }


4)

#include<stdio.h>

int main()

{

    int a = 10, b;

    a >=5 ? b=100: b=200;

    printf("%d\n", b);

    return 0;

}



5)

What will be the output of the program?

#include<stdio.h>

int main()

{

    static int a[5];

    int i = 0;

    a[i] = i  ;

    printf("%d, %d, %d\n", a[0], a[1], i);

    return 0;

}



6) What will be the output of the program? #include int main() { int i=3; switch(i) { case 1: printf("Hello\n"); case 2: printf("Hi\n"); case 3: printf("Bye\n"); default: continue; } return 0; }


7) What is the output of the program #include int main() { enum status { pass, fail, atkt}; enum status stud1, stud2, stud3; stud1 = pass; stud2 = atkt; stud3 = fail; printf("%d, %d, %d\n", stud1, stud2, stud3); return 0; }


8)

Point out the error, if any in the program.

#include<stdio.h>

void  main()

{

    int i ;

    i=1;

    switch(i)

    {

        printf("This is c program.");

        case 1:

            printf("Case1");

            break;

        case 2:

            printf("Case2");

            break;

    }

}



9) What will be the output of the program? #include int main() { char ch; if(ch = printf("")) printf("It matters\n"); else printf("It doesn't matters\n"); return 0; }


10) 6. What will be the output of the program? #include int main() { int i=-3, j=2, k=0, m; m = ++i && ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }
Page 1 of 2
Home | Register for Job Updates | Contact Us