Review day2 Flashcards

1
Q

abstract data type (ADT)

A

An abstract data structure specifies what operations can be performed on the data. For example, in a stack, the abstract operations might include push, pop, and peek, but how these operations are implemented (e.g., using an array or a linked list) is not specified.

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

Example of ADTs

A
  1. Stack
  2. Queue
    3.List
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Benefits of using ADTs

A

1.Modularity (promote modular code design by separating the interface)
2.Maintainability (easier to modify code)
3.Reusability (can be reused across different applications)

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

Stack

A

A collection that follows the Last In, First Out (LIFO) principle

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

Queue

A

A collection that follows the First In, First Out (FIFO) principle

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

List

A

A collection that represents an ordered sequence of elements

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

System resources

A
  1. CPU
  2. RAM (memory)
  3. Secondary Storage
  4. Bandwidth (The capacity of the system to transfer data)
  5. Screen Resolution
  6. Sound Processor
  7. GPU
  8. Cache (Small, fast memory close to the CPU to speed up frequent operations)
  9. Network Connectivity (Access to LAN/WAN/Internet)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Operating System Functions

A
  1. Application Interface
  2. Device/Peripheral Interface
  3. CPU Management
  4. Memory Management
  5. File Management
  6. Provide User Interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Application Interface

A

Allows different software applications to communicate and interact with each other

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

Device/Peripheral Interface

A

Act as the translator in communication between the operating system and the device

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

CPU Management

A

An operating system must decide which jobs the CPU is working on.

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

Memory Management (Primary)

A

Memory is allocated to each program or process that is running.

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

Memory Management (Virtual)

A

If primary memory runs short, hard drive space
may be used as virtual memory. The OS handles
pages going from RAM to HDD and back.

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

File Management

A

The OS manages the files on a computer’s secondary storage (HDD/SSD).

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

Provide User Interface

A

The OS must provide a way for the user to interact with the data and programs.

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

Resource Management Techniques

A

1.scheduling
2.policies
3.multitasking
4.virtual memory
5.paging
6.interrupt
7.polling

17
Q

Scheduling

A

Assigning work to resources, controlling and prioritizing what is sent to the processor.

18
Q

Policies

A

Restricted access/security

19
Q

multitasking

A

Computer handles multiple tasks at once by quickly switching between them.

20
Q

virtual memory

A

If primary memory runs short, hard drive space
may be used as virtual memory.

21
Q

paging

A

Paging is the act of copying pages from virtual memory storage into main memory when needed

22
Q

interrupt

A

An interrupt is a message sent to the CPU to get its attention, usually because something needs to be handled right away.

23
Q

polling

A

Polling is when the CPU keeps checking a device over and over to see if it needs attention.