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)

What will be the output of the program?

#include<stdio.h>

int main()

{

    int x = 3;

    float y = 3.0;

    if(x == y)

        printf("SreeJobs");

    else

        printf("SreeSol");

    return 0;

}



2)

What will be the output of the program?

#include<stdio.h>

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;

}



3)

In the expression a=b=c=50 the order of Assignment is NOT decided by Associativity of operators



4) #include int main() { int a = 10, b; a >=5 ? b=100: b=200; printf("%d\n", b); return 0; }


5)

void  main()

{

float me = 1.1;

double you = 1.1;

if(me==you)

printf("I love U");

else

printf("I hate U");

}



6) Which of the following is not user defined data type? 1 : struct book { char name[10]; float price; int pages; }; 2: long int l = 2L; 3: enum day {Sun, Mon, Tue, Wed}; 4: union employee { int id; Char name[36]; int sal; };


7)

Which of the following is not logical operator?



8)

What will be the output of the program?

#include<stdio.h>

int main()

{

    float a = 0.7;

    if(0.7 > a)

        printf("Hi if\n");

    else

        printf("Hello else\n");

    return 0;

}



9)

Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1



10) Which is the correct order of mathematical operators ?