Test 2 Flashcards

1
Q

How is memory accessed?

A

address points to the memory cell that contains the data

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

Instruction Register (IR)

A

the register that contains the instruction currently being executed

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

Program Counter (PC)

A

the register that contains the address of the next instruction to be executed

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

Fetch Execute Cycle

A
  • Fetch the next instruction
  • Decode the instruction
  • Get data if needed
  • Execute the instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a pep8 simulator?

A

It is a virtual computer

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

Two different types of testing

A

Black box testing

Data coverage

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

Data coverage, Black box testing

A

testing a program or subprogram based on the possible input values, treating the code as a black box

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

Clear box testing

A

Testing a program or subprogram based on covering all the statements in the code

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

Describe the difference between how humans and computers solve problems

A

Humans are abstract and recursive

Computer are concrete and must be directed through a problem to a solution

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

Distinguish between simple and composite data types

A

Simple data types are algorithms with selection and repetition (cannot be divided)
Composite data types are arrays and records (strings)

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

Recognize recursive problem solving

A

the ability of an algorithm to call itself

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

Divide and conquer problem solving technique

A

dividing the problem into smaller components to solve easier

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

Computer problem solving process

A

analysis and specification phase
algorithm development phase
implementation phase
maintenance phase

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

Array

A

only can contain on type of data

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

Composite data type

A

can contain different types of data

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

Searching methods

A

Binary search

Sequential search

14
Q

Binary search

A

looks for an item in a list using a divide and conquer strategy
only works with sorted data

14
Q

Sequential search

A

start at beginning until target located

works with unsorted data [most suited]

15
Q

Recursive algorithms

A

ability of a function to call itself

16
Q

Know difference between stacks, queues, list

17
Q

Stack

A
Vertical implementation
PUSH to add data to elements
POP to remove data from stack
CAN TEST to see if stack is empty
FILO - FIRST IN LAST OUT
LIFO - LAST IN LAST OUT
18
Q

Queue

A
Horizontal Implementation 
Enqueue to add data to elements
Dequeue to remove data from queue
CAN TEST to see if queue is empty
FIFO - FIRST IN FIRST OUT
LILO - LAST IN LAST OUT
19
Q

Linked

A
An implementation of a container where the items are stored together with information on where the next item can be found
Based on composite structures but can also be array based
An array is a built in structure
A list is an abstract structure
Add for adding nodes to list
Remove or delete nodes from list
Can search on list
Can sort list
Can test to see if list is empty
20
Q

Ethical issues in computer use

name and describe 2 unethical computer uses

A

Workplace monitoring

Copywriting and Software Piracy

25
What is ADT
abstract data type is a container whose properties are specified independently of any particular implementation
26
The difference between array based and linked based implementation
Array Based Implementation An implementation of a container in which items are stored in an array Linked implementation An implementation of a container where the items are stacked together with information on where the next item can be found
27
Difference between machine language and assembly language.
Machine language The language made up of binary coded instructions that is used directly by the computer Assembly language A low level programming language in which a mnemonic represents each of the machine language instructions for a particular computer
28
what is a virtual computer
A hypothetical machine designed to illustrate important features of a real machine
29
pseudocode
a language designed to express algorithms
30
program control structures
looping, selection, sequence
31
Looping control structures
sentinel type looks for a situation to be true or false | count control iterates through a process a number of times
32
selection control structure
case - select from a pick list | if - selection based on condition
33
sequence control structure
program begins at first line of code and executes until all lines are interrogated, program then exits