logo

Crowdly

Browser

Add to Chrome

Програмування. Частина 1. Основи алгоритмізації та структурне програмування

Looking for Програмування. Частина 1. Основи алгоритмізації та структурне програмування test answers and solutions? Browse our comprehensive collection of verified answers for Програмування. Частина 1. Основи алгоритмізації та структурне програмування at do.ipo.kpi.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Коли доцільніше використовувати switch, а коли ланцюжок if-else-if?

0%
0%
0%
0%
0%
View this question

Вкажіть коректне твердження про default у switch.

0%
0%
0%
0%
100%
View this question

Який буде результат виконання?

#include <iostream>

int main() {

    int mark = 85;

    if (mark >= 90) {

        std::cout << "A";

    } else if (mark >= 75) {

        std::cout << "B";

    } else if (mark >= 60) {

        std::cout << "C";

    } else {

        std::cout << "D";

    }

}

0%
0%
0%
0%
100%
View this question

Які значення дозволено ставити після ключового слова case?

0%
0%
0%
0%
0%
View this question

Що виведе програма, якщо користувач введе -3?

#include <iostream>

int main() {

    int n;

    std::cin >> n;

    if (n > 0) {

        std::cout << "POS";

    } else {

        std::cout << "NONPOS";

    }

}

0%
0%
0%
0%
100%
View this question

Чи обов’язково після кожного if писати else?

0%
0%
0%
100%
0%
View this question

Що виведе програма?

#include <iostream>

int main() {

    bool ready = false;

    if (ready) {

        std::cout << "GO";

    } else {

        std::cout << "WAIT";

    }

}

0%
0%
0%
100%
0%
View this question

Проаналізуйте код:

#include <iostream>

int main() {

    int a = 3, b = 3;

    if (a == b);

    {

        std::cout << "EQ";

    }

    else {

        std::cout << "NEQ";

    }

}

0%
0%
0%
0%
0%
View this question

Користувач ввів -5. Що надрукує код?

#include <iostream>

int main() {

    int t;

    std::cin >> t;

    if (t < 0) {

        std::cout << "ICE";

    } else {

        std::cout << "WATER";

    }

}

0%
0%
0%
0%
100%
View this question

Який буде вивід?

#include <iostream>

int main() {

    int x = 10;

    if (x % 2 == 0) {

        std::cout << "even";

    } else {

        std::cout << "odd";

    }

}

100%
0%
0%
0%
0%
View this question

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome