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) Let a and b be two integers such that a + b = 10. Then the greatest value of a x b is ___


2)

What is the output of the program

#include<stdio.h>

int main()

{

    union a

    {

        int i;

        char ch[2];

    };

    union a u;

    u.ch[0] = 3;

    u.ch[1] = 2;

    printf("%d, %d, %d\n", u.ch[0], u.ch[1], u.i);

    return 0;

}



3) Point out the error in the following program. #include struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }


4)

void  main()

{

int i=3;

switch(i)

{

default:printf("zero");

case 1: printf("one");

break;

case 2:printf("two");

break;

case 3: printf("three");

break;

}

}



5) Which of the following cannot be checked in a switch-case statement?


6)

which of the following are correct?

1 :

typedef long a;
extern int a c;

2 :

typedef long a;
extern a int c;

3 :

typedef long a;
extern a c;



7) What will be the output of the program? #include int main() { int x=4, y, z; y = --x; z = x--; printf("%d, %d, %d\n", x, y, z); return 0; }


8) What will be the output of the program? #include int main() { int i=0; for(; i<=5; i++); printf("%d,", i); return 0; }


9)

What will be the output of the program?

#include<stdio.h>

int main()

{

    int x, y, z;

    x=y=z=1;

    z = ++x || ++y && ++z;

    printf("x=%d, y=%d, z=%d\n", x, y, z);

    return 0;

}



10)

Point out the error, if any in the while loop.

#include<stdio.h>

int main()

{

    void fun();

    int i = 1;

    while(i <= 5)

    {

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

        if(i>2)

            goto here;

    }

return 0;

}

void fun()

{

    here:

    printf("It works");

}

Page 1 of 2
Home | Register for Job Updates | Contact Us