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)

Will the following code compile

#include<stdio.h>

void main()

{

const int i=4;

float j;

j = ++i;

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

}



2)

void  main()

{

int i=400,j=300;

printf("%d..%d");

}



3)

What will be the output of the program?

#include<stdio.h>

int main()

{

    char str[]="C-program";

    int a = 5;

    printf(a >1?"Sree Jobs\n":"%s\n", str);

    return 0;

}



4) 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; }


5) What will be the output of the program? #include int main() { int a = 50, b = 10, c; if(!a >= 400) b = 30; c = 200; printf("b = %d c = %d\n", b, c); return 0; }


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) Identify which of the following are declarations 1 : extern int exe; 2 : void square ( float x ) { ... } 3 : double pow(double, double);


8)

void  main()

{

printf("%x",-1<<4);

}



9)

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



10) void main() { int i=400,j=300; printf("%d..%d"); }
Page 1 of 2
Home | Register for Job Updates | Contact Us