What is OS? Flashcards

1
Q

What is OS?

A

OS is the middleware between User Applications and Hardware

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

.c files are converted to?

A

.exe or .out files

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

.c files to .exe files using what?

A

Compiler

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

Which compiler converts .c to .exe

A

gcc

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

What type of instruction are present in .exe files?

A

Assembly Language

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

What is the rule book for assembly language of a CPU

A

Instruction Set Architecture (ISA)

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

Name some ISAs

A

x86-64, ARM, RISC - V

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

What is the tool that converts assembly language to Binary Code

A

Assembler

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

What is the procedure for converting code from .c to binary

A

CAB -> Compiler, Assembler, Binary

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

Name the working components of CPU?

A

Registers & Cache

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

Name some registers present in the CPU

A

PC & Operands Register

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

How are binary insruction executed by the CPU?

A

It fetches the instruction using the PC.

Flushes the registers with required data.

Decodes and executes the instructions

Stores the result

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

What are the important role of CPU?

A

Program Memory Management

CPU management

External Devices

Concurrency

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

What does OS do in terms of CPU management?

A

Initialize PC & Other Registers

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

What does OS do in terms of memory management

A

Load the program files form disk to memory

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

What does OS do in terms of concurrency?

A

Run multiple threads concurrently with the same memory space.

17
Q
A
18
Q
A