logo

Crowdly

Browser

Add to Chrome

Обчислювальна техніка та програмування [04123]

Looking for Обчислювальна техніка та програмування [04123] test answers and solutions? Browse our comprehensive collection of verified answers for Обчислювальна техніка та програмування [04123] at vns.lpnu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Код програми, поданий нижче буде скомпільовано і виконано без помилок:

0%
0%
View this question

Фрагмент коду, поданий нижче містить "вічний" цикл:

int ch = 1, k = 10, sum = 0;  while (ch < k)  sum += ch;  ch++;  cout << sum;  
92%
8%
View this question

Код програми, поданий нижче ,буде скомпільовано і виконано без помилок:

#include <iostream>

using namespace std;

 

void main()

{

char** mas = new char*[5];

for (int i = 0; i < 5; i++) {

mas[i] = new char[10];

strcpy_s(mas[i],10,"Hello");

}

for (int i = 0; i < 5; i++)

cout << mas[i][i] << "\n";

}

 

0%
0%
View this question

Який результат виконання наступного фрагмента коду:

int k = 3;

double mas[k] = { 1, 2, 3 };

for (int i = 0; i<k; i++)

mas[i++] += 4;

for (int i = 0; i<k; i++)

cout << mas[i];

return 0;

 

0%
0%
0%
0%
0%
View this question

Чи працюватиме код поданий далі? Якщо так, то який результат його виконання?

#include<iostream>

using namespace std;

struct S

{

int t : 5;

char c : 3;

int size;

};

void main()

{

S obj = { 36, 9 };

cout << obj.t << "\t" << int(obj.c);

}

View this question

Який результат виконання наступного фрагмента коду:

short arr[4] = { 1, 2, 3, 4, 5 };

for (int i = 0; i < 4; i++)

cout << arr[i] << "\t";

 

View this question

Якого значення набуде змінна Х унаслідок виконання алгоритму?

Блок-схема

View this question

Код програми, поданий нижче ,буде скомпільовано і виконано без помилок:

#include<iostream>

using namespace std;

 

void main()

{

char** mas = new char*[5];

for (int i = 0; i < 5; i++) {

mas[i] = new char[10];

strcpy_s(mas[i],10, "Hello");

}

for (int i = 0; i < 5; i++)

cout << *mas[i] << "\t";

}

 

75%
25%
View this question

Код програми, поданий нижче буде скомпільовано без помилок:

#include<iostream>

using namespace std;

 

void main()

{

char str[] = "To be or not to be";

cout << strstr(str, "be");

}

 

0%
0%
View this question

Чи працюватиме код поданий далі? Якщо так, то який результат його виконання?

#include <iostream>

using namespace std;

union A {

char* s;

struct B {

double b;

int a;

};

};

void main(){

cout << sizeof(A) << "\t" << sizeof(A::B) << "\n";

}

View this question

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome