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!

Вкажіть, де відбувається оголошення сталих(констант) або змінних

(C++)

0%
0%
View this question

Яке з наступних тверджень про оператора return є не вірним?

(C++)

0%
0%
0%
View this question

Відзначте правильні оголошення змінних:

(C++)

0%
0%
0%
0%
View this question
Якщо функція має тип void , то невірно, що

(C++)

0%
0%
0%
View this question
Який буде результат?

 int f (int & x) {

 static int a = 0;

 if (! a) a = ++ x; return a;

}

 int y = 6;

 f ( y );

 cout << f ( y ) << y;

(C++)

View this question
Якщо є програма

int a; // в глобальному просторі

void f () {extern int a; a = 8; }

і в функції main() виконується

a = 3; f (); cout << a;

то якою буде результат?

(C++)

0%
0%
0%
0%
View this question
Виберіть всі правильні відповіді.

В змінної типу unsigned short int можна зберігати число

(C++)

0%
View this question
Чи вірний нижченаведений код?

Який результат його роботи?

#include <conio.h>

 #include <iostream.h>

int main () {

enum {t, x, y, z, w};

 cout << t + x + y + z + w;

 getch ();

return 0;

} (C++)

 

Error moodle database input: код вірний, його результат 10

View this question
Визначте розмір структури

struct {

char fio [30];

unsigned char date: 4;

unsigned char code: 4;

};

(C++)

View this question
У якийсь зміною в даному коді найкоротший "час життя"?

char foo (char my_ch)

{

char ch = my_ch;

static int flag = 1;

if (flag) {

char p;

p = ch;

ch = ch + 1;

}

.....

return ch;

}

(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