pencil-icon
Build your own quiz

Computers

University

Image

C Programming

318
plays

70 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt

    int main()


    {


    int a = 10, b = 25;


    a = b++ + a++;


    b = ++b + ++a;


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


    }

    36 64

    35 62

    36 63

    30 28

  • 2. Multiple Choice
    30 seconds
    1 pt

    #include<stdio.h>

    int main()

    {

    float a=0.7;

    if(a<0.7)

    {

    printf("C");

    }

    else

    {

    printf("C++");

    }

    }

    C

    C++

    Compilation Error

    None of the these

  • 3. Multiple Choice
    30 seconds
    1 pt

    int main() {


    int m = -10, n = 20;


    n = (m < 0) ? 0 : 1;


    printf("%d %d", m, n);


    }

    -10 0

    10 20

    20 -10

    0 1

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?