Solution to Self Check
-
Briefly describe the purpose of the following computer components:
a) CPU _ Stands for Central Processing Unit _ The CPU's job is to execute the instructions we provide.
b) Memory * The place where instructions and data are stored
c) Operating System _ Manages processes and users _ Allocates resources * Examples include Linux, Windows, MacOS
-
What is the output of the following program?
#include <stdio.h>
int main(void)
{
printf("IPC 144\n Self test\n");
printf("How did you do?\n");
return 0;
}
Output:
Note the spacing and line breaks in the output. Did yours match exactly?
IPC 144
Self test
How did you do?