Looking for Об'єктно-орієнтоване програмування (1 курс КН) test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування (1 курс КН) at moodle.chnu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
class A
{CountPass ();
private: short i;
} A1;
friend A :: CountPass ()
{A1.i = 23;}
(C++)
class Base
{
public: int a;
protected: int b;
private: int c;
};
class Derived: Base
{
friend class Friend;
int d;
};
class Friend
{
Derived derived;
};
(C++)
(C++)
class Base
{
int a;
public: int b;
protected: int c;
};
class Derived: Base
{
friend class Friend;
int d;
};
class Friend
{
Derived derived;
};
(C++)
Відзначте правильне визначення сталих(констант)и:
(C++)
Що буде виведено в результаті
double x = 12.4;
cout << setw ~ << x << setw(7) << setfill ( '*') << "" << endl;
(C++)
(C++)
Яке значення отримає "p [0]" в даному прикладі?
int a [2] [3] = { {1,2,3 }, {7,8,9 } };
int * p = & a [0] [2];
p + = 3;
(C++)
то що буде в змінній x ?
(C++)
#include <stdio.h>
int a, b, c, d;
void f (int a, int & c, int & d)
{
int b;
a = 5; c = 7; b = 9;
}
int main ()
{
a = 1; c = 1; b = 1;
f (a, c, b);
printf ( "% d |% d |% d", a, c, b);
return 0;
}
(C++)