week 1 lecture Flashcards

1
Q

what are the 4 fundamental tasks of a computer

A

Input
Process
Output
Store

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

what does CPU stand for

A

Central Processing Unit

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

what does the CPU do?

A

Performs the fetch-execute cycle

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

what is the fetch-execute cycle

A

o Fetch next program instruction from
memory
o Decode the instruction into actions
o Command the relevant part(s) of the
computer to operate to execute the
instruction
o Store the result somewhere (if necessary)

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

what does the CPU consist of?

A

Control Unit
Arithmetic Logic Unit

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

what does the CPU Control Unit do?

A

Handles the fetch-execute cycle
* Controls the other components of the computer through
signals
* Contains registers for important pieces of information like
the memory location of the next instruction

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

what does the CPU Arithmetic Logic Unit (ALU) do?

A

Digital circuits to perform arithmetic and logic
operations
* Data registers to store data being used by the current set
of instructions

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

What are the different CPU Registers?

A

o Data registers
o Program Counter
o Instruction Register
o Status Flags
o Stack Pointer

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

What are the types of memory?

A

from fast to slow:
o Registers (SRAM)
o Cache (on-chip and off-chip) (SRAM)
o Main memory (DRAM)
o Secondary storage (har

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

what does an operating system do?

A

Mediate access to CPU, Memory, I/O Devices

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

what is the core component of an operating system?

A

Kernel

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

Where is the kernel located?

A

Memory

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

what tasks does the OS handle

A

– Process management
– Memory management
– Input/output
– User interface

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

what are the main functions of Kernel

A
  • Processes: Determines which processes are
    allowed to use the CPU
  • Memory: Keep track of memory – what
    memory is allocated to each process, what
    memory is free
  • Device Drivers: Interface between hardware
    (e.g disk and I/O) and processes
  • System Calls: Processes use system calls for communication with Kernel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how many web servers run on Linux?

A

nearly 2/3rds

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

what makes Linux different compared to other OS’s

A

open source

17
Q

why use Linux?

A

-Greater Control
-Learn more about operating systems
- industry required skill

18
Q

what is The Shell?

A

a customizable environment consisting of previously defined terms and instructions

19
Q

what are the advantages of the GUI

A

– Less to learn and easier to
control
– Intuitive
– Visual
– Fun
– Allows for easy
multitasking

20
Q

what are the advantages of the CLI?

A

– Control
– Speed
– Less resource intensive
– Limits wrist strain
– You learn more about the
OS through the CLI

21
Q

what is a virtual machine

A
  • Software Implementation of a Machine
    – Executes Programs like a physical machine
22
Q

what are Linux Distros?

A

Linux Distro = Kernel + Everything else
Everything else?
* GUI and/or CLI
* GNU Utilities (cp, mv, ls)
* Installation + Management tools
* GNU C/C++ Compilers
* Other Applications (File Browser, Firefox, OpenOffice)

23
Q

how many root directories does Linux have?

A

one

24
Q

where does the Absolute Path start?

A

Root

25
Q

Where does the Relative Path start

A

the current working directory

26
Q

what is BASH?

A
  • BASH is Unix/Linux Shell software
  • Default Shell for almost all Linux Distros
  • Uses BASH command syntax
27
Q

what is the command syntax

A

command -options argument

28
Q

what is a wildcard?

A

– Represents any letter (or sequence of letters) used
to specify a filename or path
– Linux administrators use wildcards to:
* Navigate to directories faster
* Move or delete a group of files
* Locate files based on a portion of their filenames