logo

Crowdly

Browser

Add to Chrome

Алгоритмізація та програмування [05670]

Looking for Алгоритмізація та програмування [05670] test answers and solutions? Browse our comprehensive collection of verified answers for Алгоритмізація та програмування [05670] at vns.lpnu.ua.

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

Яким буде результат виконання фрагменту програми:

int a=1, b;

b = (++a) + 1;

cout << a << endl;

cout << b << endl;

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

Які команди еквівалентні до команди циклу for:

     int k=1, n=10;

     for (int i=1; i

<= --n; i++)

         k += 1;

     k += n;

     cout << n

<< endl;

     cout << k

<< endl;

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

Вказати

вірні відповіді.

for (ініціалізація; умова; модифікація

)

команда;

40%
100%
20%
0%
40%
0%
40%
20%
100%
20%
0%
100%
100%
0%
View this question

Яким буде результат виконання фрагменту програми:

int a=1, b;

b = --a;

cout << a << endl;

cout << b << endl;

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

Яким буде результат виконання фрагменту програми:

     int i=1, j=0,

x;

     switch (i)

{          

         case 0:

                x = j;

         case 1:

                x = 0;

                break;

         case 2:

                x = i;

                break;

         default:

                x = 5;

     }

     cout << x

<< endl;

100%
0%
0%
0%
View this question

Замінити

умовну операцію еквівалентною командою розгалуження.

int

a=-1, b=1, x;

x = ( a < b ) ? a -= b : b -= a;

cout

<< a << endl;

cout

<< b << endl;

cout << x << endl;

View this question

Команда циклу з передумовою

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

Вкажіть вірні твердження

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

Замінити

умовну операцію еквівалентною командою розгалуження.

int a

=-1,

b

=1,

x;

x

= (

a

<

b

) ?

a

-=

b

:

b

+=

a;

cout

<< a << endl;

cout

<< b << endl;

cout

<<

x

<<

endl;

View this question

Параметри-константні посилання

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

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome