logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1235831 total)

Що таке "базисна інновація"?
0%
0%
0%
0%
Переглянути це питання
Яка характеристика визначає "попит" на інновацію?
0%
0%
0%
0%
Переглянути це питання
Що таке "метод синектики"?
0%
0%
0%
0%
Переглянути це питання
Який інструмент використовують для якісного аналізу попиту?
0%
0%
0%
100%
Переглянути це питання

For what value of i

, read from the input in the following code fragment, is there a buffer overflow?

int a[] = { 1, 3, 2, 0 };

int i;

cin >> i;

a[a[i] + 1] = a[i];

0%
0%
0%
100%
Переглянути це питання

Consider a C++ function of the form:

int f(const int a[], int b[]) {

int c[] { 0, 1, 2 };

// ...

return c[0] + c[1] + c[2];

}

Which of the following possibilities to complete the code of f is valid (does not cause a compilation error) after the declaration of c and before the return

instruction?

0%
0%
0%
0%
Переглянути це питання

Consider (as usual in 64-bit machines) that values of type long, int, and char

are represented using 8, 4, and 1 bytes in memory, respectively.

How many bytes are required for the representation of v

shown in the code fragment below (assuming no padding)?

struct data {

long a;

int b[3];

char c[12];

};

data v[4];

0%
0%
0%
0%
Переглянути це питання

What is the output of the following code fragment?

struct data {

int i;

int j;

int v;

};

data d[3] { {0, 1, 2}, {3, 2, 1}, {0, 1, 2} };

std::cout << d[2].j << ' ' << d[d[0].v].i << ' ' << d[d[1].j].v << '\n';

0%
0%
0%
0%
Переглянути це питання

What is the output of the following code fragment?

char s[] = "C/C++ is fun!";

int i = 0;

while (s[i] != '\0' && s[i] != ' ') i++;

s[i] = '\0';

std::cout << i << ' ' << s << '\n';

0%
0%
100%
0%
Переглянути це питання
Що таке "сегментація ринку"?
100%
0%
0%
0%
Переглянути це питання