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) Point out the error, if any in the program. #include void main() { int i ; i=1; switch(i) { printf("This is c program."); case 1: printf("Case1"); break; case 2: printf("Case2"); break; } }


2) Point out the error, if any in the while loop. #include int main() { int i=0; while() { printf("%d\n", i++); if(i>10) break; } return 0; }


3)

Will the following code compile

 void main()

{

int i=5;

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

}



4) Size of short integer and long integer would vary from one platform to another


5)

In which order do the following gets evaluated

1.

Relational

2.

Arithmetic

3.

Logical

4.

Assignment



6)

Point out the error, if any in the program.

 

#include<stdio.h>

int main()

{

    int j = 100;

    switch(j)

    {

       case 10:

       printf("Case 1");

 

       case 20:

       printf("Case 2");

       break;

 

       case j:

       printf("Case j");

       break;

    }

    return 0;

}



7)

What is the output of the program

#include<stdio.h>

int main()

{

    extern int fun(float);

    int a;

    a = fun(3.14);

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

    return 0;

}

int fun(aa)

float aa;

{

    return ((int)aa);

}



8)

Identify which of the following are declarations

1 :

extern int exe;

2 :

void square ( float x ) { ... }

3 :

double pow(double, double);



9) Which of the following special symbol allowed in a variable?


10) What will be the output of the program? #include int main() { unsigned int i = 65535; /* Assume 2 byte integer*/ while(i++ >= 0) printf("%d",i); printf("\n"); return 0; }
Page 1 of 2
Home | Register for Job Updates | Contact Us