Intro to Computers and Programming Flashcards

1
Q

What is a Computer?

A

A programmable electronic device that can store, retrieve and process data.

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

What are the advantages of a computer?

A

Reliable, Fast, Does not tire, Follows instructions precisely

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

What are the disadvantages of a computer?

A

Cannot analyze problems, Follows instructions more precisely than humans do

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

What can a computer do?

A

Simple aritmetic, Comparisons/decision making, Communication

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

What are the Components of a Computer?

A

Input devices, CPU, Main Memory, Secondary Memory, Output devices

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

What is a CPU

A

Central Processing Unit- fetches and follows a set of simple instructions(also called the processor)

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

What is the Main Memory?

A

storage for the executing program and its data in RAM (random access memory). Volatile.

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

What is secondary memory?

A

storage for permanent records (files). Non-volatile.

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

What are the parts of a CPU?

A

ALU and Control Unit

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

What is an ALU?

A

Arithmetic and Logic Unit- performs mathematical operations

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

What is the Control Unit?

A

coordinates all of the computer’s operations, performs the fetch/decode/execute cycle.

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

What are the two types of Software?

A

Operating Systems and Programs.

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

What does an operating system do?

A

allocates the computer’s resources and allows communication between user and computer.

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

What is a program?

A

a set of instructions to perform specific tasks.

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

What is an algorithm?

A

a set of well defined steps for performing a task or solving a problem.

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

What is the relationship between an algorithm and a program?

A

A program is an algorithm that has been translated into a programming language so that the computer and understand and perform the steps.

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

What is a programming language?

A

a special language used to write programs.

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

What are the three types of programming languages?

A

High-level, Low-level, and Machine

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

What is a High-Level Language.

A

designed to be easy for humans to read and to write programs in, but too complicated for the computer to understand.

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

What is a Low-Level Language?

A

consists of simple instructions which can be understood by the computer after a minor translation.

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

What is Machine Language?

A

written in the form of zeros and ones, can be understood directly by the computer.

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

What is the process in which source code becomes executable code?

A

Source Code goes through the preprocessor, becomes modified source, then the compiler, becomes object code, then the linker to become executable code.

23
Q

What are the main Language Elements?

A

Key Words, Programmer Defined Symbols, Operators, Punctuation, Syntax

24
Q

What are Key Words?

A

reserved words that have a special meaning.

25
What are Programmer Defined Symbols?
words or names that have been defined by the programmer. May be variables, constants, or functions/routines.
26
What are operators?
symbols to tell the computer to perform specific operations.
27
What is punctuation in programming?
symbols to begin or end a statement or separate items of a list.
28
What is syntax?
grammar rules for combining elements.
29
What does the double slash (//) signify?
The beginning of a one line comment
30
What does the slash asterisk (/* */) signify?
a comment is enclosed
31
What does the octothorp (#) signify?
the beginning of a preprocessor directive.
32
What do brackets (<>) signify?
an enclosed filename or datatype.
33
What do parentheses signify?
contains the parameters for functions or changes the order of operations
34
What do braces ({}) signify?
a group of statements being enclosed.
35
What does a semicolon (;) signify?
The end of a C++ statement.
36
What are the three phases of writing programs?
The Problem Solving Phase, Implementation Phase, and The Maintenance Phase.
37
What steps occur in the Problem Solving Phase?
Analysis & Specification, General Solution, Verification
38
What steps occur in The Implementation Phase?
Concrete solution, testing
39
What steps occur in the Maintenance Phase?
Use, Maintain
40
What are the three main types of Programming Errors?
Syntax errors, Logic errors, Run-time errors.
41
What are syntax errors?
code that does not follow the grammar rules of the language. These are found by the compiler.
42
What are logic errors?
Results are incorrect because of an error in implementation. These are found by using test data.
43
What are run-time errors?
when the program causes the computer to perform an illegal operation, such as dividing by 0 or finding the square root of a negative number.
44
What is Input?
data the user of the program will need to enter into the program.
45
What is Output?
information the user expects to receive from the program.
46
What is Processing?
What the program does to the input to produce the output.
47
What is Procedural Programming?
focuses on the development of procedures (functions) to solve problems.
48
What is Object Oriented Programming?
developing objects that are a combination of procedures.
49
What are the four main parts of a program?
Comments, Preprocessor Directives, Functions, and Statements.
50
What are comments?
describe what the program is supposed to do and what various portions do. Often used as documentation.
51
What are Preprocessor Directives?
directions to perform before program starts.
52
What are funcitons?
groups of statements to perform a specific task.
53
What are Statements?
actions executed by the computer.