chapter 1 Flashcards

(55 cards)

1
Q

abstraction

A

process that drives evolution of computer language and enables more USERS to use COMPUTERS

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

MatLab

A

developed by MOLER and LITTLE, stands for Matrix Lab

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

purpose of MatLab

A

graphing math computations for scientists and engineers, provides visualization tools to analyze results

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

compiled languages

A

converts high level instructions to low

require code to be fully compiled before program can be executed

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

machine instruction

A

specific to processed of program, sequence of 1s and 0s

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

interpreted languages

A

program called interpreter will read high level statement, execute operation, and then read the next statement

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

pros and cons of interpreted languages

A

pros- can be executed across many different computing systems as long as interpreter is available
cons- interpreter needs more steps to execute program which can slow execution

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

MatLab interpreter

A

carries out computations based on statement, allocates memory for data and adds results

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

command window

A

presents user with interactive environment, programmer types statement to be executed by interpreter

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

workspace

A

displays data being used by interpreter

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

variable

A

allocated memory for data

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

semicolon

A

interpreter won’t print output of statement, helps create variables

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

white space

A

horizontal spaces that don’t matter… things mean the same either way but it makes it better stylistically and easier to read

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

clc

A

clear command window (doesn’t affect workspace, variables are unchanged)

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

clear

A

clears all variables from workspace

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

diary

A

records everything that appears in command window into file, name of file is chosen by programmer

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

exit

A

exits Matlab session

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

who

A

prints out all variables in current workspace

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

whos

A

prints out all variables in workspace and extra Information about their size, bytes, etc

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

ctrl-c

A

interrupts endless Matlab calculation that programmer may have accidentally enterred

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

format commands

A

can alter how output appears in command window

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

format long

A

display shows 15 digits after decimal

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

format short

A

display shows 4 digits after decimal

24
Q

fixed point repetition

A

each number displayed with fixed number of digits after decimal point (standard is 4 pts)

25
format compact
single space text
26
format loose
double space text
27
switch
controls whether or not electricity flows
28
electronically controlled switch
positive voltage at control input allows electricity to flow while zero voltage prevents flow
29
1
positive voltage
30
0
zero voltage
31
bits
binary digits (1s and 0s)
32
circuits
connection of switches, can perform calculations, led to first computers and became increasingly complex
33
processers
circuits created to support different calculations and process/execute list of calculations
34
instructions
list of desired calculations, specified by configuring external circuits (stored in memory and operate on data in memory)
35
memory
circuit that stores bits
36
computer is basically...
processor executing instructions by interacting with memory
37
program/app
sequence of instructions created by programmer
38
JMP
jump, can be used to make loops
39
assemblers
programs created to translate human readable instructions into executable programs
40
executable program
sequence of machine instructions
41
assembly program instruction
human readable expression (ex: mult 98, #8, 99)
42
high level languages
supports programming using formulas or algorithms
43
statements
higher levels of instruction, closely related to how humans think
44
compilers
auto translate high level language programs into assembly language programs
45
binary number
number in base two (0 and 1, uses reset carry system for counting... 0,1, 10, 11, 100, 101, 110)
46
unsigned binary number
can only represent non negative numbers
47
signed binary number
uses leftmost bit to represent whether number is positive or negative
48
overflow
when result of bit addition is too big to fit allowed number of bits
49
peripherals
additional devices added onto a computer like mic, speakers, etc
50
disk
"hard drives" store files and other data non volatile (maintain info even when they are off) disk spins under a head that pulses electricity to friend specific particles in a 0 or 1 position
51
RAM
random access memory, temporarily holds data read from storage random access - access any memory location quickly without having to spin disk volatile mem in bytes
52
computer processer
runs computer programs, reading and executing instructions from memory AKA CPU starts with memory location 0
53
operating system
program that allows user to run other programs that interface with peripherals
54
clock
part of processor at which instructions are executed, ticks at specific frequent
55
Moore's law
doubling of IC capacity roughly every 18 months