Week 1 - Introduction Flashcards

1
Q

What do operating systems do?

A

> provide a better model of the computer and

> manage all the resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What kind of language is c?

A

a general purpose, low level, system programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the standard version of C that we use?

A

ANSI C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what steps does the shell go through to compile a c file?

A

> user enters compilation command
shell reads command from terminal
shell creates a child process to compile
when the child finished it syscalls to terminate itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

describe the library

A

Input and output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

describe the library

A

numeric conversion, pseudo-random generation, memory allocation, process control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

describe the library

A

access to the POSIX OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

describe the library

A

sting-handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

describe the library

A

error reporting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

describe the library

A

common mathematical functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

describe the library

A

managing multiple threads, mutexes, condition variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what are the 3 types of control structures?

A

sequential, selection, repetition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why has C been called a “system programming language”?

A

C is useful for writing operating systems and compilers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the name of the compiled file if you run :

$ gcc helloWorld.c

A

a.out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly