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=1, x;

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

cout << a << endl;

cout << b << endl;

cout << x << endl;

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

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

     int i=1, j=2,

x;

     if ( i > 0

)          

     {   

         if ( j < i )

             x = j;

     }

     else

         x = i;

     cout << x

<< endl;

0%
0%
0%
0%
View this question

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

     int i=1, j=0,

x;

     switch (i)

{          

         case 0:

                x = j;

                break;

         case 1:

                x = 0;

         case 2:

                x = i;

         default:

                x = 5;

     }

     cout << x

<< endl;

0%
0%
100%
0%
View this question

Замінити команду присвоєння

еквівалентними командами – так, щоб не використовувалася операція інкременту, і

модифікація змінних

a та b виконувалася у правильному порядку.

int a

=1,

b;

b

=

a-- + 1;

cout

<<

a

<<

endl;

cout

<<

b

<<

endl;

View this question

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

     int i=1, j=2,

x;

     if ( i < 0

)          

     {   

         if ( j < i )

             x = j;

     }

     else

         x = i;

     cout << x

<< endl;

100%
0%
0%
0%
View this question

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

int x=1;

const int& y=x;

x--;

cout << x << endl;

cout << y << endl;

0%
0%
0%
0%
View this question

Вказати

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

const тип& змінна

33%
83%
33%
0%
0%
0%
83%
83%
17%
83%
83%
0%
View this question

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

     int k=1, n=10;

     for (int i=1;

i++ <= n; i++)

         k += 1;

     n -= k;

     cout << n

<< endl;

     cout << k

<< endl;

0%
0%
75%
0%
25%
0%
0%
0%
View this question

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

     int k=1, n=10;

     for (int i=1; i

<= --n; i++)

         k += 1;

     k += n;

     cout << n

<< endl;

     cout << k

<< endl;

View this question

Вказати

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

while (умова) команда;

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