1. Question: What will be output if you will compile and execute the following c code?


    #include<stdio.h>

    int main(){
      int i=11;
      int const * p=&i;
      p++;
      printf("%d",*p);
      return 0;
    }

    A
    11

    B
    12

    C
    Garbage value

    D
    Compiler error

    E
    None

    Note: Not available
    1. Report
  2. Question: What will be output if you will compile and execute the following c code?
    #include<stdio.h>
    int main(){
      int a=15,b=10,c=5;
      if(a>b>c )
        printf("True");
      else
        printf("False"); 
      return 0;
    }

    A
    True

    B
    False

    C
    Run time error

    D
    Compiler error

    E
    None

    Note: Not available
    1. Report
  3. Question: What will be output if you will compile and execute the following c code?
    #include<stdio.h>
    int main(){
      float f;
      f=3/2;
      printf("%f",f); 
      return 0;
    }

    A
    1.5

    B
    1.500000

    C
    1.000000

    D
    Compiler error

    E
    None

    Note: Not available
    1. Report
  4. Question: What will be output if you will compile and execute the following c code?


    #include<stdio.h>
    int main(){
      int a=sizeof(a);
      a=modify(a);
      printf("%d",a);
      return 0;
    }

    int modify(int x){
      int y=3;
      _AX=x+y;
      return;
    }

    A
    2

    B
    3

    C
    5

    D
    Garbage value

    E
    None

    Note: Not available
    1. Report
  5. Question: What will be output if you will compile and execute the following c code?

    #define PRINT printf("c");printf("c++");
    int main(){
      float a=5.5;
      if(a==5.5)
        PRINT
      else
        printf("Not equal");
      return 0;
    }

    A
    c c++ Not equal

    B
    Not equal

    C
    c c++

    D
    Compiler error

    E
    None

    Note: Not available
    1. Report
  6. Question: What will be output if you will compile and execute the following c code?


    #include<stdio.h>
    int main(){
      int array[2][2][3]={0,1,2,3,4,5,6,7,8,9,10,11};
      printf("%d",array[1][0][2]);
      return 0;
    }

    A
    4

    B
    5

    C
    6

    D
    7

    E
    8

    Note: Not available
    1. Report
  7. Question: What are the different types of real data type in C ?

    A
    float, double

    B
    short int, double, long int

    C
    float, double, long double

    D
    double, long int, float

    Note: Not available
    1. Report
  8. Question: What will you do to treat the constant 3.14 as a long double?

    A
    use 3.14LD

    B
    use 3.14L

    C
    use 3.14DL

    D
    use 3.14LF

    Note: Not available
    1. Report
  9. Question: If the binary eauivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000 0000, what will be the output of the program (on intel machine)? #include<stdio.h> #include<math.h> int main() { float a=5.375; char *p; int i; p = (char*)&a; for(i=0; i<=3; i++) printf("%02x\n", (unsigned char)p[i]); return 0; }

    A
    40 AC 00 00

    B
    04 CA 00 00

    C
    00 00 AC 40

    D
    00 00 CA 04

    Note: Not available
    1. Report
  10. Question: Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?

    A
    3.4E-4932 to 1.1E+4932

    B
    3.4E-4932 to 3.4E+4932

    C
    1.1E-4932 to 1.1E+4932

    D
    1.7E-4932 to 1.7E+4932

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd