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!

Скільки разів буде

виконано цикл за заданою умовою:

int i, j;

i = 6;

j = 0;

do {--i;

++j;

System.out.print("*");

}

while (i > j);

View this question

Цикл, у якому тіло циклу виконується перед перевіркою

умови має назву:

View this question

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

0%
8%
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

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