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++ обов'язково є функція

(C++)

View this question
В якому рядку буде помилка компіляції

1 int sum (int a, int b, int c, int d = 4) {

2 int result;

3 result = 128 * a + bc * d;

4 d = 25;

5 a = d;

6 return res;

7}

(C++)

View this question
Список параметрів функції описаний як "void".

Що можна сказати про параметри цієї функції.

(C++)

View this question
Ключове слово void означає що функція

(C++)

View this question
Якщо функція обчислення факторіала n має прототип int fact(int n) , відзначте код, який використовує рекурсію і правильно обчислює значення факторіала:

(C++)

View this question
Перерахуйте побітові логічні оператори:

(C++)

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

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

return 0;

}

(C++)

View this question
Параметр функції описаний як "int a".

Відповідний йому аргумент може бути:

(C++)

0%
0%
0%
0%
View this question
Сукупність типів формальних параметрів, їх порядку і імені функції визначає:

(C++)

0%
0%
0%
0%
View this question
Заголовок функції має вигляд: void f( float a, float b, float& c);

Вкажіть правильні варіанти виклику функції, якщо змінні в

викликає функції описані так: int a; char b,c; float d,x; int a; char b,c; float d,x;

(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