Intro to computer science Flashcards

1
Q

Why program

A

Computers are the most versatile tool and are designed to do what every you tell them.

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

Hardware

A

physical components of a computer

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

CPU or central processing unit

A

fetch instructions,
follow the
instructions, and
product some
resulting data.

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

What two parts of the cpu

A

control unit and arithmetic and logic
unit

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

How the cpu works

A

Fetch/decode/execute

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

Fetch

A

The CPU’s control unit fetches, from 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
7
Q

Decode

A

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

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

execute

A

The signal is routed to the appropriate
component of the computer (such as the ALU, a disk
drive, or some other device) and the signal causes
the component to perform an operation.

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

Main memory

A

¨ RAM holds the
sequences of
instructions in the
programs that are
running and the
data those programs
are using.

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

What is a memory address

A

Memory is divided into sections that hold an
equal amount of data.
¨ The computer stores data by setting the
switches in a memory location to a pattern that
represents a character or a number.

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

what is a switch know as

A

a bit

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

What is 8 switches known as

A

a byte

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

List the five major hardware components of a computer system.

A

The CPU ( central processing unit), main memory, secondary storage device, input devices and output devices.

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

why computers have both main memory and secondary storage.

A

The main memory gets erased when the systems shuts down so you the secondary storage to save data and important files.

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

Secondary storage

A

Capable of storing
very large amounts
of data and can
access data quickly.

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

Input devices

A

Input is any data the computer collects from the
outside world exp. keyboard

17
Q

Output devices

A

Output is any data the computer sends to the
outside world. exp. printers

18
Q

what are the software categories

A

operating systems and application software.

19
Q

operating systems

A

operating system is a set of programs that
manages the computer s hardware devices and
controls their processes

20
Q

application software

A

refers to programs that
make the computer useful to the user.

21
Q

What is a program

A

a set of instructions that enables the computer to complete a task an algorithm

22
Q

What is an algorithm

A

a set of well defined steps for preforming a task

23
Q

what is a key word

A

words with special meaning in the program language and may be used for their intended purpose only

24
Q

what is an operator

A

a symbol or word that perform operations of one or more operands

25
what is punctuation
to mark the beginning and end of a statement
26
what is user defined names
names that are defined by the programmer used to identify storage locations and parts of the program that are created by the programmer
27
what is a syntax error
A syntax error is a mistake that the programmer makes that violates the rules of the programming language.
28
Why are variables called "variable"
Because the data may change.
29
What happens to a variable's current contents when a new value is stored there?
The new value will take the old values place.
30
What is a compiler?
Translates source code into a executable form.
31
What is byte code?
An intermediary between source code and JVM. The JVM changes the byte code into whatever it needs to be . The instruction within the instruction.
32
What is the JVM?
java virtual machine is a program that reads java byte code instructions and executes them as read.
33
Describe the difference between a program line and a statement.
Program line is a single line of the program and a statement is a complete instruction that causes the computer to perform an action.
34
What four items should you identify when defining what a program is to do?
Purpose, input, process, output,
35
What is pseudocode?
A cross between programming language and human language and helpful when designing a algorithm.
36
Describe what a compiler does with a program's source code.
A compiler finds syntax errors and flags them and it also translates language.
37
What is a runtime error?
an error that occurs while the program is running
38
What is the purpose of testing a program with sample data or input?
So you can test for run time errors.