Module 1 Reading & Lectures Flashcards

1
Q

Computer Program

A

the sequence of steps/instructions/decisions that are needed to fulfill a task. Tells the sequence of steps to the computer in minute detail.

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

Hardware

A

The physical computer and peripheral devices (devices able to be attached to and used with a computer, although not an integral part of it).

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

Computer

A

A machine that stores data (numbers, words, pictures), interacts with peripheral devices (such as the monitor, keyboard, the sound system, the printer), and executes programs.

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

Programming

A

the act of designing and implementing computer programs

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

Central Processing Unit (CPU)

A

At the heart of the computer. Performs program control and data processing (AKA it carries out arithmetic operations such as addition, subtraction, multiplication, and division). It fetches data from external memory or devices and places processed data. Composed of several hundred million structural elements called transistors.

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

Primary Storage

A

AKA memory (RAM/ROM). Made from memory chips: electronic circuits that can store data, provided they are supplied with electric power.

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

Secondary Storage

A

Usually a hard disk, flash drives, CD/DVD drives. Provides slower and less expensive storage that persists without electricity.

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

Hard Disk

A

A form of secondary storage. Consists of rotating platters, which are coated with a magnetic material, and read/write heads, which can detect and change the magnetic flux on the platters.

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

How does a computer interact/work with memory (primary storage) and secondary storage?

A

The computer stores both data and programs. They are located in secondary storage and loaded into memory when the program starts. The program then updates the data in memory and writes the modified data back to secondary storage.

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

How does the computer interact with a human user?

A

With peripheral devices (such as a monitor, keyboard, etc.)

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

What is an output?

A

The information transmitted to the user with peripheral devices.

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

What is an input?

A

The information the user enters into the computer by using peripheral devices.

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

Network

A

A group of interconnected nodes or computing devices that exchange data and resources with each other. Through the network cabling, the computer can read data and programs from central storage locations or send data to other computers.

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

The two components of a CPU

A

control unit and arithmetric logic unit

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

What does the control unit do?

A
  • Directs operation of the processor.
  • Controls communication and co-ordination between input/output devices
  • Reads and interprets instructions and determines the sequence for the processing data
  • Provides timing and control signals
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the arithmetic logic unit do?

A
  • Contains the circuitry to perform calculations and do comparisons
  • It is the workhorse portion of the computer and its job is to do precisely what the control unit tells it to do.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is a simple way to envision primary memory?

A

As a table of cells, all the same size (one byte), each containing a unique address beginning with 0.

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

How big is a gigabyte?

A

about 1 billion bytes

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

What does executing a program look like?

A
  • Program instructions and data (such as text, numbers, audio, or video) are stored in digital format.
  • When a program is started, it is brought into memory, where the CPU can read it
  • The CPU runs the program one instruction at a time (program may react to user input)
  • The instructions and user input guide program execution (CPU reads data [including user input], modifies it, and writes it, back to memory/screen/secondary storage.
20
Q

High-level programming languages

A

Allows a programmer to specify the desired program actions at a high level, which are then translated into the more detailed instructions required by CPU

21
Q

What is Python?

A

Python is a portable and easy to learn and use langue. Designed to work with complex data.
* It has much cleaner syntax than other languages.
*offers availabilities of packages

22
Q

What are packages

A

Bundles of code that solve a particular problem domain

23
Q

Integrated development environment

A

where you can write and test your programs

24
Q

Text editor

A

a program for entering and modifying text such as a python program

25
Q

Case sensitivity

A

Python is case sensitive, must be able to distinguish between lowercase and uppercase letters

26
Q

Python interpreter

A

reads your program and executes all of its steps

27
Q

Source code

A

Python instructions that you wrote. Instructions in a programming language that need to be translated before execution on a computer

28
Q

Byte Codes

A

very simple instructions understood by the virtual machine

29
Q

comment

A

Begin with # and provides information to the programmer

30
Q

statement

A

Any instruction written in the source code and executed by the Python interpreter

31
Q

function

A

a collection of programming instructions that carry out a particular task.

32
Q

How is a function called/used?

A

by specifying the function name and its arguments

33
Q

string

A

a sequence of characters enclosed in a pair of single or double quotes

34
Q

compile-time error

A

a violation of the programming language rules that is detected when the code is translated into the executable form (such as syntax error)

35
Q

compilation

A

the process of transforming python instructions into an executable form

36
Q

syntax error

A

a form of compile-time error, an instruction that does not follow the programming language rules and is rejected by the compiler

37
Q

Exception

A

(run-time) errors detected during execution. Prevents the program from continuing normally. When such a condition occurs, an object of the exception class is raised.

38
Q

When does an exception occur?

A

When an instruction is syntactically correct, but impossible to perform

39
Q

Run time error

A

any error that occurs when the program compiles and runs, but produces unexpected results.

40
Q

Logic error

A

A form of run-time error that is a syntactically correct program that causes it to act differently from its specification.

41
Q

Pseudo code

A

an informal description of a sequence of steps for solving a problem.
* no strict rules, b/c read by humans not computers.

42
Q

Algorithm

A

a sequence steps for solving a problem that is :
1. Unambiguous: precise instructions. No room for guessing or opinion
2. Executable: it can be carried out
3. Terminating: comes to an end

43
Q

Why is the existence of an algorithm an essential prerequisite for programming a computer.

A

You need to first discover and describe an algorithm for the task that you want to solve before you start programming.

44
Q

where is source code stored

A

Usually in a file

45
Q

compiler

A

a program that translates code in a high-level language (such as python) to machine instructions (such as byte code for the python virtual machine)

46
Q

python shell

A

a user interface that can be used to interact with the python interpreter

47
Q
A