Chapter 1 Flashcards

1
Q

What is a program?

A

Is a set of instruction a computer follows to perform a task, commonly referred as software.

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

What is a programmer?

A

Person with the skills to design, create and test programs

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

Hardware?

A

Refers to the physical devices, or components, the a computer is made of. A computer is a system of devices that all work together

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

What are the components of a typical computer system?

A

Central processing unit (CPU) Main memory (RAM) Secondary storage devices Input devices Output devices

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

CPU

A

When a computer is performing the task that a program tells it to do, we say the computer is running or executing the program. The central processing unit, is the part of a computer that actually runs the programs. CPU is the most important part because without it it can not run programs. Nowadays also know as microprocessor

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

What is the main memory?

A

Think of it as the computers works area. This were the computer stores the program while is running, as well as the data that the program is working with. Commonly known as random access memory (RAM). It’s called this because the CPU is able to quickly access data store at any random location in RAM.

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

Secondary storage device?

A

Is a type of memory that can hold data for long periods of time, even when there is no power to the computer. Programs are normally store in secondary memory and loaded loaded into main memory as needed. Most common is a disk drive

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

Disk drives?

A

Stores data by magnetically encoding into a circular disk

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

USB drives

A

Small devices that plugs into the computer USB (Universal Serial Bus) port and appears to the system as a disk drive.

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

Optical drives

A

Such as CD and DVD are also use for data storage. These do not encode information magnetically, but is encoded as a series of pits on the disc surface. A laser is use to detect the pits and thus read the encoded data.

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

Input devices

A

Input Is any data the computer collects from people and from other devices. The component that collects the data and sends it to the computer is called input device

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

Output devices

A

Output Is any data that the computer produces for people or for other devices. The data is sent to an output device which formats and presents it.

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

How computers store values?

A

Concept: All data that is store in a computer is converted to sequences of 0s and 1s. Computers memory is divided into tiny storage locations knows as bytes. One byte is only enough memory to store a letter or a small number Each byte is divide into eight smaller locations know as bits. Bits stand for binary digits. Bits are tiny electrical components that can hold either a positive or negative charge.

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

How computers store number?

A

A bit can be use in a very limited way to represent numbers. Depending on whether the bit is turn on and off, it can be present one of two different values. In computer systems, a bit that is turn off represents the number zero in a bit that is turn on represents the number one. This corresponds perfectly to the binary number system. The position of each digits in the binary number has a value assign to it starting with the right most digit

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

Number values of Binary code when storing numbers

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

What happens when you reach the limits of a byte?

A

The values on one byte can only hold the numbers up to 255. When a number is bigger than 255, the computer puts together two bytes and that gives us 2¹⁵ which translate into values up to 65,535

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

Storing characters

A

Any data must be store in a memory as a binary number. When a character is stored in memory, it is first converted to a numeric code. The numeric code is then store stored as a binary number

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

ASCII

A

American Standard Code for Information Interchange. Is one of the most important coding schemes. It is a set of 128 numeric codes that represents the English letters, various punctuation marks, and other characters.

19
Q

Unicode

A

Is an extensive coding scheme that was created in 1990’s due to the limitations of ASCII which only had 128 English characters. Unicode is an extensive encoding scheme that it is compatible with ASCII, and can also represents the characters of many of the world’s languages.

20
Q

Advance number system

A

To stored negative and real number in the memory such as 3.147. The computer uses other techniques, for negative number the computer uses the two’s compliment, and real number are encoded in floating-point notation

21
Q

Other types of data

A

Computers are referred to as digital device. The term digital is any device that work in binary data. Pictures are compose of tiny dots called pixels. (the term pixel stands for picture element) images are converted to a numeric code that represents the pixel’s color. The numeric code is stored in memory as a binary number. Music is broken into small pieces called samples, each sample is converted into binary number, which can be store in the memory.

22
Q

How programs work?

A

CPU performs simple operations on pieces of data. The CPU does nothing on its own, however. It has to be told what to do, that is the purpose of the program. A machine language instructions exists for each operation that a CPU is capable of performing. The entire set of instructions that a CPU can execute is known as the CPU’s “instructions set”

23
Q

Where do programs stores?

A

Programs are store in the secondary memory and each time that the program need to be executed is copied to the main memory, so that the CPU can execute the program from the main memory.

24
Q

Fetch-decode-execute cycle

A

When CPU executes the instructions in a program runs this cycle for each instruction.

25
Q

Fetch

A

This first step is to fetch, or read, the next instruction from memory into CPU

26
Q

Decode

A

A machine language instruction is a binary number that represents a command that tells the CPU to perform an operation. In this step the CPU decode the instruction that was fetched from memory, to determine what operations it should perform.

27
Q

Execute

A

To execute or perform the operation.

28
Q

Assembly language

A

Uses short words that are known as mnemonics. For example: in assembly language, the mnemonic add typically means add numbers, mul typically means multiply number, mov typically means to move a value to a location in the memory. Is a low level language that requires the programmer to know how the CPU works to be able to write instructions on a program.

29
Q

Assembler

A

Is a program use to translate assembly language to machine language

30
Q

High level language

A

Allows you to create powerful and complex programs without knowing how the CPU works, and without writing large numbers of low level instructions.

31
Q

Key words or reserved words

A

Each language has its own set of words that the programmer must learn in order to use the language.

32
Q

Operators

A

Programming languages also have operators that perform various operations on data.

33
Q

Syntax

A

Which is a set of rules that must be strictly followed when writing a program. The syntax rules dictate how key words, operator, and various punctuations characters must be used in a program.

34
Q

Syntax errors

A

Is a mistake such as misspelled key word, a missing punctuation character, or the incorrect use of an operator

35
Q

Statements

A

The individual instructions that you use to write a program in a high level programming language. It can consist of key words, operator, punctuation, and other allowable programming elements, arrange in the proper sequence to perform an operation.

36
Q

Compliers

A

Is a program that translate a high level language program into a separate machine language program.

37
Q

Interpreter

A

Is a program that both translate and executes the instruction in a high level language program. As the interpreter reads each individual instruction in the program, it converts it to a machine language instruction and then immediately executes it.

38
Q

Note on interpreter and complier

A

A program that is complied generally executes faster than programs that are interpreted because a complied program is already translated entirely to machine language when it is executed. A program that is interpreted must be translated at the time it is executed.

39
Q

Source code or code

A

Statements that the programmer writes in a high level language.

40
Q

Integrated Development Environments

A

Most programmers use this specialized software packages, they include: •text editors that has specialized features to write statements in high level programming language • a complier or interpreter • useful tools for testing programs and locating errors

41
Q

Programs category

A

Programs generally fall into one of two categories: • System software that is a set of programs that control or enhance the operation of a computer. ( operating systems, utility programs, and software development programs) • Application software makes a computer useful for everyday tasks. (Word, Excel,

42
Q

Operating System

A

An OS is the most fundamental set of programs on a computer. The OS controls the internal operations of the computer’s hardware, manage all of the devices connected to the computer, allows data to be saved to and retrieved from storage devices, and allows other programs to run on the computer

43
Q

Utility program

A

Performs specialized task that enhances the computer’s operation or safeguards data. Ex virus scanners, file compression programs, backup programs

44
Q

Software development tools

A

Are programs that programmers use to create, modify, and test software. Ex assemblers, compliers, and interpreters