Lecture 1 - Intro Flashcards

1
Q

What is a program?

A

A composition/collection of instructions/directions prepared by a programmer that is meant to control some computer as that computer performs the task intended by the programmer (sometimes also referred to as software but some programs are stored within unchangeable hardware). They can be small (a few lines of code) or very large (tens of millions of lines of code).

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

What is a programmer?

A

Someone who can design, create, and test computer programs (also known as a software developer or a coder).

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

What is a computer?

A

A device that:
– Accepts input (e.g., keyboard, mouse, touch screen, network interface, sensor)
– Processes data
– Stores data (usually in some form of memory)
– Retrieves data
– Produces output (e.g., printed, display, actuator, network interface)

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

What are some types of computers?

A
  • Personal or microcomputers (Desktops, Notebooks, Laptops)
  • Handheld (smartphones, PDAs)
  • Mainframes
  • Supercomputers
  • Cloud computing environments (Amazon ECS, Microsoft Azure, Google Cloud Platform)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Hardware?

A

The physical devices that make up a computer. A computer is itself a system composed of several physical components that all work together.

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

What are the typical major components of a computer?

A

Central processing unit (CPU)
Main memory
Secondary storage devices
Input and output devices

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

How are the components of a computer connected?

A

electrically, using multiple wires known as a bus

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

What is a Central Processing Unit (CPU)?

A

The beating heart of a computer. This is the part that actually executes the programs instructions. Therefore it is the most important component – without it, the computer is not a general-purpose computer (i.e., cannot run general programs).
CPUs used to be very, very large in physical size. CPU speed sometimes measured in Millions of Instructions per Seconds (MIPS).

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

What is a Microprocessor?

A

This is a CPU designed and manufactured to fit onto a single integrated circuit (IC).
If the CPU is on an IC that also has a bit of main memory, the result is often called a microcontroller.

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

What is main memory?

A

Where the computer stores a program while the program is running and where data used by the program is also stored just before and just after it is processed. Normally known as random access memory (RAM).
Computer is designed to allow CPU quick access to RAM (i.e., reading and writing RAM).

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

Why is RAM only suitable for temporary storage?

A

Part of RAM’s design makes it volatile, hence it is only suitable for temporary storage which means the contents of RAM are erased when the computer is powered off!

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

What are secondary storage devices?

A

Meant to hold programs and data for long periods of time (days, months, years). This is the usual place we keep programs!

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

What are some types of secondary storage devices?

A

Hard drive (disk drive): magnetically encodes data onto a spinning circular disk.
Solid state drive (SSD): no moving parts, stores data in solid state memory.
Flash memory: portable, no physical disk (e.g., USB memory stick).
Optical devices: data encoded via lasers onto special reflective surfaces.
Network Attached Storage (NAS): actual storage device kept somewhere else, but we can send/receive data and programs over a network connection.

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

What is input?

A

data that is collected by the computer from people or from other devices or both

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

What are input devices?

A

Hardware component that collects/gathers the data (e.g., keyboard, mouse, touchscreen, scanner, camera, game controller, network card, wi-fi port).
Disk drives can be considered input devices (i.e., we use them to load programs and data into main memory).

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

What are the two general categories of software?

A

Application software

System software

17
Q

What is application software?

A

Programs we obtain/purchase or write ourselves that are meant to help with some kind of task (e.g., word processing, presentations, e-mail, web browsers, income-tax preparation, retail point-of-sale systems, learner’s license testing kiosks, video games, data science.

18
Q

What is system software?

A

Programs that control and manage essential operations of a computer.

19
Q

What are the three main categories of system software?

A

Operating System (OS)
Utility Programs
Software Development

20
Q

What is an Operating System (OS)? what does it do?

A

Turns an inert pile of silicon, rare-earth metals and plastic into a functioning computer.
Controls operation of hardware components.

21
Q

What do Utility Programs do?

A

Perform specific tasks to enhance computer operation or safeguard data (e.g., ZIP/UNZIP (for data compression), ssh (for secure communication with remote systems)).

22
Q

What is Software Development used for?

A

Use to create, modify, and test software programs.

Compiler, interpreters, integrated development environments (IDE).

23
Q

What is a CPU designed to do at its most basic?

A

to perform simple operations on simple pieces of data e.g., reading data, adding and subtracting numbers, multiplying and dividing numbers, shifting, masking bits in bytes

24
Q

How does the CPU understand instruction?

A

in the form of machine language which is written in the instruction set of the CPU
(Each brand of CPU has its own instruction set).
To perform any meaningful calculations the CPU must perform many operations.

25
Q

How does a program work?

A

Program to be executed must be copied from secondary memory to main memory (RAM).
This must occur each time the CPU executes the program.
CPU executes the program via a cycle:
– Fetch - read the next machine instruction from memory.
– Decode - CPU determines from the instruction how the CPU’s electronic circuitry must be configured, where to obtain input data, where to store output data/results, etc.
– Execute - CPU now permits the electrical circuitry to work for the instruction.