Looking for 25-26 CS2850: Operating Systems test answers and solutions? Browse our comprehensive collection of verified answers for 25-26 CS2850: Operating Systems at moodle.royalholloway.ac.uk.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Which of the following is not a basic data type in C?
Let a1.out and a2.out be the executable files obtained by running
gcc -Wall -Werror -Wpedantic -o a1.out helloWorld1.cand
gcc -Wall -Werror -Wpedantic -o a2.out helloWorld2.cwhere helloWorld1.c is #include <stdio.h>
int main() { int i = 2; if (i==1) { printf("hello world!\n"); i++; } if (i>1) printf("hello world!\n");}
and helloWorld2.c is
#include <stdio.h>
int main() { int i = 2; if (i==1) { printf("hello world!\n"); i++;if (i>1) printf("hello world!\n")}}
Select the true statements.
Let a.out be the executable file obtained by running
gcc -Wall -Werror -Wpedantic helloWorld.cwhere helloWorld.c is the code given below
#include <stdio.h>#define N 10int main() { for (int i = 2; i < N; i = i * 2) printf("%d) hello world!\n", i);}
Navigate to the directory you created for this week's lab exercise, CS2850Labs\week1. Recompile your program helloWorld.c as described in the lab sheet and check that your directory contains a new file called a.out. Open a.out with VIM by entering
vim a.outIn Escape mode, type
:%!xxd -bWhat do you see?
Which of the following lists does not correspond to a valid execution of the deadlock detection algorithm on the following resource allocation graph, with starting node B?