Chapter 1: Introduction to Computers and Programming Flashcards

(45 cards)

1
Q

A set of instructions that a computer follows to perform a task. Commonly known as Software.

A

Program

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

A person who can design, create, and test computer programs. Also known as a software developer.

A

Programmer

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

The physical devices that make up a computer

A

Hardware

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

The part of the computer that actually runs program

A

Central Processing Unit (CPU)

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

CPUs located in small chips

A

Microprocessors

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

Where the computer stores a program while program is running, and data used by program

A

Main Memory
also called RAM

-CPU is able to quickly access data in RAM
-Volatile memory used for temporary storage while program is running
-Contents are erased when computer is off

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

Can hold data for long periods of time

A

Secondary Storage

Types of secondary memory:
Disk drive: magnetically encodes data onto a spinning circular disk
Solid state drive: faster than disk drive, no moving parts, stores data in solid state memory
Flash memory: portable, no physical disk

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

Data the computer collects from people and other devices

A

Input

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

Component that collects the data

A

Input devices

Ex: keyboard, mouse, touchscreen, scanner, camera

Disk drives can be considered input devices because they load programs into the main memory

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

Data produced by the computer for other people or devices

A

Output

Ex: video display, printer

Disk drives and USB drives can be considered output devices because data is sent to them to be saved

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

Everything the computer does is controlled by what?

A

Software

General categories:
Application software
System software

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

Programs that make computer useful for every day tasks

A

Application software

Ex: word processing, email, games, and Web browsers

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

Programs that control and manage basic operations of a computer

-Operating system: controls operations of hardware components
-Utility program: performs specific task to enhance computer operation or safeguard data
-Software development tools: used to create, modify, and test software programs

A

System software

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

How is all computer data stored?

A

In sequences of 0s and 1s

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

Just enough memory to store letter or small numbers

-divided into eight bits
-The on/off pattern of bits in a byte represents data stored in the byte

A

Byte

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

Electrical component that can hold positive or negative charge, like on/off switch

A

Bit

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

What two values does bit represent?

A

0 and 1

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

What numbering system do computers use?

A

Binary

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

What are the Byte size limits?

A

0 and 255

0= all bits off
255= all bits on

-To store larger number, use several bytes

20
Q

What is the smallest no-negative number you can store in 1 byte?

21
Q

What is the largest number you can store in 1 byte?

22
Q

How must data be stored in computers?

A

Data must be stored as binary number

23
Q

How are characters stored?

A

Characters are converted to numeric code, numeric code is stored in memory

24
Q

What is the most important coding scheme?

A

ASCII

ASCII is limited: defines codes for only 128 characters

25
Compatible with ASCII and can represent characters for other languages
Unicode coding
26
How do computers store negative and real numbers?
The computer uses binary numbering and encoding schemes
27
How are negative numbers encoded?
Using twos complement
28
How are real numbers encoded?
Using floating-point notation
29
Describes any device that stores data as binary numbers
Digital
30
How are digital images composed?
They are composed of pixels -To store images, each pixel is converted to a binary number representing the pixels color
31
How is digital music composed?
It is composed of sections called samples -To store music, each sample is converted to a binary number
32
What is the CPU program cycle?
Fetch, decode, execute 1. Fetch: read the next instruction from the memory into CPU 2. Decode: CPU decodes fetched instruction to determine which operation to perform 3. Execute: perform the operation
33
Uses short words (mnemonics) for instructions instead of binary numbers. Easier for programmers to work with.
Assembly language
34
Translates assembly language to machine language for execution by CPU
Assembler
35
Close in nature to machine language Ex: assembly language
Low-level language
36
Allows simple creation of powerful and complex programs -no need to know how CPU works or write large number of instructions -more intuitive to understand
High-level language
37
Predefined words used to write program in high-level language -each keyword has specific meaning
Keywords
38
Perform operations on data Ex: math operators to perform arithmetic
Operators
39
Set of rules to be followed when writing program
Syntax
40
Individual instruction used in high-level language
Statement
41
Translates high-level language program into separate machine language program
Compiler
42
Translates and executes instructions in high-level language program
Interpreter
43
Statements (code) written by programmer
Source code
44
Prevents code from being translated
syntax error
45
-Single program that provides tools to write, execute and test a program -Runs in interactive mode -Has built-in test editor with features designed to help write Python programs
Integrated Development and Learning Environment (IDLE)