Lecture 1: Introduction to Computers and Programming Flashcards

1
Q

A program is

A

A set of instructions that a computer follows to perform a task

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

Programs are commonly referred to as

A

Computer software

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

A programmer (or software developer) is

A

A person who designs, creates, and tests computer programs

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

The physical devices (or components) which make up a computer are commonly referred to as

A

Hardware

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

Some of the components that make up a typical computer

A

1) Central processing unit (CPU)
2) Main memory
3) Secondary storage devices
4) Input devices
5) Output devices

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

When a computer is performing tasks that a program tell it to do, we say that it is

A

Running or executing the program

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

The central processing unit (or CPU) is the part of

A

The computer that actually runs the programs

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

The computer sends coded instruction to the CPU, which perform the

A

Required operations (such as arithmetic and logic)

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

A computer’s main memory consists of a long list of

A

Memory locations

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

Each memory location holds a string of

A

0s and 1s

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

When a program is running, it is stored in

A

Main memory

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

Main memory is also called

A

Random access memory (or RAM)

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

Because the CPU can quickly access data from

A

Any random location in RAM

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

RAM is volatile (temporary) storage. When the computer is turned off, all data stored in

A

RAM is erased

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

Secondary storage holds data for long periods, even while the computer is

A

Off

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

Installed programs are always stored in

A

Secondary storage and are temporarily loaded into main memory when they are running

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

When we close Word and it is erased from

A

Main memory, it still exists in secondary memory

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

The most common type is the

A

Hard drive, although solid state drives are becoming more popular

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

Input: Data the computer collects from people and other devices. Common input devices

A

1) Keyboard
2) Mouse
3) Touchscreen
4) Scanner
5) Microphone

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

Output: Data the computer produces for people or other devices. Common output devices

A

1) Screen
2) Printer
3) Speaker

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

The program that tell a computer what to do are referred to as

A

Software

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

There are two general categories of software:

A

System software and application software

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

System software controls and manages the basic operations of a computer. The most common system software is the

A

Operating system, which controls the internal operations of a computer’s hardware and manages connected devices

24
Q

Application software is any program a computer’s user runs to

A

Perform some task

25
All data stored in a computer are sequences of 0s and 1s, known as
Binary numbers
26
A single binary digit is called a
Bit
27
Main memory (RAM) is divided into billion of
Storage locations. Each location is large enough to hold a byte
28
A byte is a binary number made up of
8 bits
29
Each memory location can store a
Small number or a letter of the alphabet
30
A bit can be thought of as a light switch that can either be
"On" or "Off"
31
If a bit is 1 we say it is
On
32
If a bit is 0 we say it is
Off
33
Each storage location in main memory has a
Memory address, beginning with address 0
34
The computer uses a memory address to access the data in its
Storage location
35
The addresses and data are in binary, which is how
A computer stores data
36
Although computer only use binary, simplicity
1 will sometimes shows memory addresses in decimal and the data they contain in decimal and letters
37
In binary, all numeric values are written as series of
0s and 1s
38
Any piece of data stored in a computer's memory must be stored as a
Binary number
39
To store a character in memory, we first convert it to a
Numeric code
40
The standard coding scheme used is
ASCII
41
A CPU can only understand instructions written in
Machine language
42
A program written in machine language is a set of instructions made up of only
Binary numbers
43
Each machine language instruction tells the CPU to perform a very simple task. Some examples
1) Read a piece of data from main memory 2) Add two numbers 3) Substract one number from another 4) Multiply two numbers 5) Move a piece of data from one memory location to another 6) Determine whether one value is equal to another
44
The CPU does nothing on its
Own
45
It follows the fetch-decode-execute cycle with the program (or programs) currently loaded in
Main memory
46
The next instruction to be executed is
1) Fetched from main memory 2) Decoded by the CPU 3) Then executed
47
When computer were new,
Assembly language was created as an alternative to machine language
48
Short words called
Mnemonics are used in assembly language to represent the instructions a CPU can follow
49
A program called an
Assembler takes assembly language code and translates it to machine language code
50
The computer's CPU can then run the
Machine language program
51
Although assembly language allows us to avoid writing machine language, it still requires
The programmer to understand a lot about the CPU, and it also require a large number of instructions for even simple program.
52
Since assembly language is similar to machine language, it is called a
Low-level language
53
From the 1950s onward, many
High-level languages have been created
54
A compiler is a program that translates a high-level language program to a
Machine language program
55
The computer's CPU can then run the
Machine language program
56
An algorithm is a sequence of
Precise instructions which leads to a solution
57
As we have seen, an algorithm does not have to be written in programming langugage, we can also describe it in a
Human language