Exam 2 Flashcards

(28 cards)

0
Q

assignment in pseudocode

A

<—

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

pseudocode

A

an arbitrary code to represent a program’s instructions

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

output in pseudocode

A

print

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

input in pseudocode

A

read

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

do/while loop in pseudocode

A

repeat/until test

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

marks end of program in pseudocode

A

end

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

bit

A

0 or 1

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

byte

A

8 bits, numbers typically stored in 4 bytes

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

sign magnitude

A

positive or negative sign in first bit of number, 0 = positive, 1= negative

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

one’s compliment

A

reverses every bit in number

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

two’s compliment

A

take one’s compliment and add 1, created to store negative numbers

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

do/while loop

A

post test loop, will do the material at least once

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

top-down programming

A

analyze from top view down to details

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

module

A

interchangeable with ‘function’

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

function

A

a sub program, gets values to work on and returns a result

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

parameters

A

variables that receive values when the function is invoked

16
Q

system files

A

programs to control the computer

17
Q

subdirectories

A

files that contain the names of other files

18
Q

archive files

A

stored in a more compact form

19
Q

programs

A

executable files

20
Q

data files

A

have values that are used by other programs

21
Q

text files

A

files of character (aka ASCII files) but works w/ numbers correctly

22
Q

other data files

A

stored in a more efficient form, file of real numbers, integers, records

23
Q

record

A

a group of related fields

24
field
a unit of information about a subject
25
for loop
pretest loop, counting loop
26
formatted output (code)
cout. setf (ios::fixed); | cout. precision (# of decimal places);
27
manipulates display (code)
``` #include; cout<<