Unit 2 intro into comp systems silde+comp programming Flashcards

(32 cards)

1
Q

What is a Computer

A

-Programmable machine to handle different tasks at a great speed
-Can be spreadsheets, databases, word processing, games

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

What is a computer program?

A

-Known as a software
-A list of instructions directing the computer to perform a task

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

What is a hardware?

A

-Refers to the computer equipment. such as keyboard, mouse, terminal, hard disk, printer

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

What is a software?

A

-refers to the computer programs
-The programs that run on a computer

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

what is a computer system?

A

-the combination of a hardware and software

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

What is the CPU

A

-Is known as the central processing unit
-at the heart of the computer
-The CPU’s job is to fetch instructions, follow instructions, and produce data
-a sequence of instructions stored in the computer’s memory

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

What are the 2 parts of CPU

A

-Control Unit: which coordinates all of the computer’s operations
-Arithmetic and logic unit (ALU): which performs mathematical operations

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

What does the CPU do in order to process program information

A

-performs the fetch / decode / execute cycle in order to process program information

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

What is fetch

A

-The CPU’s control unit fetches from the main memory, the next instruction in the sequence of program instructions

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

What is decode

A

The instruction is encoded in the form of a number. The control unit decodes the instruction and generates an electric signal

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

What is execute?

A

The signal is routed to the appropriate component of the computer such as the ALU or disk drive. The signal causes the component to perform an operation

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

What is Main memory

A

-Also known as random-access memory (RAM)
-RAM contains currently running programs and data used by those programs
-RAM is divided into units called bytes

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

What is a byte

A

-consists of 8 bits that may by either on or off
1=on 0=off
-the bits form a pattern that represents a character or number
-Each byte in memory is assigned a unique number known as an address

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

Why is RAM volatile

A

When the computer is turned off, the contents of RAM are erased

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

What is Secondary Storage?

A

-Secondary storage devices are capable of storing information for longer periods of time (non-volatile)
-eg: disk drive, USB drive

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

What are input devices

A

-Input is any data the computer takes from the outside world
-That data comes from devices known as input devices such as keyboard, mouse, touchscreen, USB

17
Q

What are output devices

A

-Output is any data the computer sends to the outside world
-that data that is sent out is displayed on devices known as output devices such as monitors and printers

18
Q

What are the two classifications of software

A

-Operating systems
-Application software

19
Q

What are operating systems

A

-An operating system is a set of programs that manages the computer’s hardware devices and controls their processes
-operating systems are multitasking so they can run multiple programs at once

20
Q

What is Application Software

A

-programs that make the computer useful to the user
-it provides a more specialized type of environment for the user to work in
-common software applications can be spreadsheets and word processors

21
Q

what is computer programming

A

tell the computer how to solve a problem
-a machine doesn’t understand English so programming is solving a problem by giving the computer instructions to implement a solution

22
Q

What is programming language

A

a way to communicate with the computer
-programming languages have strict rules known as syntax that must be carefully followed

23
Q

What is Machine language

A

-machines operate by electricity
1=on 0=0ff

24
Q

How do bits and memory work in computers

A

-a computer is made of millions of tiny switches called transistors
-Each switch is a bit that can stored 0 or 1.
-When you group bits together they can represent numbers and characters
-the more switches the more memory and the more power
-8 bits=1 byte so it can store a single character like A

25
What is binary code
-binary code is the language computers understand -only uses 1 or 0 -instructions (like opening a app or saving a file) are translated into 1 or 0 so the processor can understand them
26
What is high level language
-python, java, C++ -easy for humans to read
27
What is Assembly Language
-Closer to machine code, uses short words and symbols
28
What is machine language
--pure binary -eg: 10110000. only 1s and 0s
29
what is the order of high level language to low level language
highest: -human language (eg. what is the result of adding 1 and 2) -object oriented programming (eg. java) -structured programming languages (eg. C, pascal) -assembly language (MOV AL, 61h) -machine language (01101010101)
30
what is a assembler
The assembler is a special program whose job is to translate assembly language into machine code (binary) - after it is in machine language the CPU excutes it -assembler is the bridge -assembler language is short and symbolic form
31
Structured programming languages
-added extra features to make programming easier -example is 'C'
32
what is object oriented programming
introduced to enhance the organization and maintainability of software programs -instead of writing everything as one big b lock of instructions, OOP lets us break programs into objects