logo

Crowdly

Browser

Add to Chrome

Об'єктно-орієнтоване програмування (1 курс КН)

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!

Що означає запис typedef basic_filebuf <char > filebuf;?

(C++)

View this question
Який буде результат наступного виразу?

template <class T > class A

{Public: T x1; T x2;

T func (T x3)

{X3 + = x1 + x2;

return x3;

}

};

int main ()

{A <float > A1;

A1.x1 = 5.5; A1.x2 = 0.6;

cout < < A1.func (1.1);

}

(C++)

0%
0%
0%
View this question
Який буде результат наступного виразу?

template <class T > class A

{Public: T x1; T x2;

T func (T x3)

{X3 + = x1 + x2;

return x3;

}

};

int main ()

{A <int > A1;

A1.x1 = 3; A1.x2 = 10;

cout < < A1.func ~ ;

}

(C++)

0%
0%
0%
View this question
Який результат буде у наступного виразу?

#include <iostream.h>

#include <fstream.h>

int main (

{

int i = 1, j = 25; double a = 25e6; char s [40];

strcpy (s, "Test");

ofstream outfile ( "c: \ test.txt");

if (! outfile)

{ Cout << "Помилка створення файлу";

return 1; }

outfile << i << '' << j << '' << a << '' << s << endl;

outfile.close ();

}

(C++)

View this question
Є запис ( monstr - базовий клас, daemon - похідний):

monstr * р:

р = new daemon:

При виконанні віртуального методу p- >draw(1, 1, 1, 1); буде викликаний

(C++)

View this question
Які функції називаються чисто віртуальними?

(C++)

View this question
Який буде результат, якщо конструктор абстрактного класу викличе чисто віртуальну функцію?

(C++)

0%
0%
View this question
Який буде результат виконання наступного коду?

class A {

public:

int inc (int x) {return ++ x; };

int inc (short x) {return x + 2; };

};

A obj; int y = 5;

cout << obj.inc (y);

(C++)

View this question
Відзначте істинне твердження для абстрактного класу.

(C++)

View this question
Чи можна використовувати віртуальну функцію, яка імітує віртуальний конструктор, для розмноження об'єктів?

(C++)

View this question

Want instant access to all verified answers on moodle.chnu.edu.ua?

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

Browser

Add to Chrome