pencil-icon
Build your own quiz

Computers

1st

grade

Image

if ... else ... C#

3
plays

6 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    Выберите правильную конструкцию if ... else ... в C#

    if ... then

    ...

    else

    ...

    else:

    ...

    if ... :

    ....

    if (...)

    {

    ...

    }

    else

    {

    ...

    }

    if ... :

    ...

    else:

    ...

  • 2. Multiple Choice
    45 seconds
    1 pt

    int a = 10, b = 5;

    bool c = a != b;

    if (c) {

    Console.Write("1 2 3");

    } else {

    Console.Write("3 2 1");

    }

    Что выведет в консоль данная программа?

    1 2 3

    1 2 33 2 1

    3 2 1

    3 2 11 2 3

  • 3. Multiple Choice
    45 seconds
    1 pt

    int a = 21, b = 15;

    if (a < b) {

    Console.Write("1 2 3");

    } else {

    Console.Write("3 2 1");

    }

    Что выведет в консоль данная программа?

    1 2 3

    1 2 33 2 1

    3 2 1

    3 2 11 2 3

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?