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!

Якщо є програма

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

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

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

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

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

(C++)

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

struct {

char fio [30];

unsigned char date: 4;

unsigned char code: 4;

};

(C++)

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
Вкажіть неправильне оголошення перечислимого типу?

(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
Якщо в програмі вже є функція з прототипом int func(int k, double f) , то яке з наступних оголошень не викличе помилки компіляції?

(C++)

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

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

(C++)

0%
View this question
Якими аспектами характеризуються різні класи пам'яті?

(C++)

View this question
Для того щоб вивести символ нового рядка, треба:

(C++)

View this question
Що буде виведено на екран в результаті роботи програми?

#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 (b, a, c);

printf ( "% d |% d |% d", a, c, b);

return 0;

}

(C++)

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