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

    A
    -1 -1

    B
    -1 32767

    C
    -1 -32768

    D
    Not equal

    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>
    int main(){
      int x=2,y=3;
      if(x+y<=5)
        printf("True");
      else
        printf("False");
    }

    A
    True

    B
    False

    C
    Compiler error: Lvalued required

    D
    Compiler error: Invalid expression

    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(){
      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
  4. Question: How many times "vcampus" is get printed?
    #include<stdio.h>
    int main()
    {
        int x;
        for(x=-1; x<=10; x++)
        {
            if(x < 5)
                continue;
            else
                break;
            printf("vcampus");
        }
        return 0;
    }

    A
    Infinite times

    B
    11 times

    C
    0 times

    D
    10 times

    Note: Not available
    1. Report
  5. Question: How many times the while loop will get executed if a short int is 2 byte wide?
    #include<stdio.h>
    int main()
    {
        int j=1;
        while(j <= 255)
        {
            printf("%c %d\n", j, j);
            j++;
        }
        return 0;
    }

    A
    Infinite times

    B
    255 times

    C
    256 times

    D
    254 times

    Note: Not available
    1. Report
  6. Question: Which of the following is not logical operator?

    A
    &

    B
    &&

    C
    ||

    D
    !

    Note: Not available
    1. Report
  7. Question: In mathematics and computer programming, which is the correct order of mathematical operators ?

    A
    Addition, Subtraction, Multiplication, Division

    B
    Division, Multiplication, Addition, Subtraction

    C
    Multiplication, Addition, Division, Subtraction

    D
    Addition, Division, Modulus, Subtraction

    Note: Not available
    1. Report
  8. Question: Which of the following cannot be checked in a switch-case statement?

    A
    Character

    B
    Integer

    C
    Float

    D
    enum

    Note: Not available
    1. Report
  9. Question: Which of the following cannot be checked in a switch-case statement?

    A
    Character

    B
    Integer

    C
    Float

    D
    enum

    Note: Not available
    1. Report
  10. Question: The keyword used to transfer control from a function back to the calling function is

    A
    switch

    B
    goto

    C
    go back

    D
    return

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