1. Question: What will be output if you will compile and execute the following c code?
    #include<stdio.h>
    int main(){
      int a=5;
      float b;
      printf("%d",sizeof(++a+b));
      printf(" %d",a); 
      return 0;
    }

    A
    2 6

    B
    4 6

    C
    2 5

    D
    4 5

    E
    Compiler error

    Note: Not available
    1. Report
  2. Question: What will be output if you will compile and execute the following c code?
    #include<stdio.h>
    
    void call(int,int,int);
    
    int main(){
      int a=10;
      call(a,a++,++a); 
      return 0;
    }
    
    void call(int x,int y,int z){
      printf("%d %d %d",x,y,z);
    }

    A
    10 10 12

    B
    12 11 12

    C
    12 12 12

    D
    10 11 12

    E
    Compiler error

    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(){
      register int i,x;
      scanf("%d",&i);
      x=++i + ++i + ++i;
      printf("%d",x);
      return 0;
    }

    A
    17

    B
    18

    C
    21

    D
    22

    E
    Compiler error

    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 i=3;
      if(3==i)
        printf("%d",i<<2<<1);
      else
        printf("Not equal");
    }

    A
    1

    B
    48

    C
    24

    D
    Not equal

    E
    Compiler error

    Note: Not available
    1. Report
  5. Question: In which numbering system can the binary number 1011011111000101 be easily converted to?

    A
    Decimal system

    B
    Hexadecimal system

    C
    Octal system

    D
    No need to convert

    Note: Not available
    1. Report
  6. Question: Which bitwise operator is suitable for turning off a particular bit in a number?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    ! operator

    Note: Not available
    1. Report
  7. Question: Which bitwise operator is suitable for turning on a particular bit in a number?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    | operator

    Note: Not available
    1. Report
  8. Question: Which bitwise operator is suitable for checking whether a particular bit is on or off?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    ! operator

    Note: Not available
    1. Report
  9. Question: Which bitwise operator is suitable for checking whether a particular bit is on or off?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    ! operator

    Note: Not available
    1. Report
  10. Question: Which of the following is the correct order of evaluation for the below expression? z = x + y * z / 4 % 2 - 1

    A
    * / % + - =

    B
    = * / % + -

    C
    / * % - + =

    D
    * % / - + =

    Note: C uses left associativity for evaluating expressions to break a tie between two operators having same precedence.
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd