logo

Crowdly

Browser

Add to Chrome

Основи програмування

Looking for Основи програмування test answers and solutions? Browse our comprehensive collection of verified answers for Основи програмування at virt.ldubgd.edu.ua.

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

Яка частина коду містить у собі логічну помилку?

0%
0%
View this question

Результат компіляції програми:

switch (2) {

case 0:

     System.out.println(" нуль ");

     break;

case 1:

     System.out.println(" одиниця ");

     break;

default:

     System.out.println(" двійка ");

     }

}

View this question

Результат компіляції програми:

switch (2) {

case 1:

       switch ('a') {

       case 'a':

       System.out.print("a");

       break;

       case 'b':

       System.out.print("b");

       break;

       }

case 2:

       switch ('a') {

       case 'a':

       System.out.print("a");

       case 'b':

       System.out.print("b");

       break;

                    }

              }

       }

}

View this question

При

застосуванні операторів умовного розгалуження

if-else

в результаті перевірки умови

повертається логічне значення типу

View this question

Оператор, що надає можливість обирати напрямок виконання програми

залежно від значення керуючого виразу

View this question

Призначення оператора break під час

застосування конструкції

switch

View this question

int i = 10;

             int j = 0;

             if

(i > 0)

{

                    if (j != 0) {

                          j++;

                          i = 11 % j;

                    } else

                          i--;

                    j = i % 3;

             } else

                    i = 0;

             System.out.println(j);

       }

}

View this question

Результат компіляції програми:

int a = 10;

int b = 5;

int c;              

if (a>b) { c = a/b

} else {c = a*b

};

System.out.println(c);

View this question

Яко

Результат компіляції

програми:

int i = 0;

int j = 1;

       if (i == 0) {

             if (j != 0) {

                    j++;

                    i = 11 % j;

             } else

                    i--;

       } else

             i = 0;

System.

out.println(i);

View this question

Якого типу даних можуть бути вирази записані у switch

View this question

Want instant access to all verified answers on virt.ldubgd.edu.ua?

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

Browser

Add to Chrome