logo

Crowdly

Browser

Додати до Chrome

Computer systems

Шукаєте відповіді та рішення тестів для Computer systems? Перегляньте нашу велику колекцію перевірених відповідей для Computer systems в moodle.epfl.ch.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

 What happens if a system crashes while writing data without crash consistency mechanisms?

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

Which statement(s) is/are TRUE regarding the structure of two-level indexing?

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

In a three-level indexing system, the first level contains pointers to the second-level index blocks, which in turn point directly to data blocks.

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

Multi-level indexing in a file system is used to manage large files efficiently by breaking index structures into multiple levels.

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

If you open a file and add some data to it, which of the following information may be updated in the file's inode?

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

Consider the following five functions:

char* f1(char* s)

{

s += 5;

*s = 0;

return s;

}

char* f2(char* s1)

{

char* s2 = s1;

s2[5] = '\0';

return s1;

}

char* f3(char* s1)

{

char s2[5] = s1;

return s2;

}

char* f4(char* s)

{

return strstr(s, "Hello");

}

char* f5(char* s1)

{

char* s2 = NULL;

strncpy(s2, s1, 5);

return s2;

}

and consider the following variable:

char string[] = "Hello world!";

For each of the functions, choose the appropriate statement when called on string.

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

Consider the following variable:

char* s1 = "Hello";

Tick each of the following statements which are incorrect (considered separately).

Penalty for wrong ticks.

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

Assume that x is a double variable and that f is a pointer to a function taking a double and returning a double.

Tick all the possible calls to f.

Penalty for wrong ticks.

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

What does the following code print?

#include <stdio.h>

#include <string.h>

void f(char* string)

{

const size_t size = strlen(string);

if (size >= 8) string[7] = '\0';

if (size >= 5) string[4] = 'a';

puts(string);

}

int main(void)

{

f("How qre you?");

return 0;

}

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

What is the correct way to define a type funct to point to a function taking a pointer to an int

an returning a pointer to an int?

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

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.epfl.ch?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome