Midterm 2 Flashcards

1
Q

value

A

A value is a data item that is manipulated by the computer.

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

variable

A

A variable is the name that the programmer uses to refer to a location in memory.

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

location

A

A location has an address in memory and stores a value.

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

variables can also be called _____

A

identifiers.

An identifier is a name that must begin with a letter and cannot contain spaces.

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

reserved word

A

A reserved word is a string that has special meaning in the language. (e.g. var, if, else)

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

variable types

A

numbers – both integers and float/doubles
strings – sequences of characters
Boolean – true or false

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

algorithm

A

An algorithm is a precise, systematic method for producing a specified result.

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

Fetch/Execute Cycle

A
Instruction Fetch (IF) - retrieve instruction from memory
 Instruction Decode (ID) - lookup meaning of instruction
 Data Fetch (DF) - fetch data for instruction
 Instruction Execution (IE) - execute instruction 
 Result Return (RR) - return result to register
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Grouping instructions

A

allows programmers to use algorithms to solve other problems without re-creating them. It also allows programmers to focus on one task at a time (divide-and- conquer) and build up solutions to larger problems.

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

5 Basic Steps of Software Development

A

1) Specification
2) Design
3) Implementation
4) Testing, Execution, and Debugging
5) Maintenance

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

Problem decomposition

A

breaking down a large problem into subproblems which are easier to solve. Dividing problems into subproblems is called “divide and conquer”.

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

def. method

A

a sequence of program statements that have a specific task that they perform. (void)

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

def. function

A

a procedure that returns a value after it is executed. (return)

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