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!

Вказати вірні відповіді.

Структури -

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

Задано наступні оголошення:

 

typedef

int Score;

struct

Exam

{

   Score 

min;

   Score 

max;

   double avg;

   double stDev;

};

Exam

exam1, exam2;

 

Які із наступних команд будуть хибними?

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

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

Яким буде

результат виклику функції:

cout << f(4) << endl;

 

Функція:

int f(int n)

{

   if (n==1)

      return 1;

   else

      return

n*(n-1) * f(n-2);

}

0%
0%
0%
0%
View this question

Яким буде

результат виклику функції:

cout << f(4) << endl;

 

Функція:

int f(int n)

{

   if (n==0)

      return 1;

   else

      return

n*(n-1) * f(n-2);

}

0%
0%
0%
0%
View this question

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

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

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

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

int a

=1,

b;

b

= (++

a

)

+ 1;

cout

<<

a

<<

endl;

cout

<<

b

<<

endl;

View this question

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

int x=1;

const int& y=x;

y--;

cout << x << endl;

cout << y << endl;

0%
0%
100%
0%
View this question

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

     int i=1, j=0,

x;

     switch (i)

{          

         case 0:

                x = j;

                break;

         case 1:

                x = 0;

                break;

         case 2:

                x = i;

         default:

                x = 5;

     }

     cout << x

<< endl;

0%
0%
0%
0%
View this question

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

int a=1, b;

b = a++;

cout << a << endl;

cout << b << endl;

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

Вказати

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

do команда; 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