Midterm Study Guide Flashcards

1
Q

Algorithm Definition

A

A series of well-defined steps to generate the correct solution of a problem, should end in finite time.

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

Input

A

Anything from the user

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

Output

A

What is displayed by manipulating the input

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

Flowcharts

A

Visual representation used to document program logic. It is generally used for smaller problems.
Flow of data between steps is indicated by arrows or flowlines.

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

Pseudocode

A

Used to document program logic, typically used for larger and complex problems.
Statements are writen in simple English WITHOUT regard to the programming language.
Programlike statements written for humans.

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

Variable

A

Has an assigned name and value.

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

Major hardware components of a computer?

A
  1. The Central Processing Unit (CPU)
  2. Main Memory
  3. Secondary Storage Devices
  4. Input Devices
  5. Output Devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the functions of the CPU?

A
  1. Determines where to get the next instruction
  2. Regulates the other major components of the computer with control signals.
  3. Performs the fetch, decode, excute cycle in order to process program information.
    It is also referred to the brain of the computer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Clock (CPU)

A

A processor’s instructions execute at a rate govered by the processor’s clockes which ticks at a specific frequency.
1 GHz (1 billion ticks/second) = one billion instructions are executed in a second.

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

Main Memory

A

Also known as RAM
- Currently running programs
- Data used by those programs
- Used only for temporary storage
Memory is divided into sections that hold an equal amount of data
A section of a memory is called a byte
Byte is made up of 8 bits.

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

Secondary Storage Devices

A

Capable of storing information for longer periods on time (non-volatile)
Ex:
- Disk Drive
- External Drive
- CD drive
- Solid State Drive
- USB drive
- DVD drive

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

Input Devices

A

Any data the computer collects from the outside world.
- Keyboard
- Mouse
- Scanner
- Digital Camera

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

Output Devices

A

Any data the computer sends to the outside world.
The data is displayed on devices known as output devices.
Includes:
- Monitors
- Printers

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

Software

A

Programs that run on a computer
Two types of software:
- Operation Systems
- Application Software

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

Operating Systems

A

A set of programs that manages the computer’s hardaware devices and computer’s hardware devices and controls their processes
Ex:
- Unix
- Linux
- Mac OS
- Windows

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

Application Software

A

Programs that make the computer useful to the user. Provides a specialized type of the environment for the user to work in.
Ex:
- Spreadsheets
- Word Processors
- Games

17
Q

Program Development Process

A

Text editor saves Java statements into the source code(.java) and is read by the Java compiler that produces Byte code (.class) and is interepreted by the Java Virtual Machince and Results in the Program Execution.

18
Q

Primitive Data Types

A

byte
short
int
long
float
double
char
boolean

19
Q

Numeric Data Types

A

byte
short
int
long
float
double

20
Q

Escape Character

A

A two character sequence starting with \ that represents a special character
- Escape sequences also enable representing characters like ‘, “ , \
Ex:
\n = newline
\t = tab
' = single quote
" = double quote
\ = backslash

21
Q

Basic Input

A

import java.util.Scanner; allows the program to get input
- Getting input is achieve by creating a Scanner object via:
Scanner scnr= new Scanner(System.in);
- Scanner scnr= new Scanner(System.in);

22
Q

Arthimetic Operators

A

+ Addition
- Subtraction
* Multiplication
/ Division
% Modulo (remainder)

23
Q

Logical Operators

A

Two binary logical operators:
&& (and) and || (or)
One urary logical operator to reverse the truth of a boolean expression:
! (not)