118 <3

39 flashcardsby aajamahi
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
Steps on how to solve it (george polya)
understand, plan, carry out plan, look back
2
questions to ask to understand (polya)
what are you asked to find? Can you restate the problem in your own words?
3
Data
any value that is provided or is calculated during the solution of the problem
4
Bit
basic unit of information in computing
5
Bit can have values
0 and 1
6
example of bit positive number 10110
1(2^4)+0(2^3)+1(2^2)+1(2^1)+0(2^0)=22
7
byte
a group of 8 bits
8
what is the smallest memory block computers address
bit
9
how is an integer stored
four bytes that contain 32 bits
10
what is the highest number of integers possible to store
2^32
11
which bit indicates sign of integer
1st
12
how is the integer stored in x-bits when its negative
2^x + negative number
13
example: how is -2 stored as an 8-bit integer?
2^8-2=254, in binary form 11111110
14
character
form of integer in terms of how its stored
15
Boolean
A single value of either TRUE or FALSE
16
string
A sequence of characters
17
structure
way to collect different data into a single data type
18
objects
structures that contain methods that the user can use to work on data
19
Boolean logic
how logical variables can be combined and what the result is
20
not(A)
¬(boolean) ~(matlab)
21
object-oriented programming
designing a program by discovering objects, their properties, and their relationships
22
Procedural Programming
a style of programming in which sets of operations are executed one after another in sequence
23
Structured Programming
A method of programming which follows rules about selection, sequence, and iteration control structures.
24
Exception Handling
When there's an error, the program makes an error object and passes it off to the runtime system, which looks for a method in the call stack to handle it.
25
Modularity
The subdivision of a computer program into separate subprograms
26
callable units
set of program instructions that perform a specific task
27
block structure
section of code grouped together
28
Abstraction
separation of a component behavior from its implementation
29
Algorithm
A well-ordered collection of unambiguous and effectively computable operations that, when executed, produces a result and halts in a finite amount of time
30
characteristics of an algorithm
well-ordered, unambigous, effectively computable
31
method for developing algorithim
define problem, list inputs, describe steps and test
32
what control is similar to switch
if and a lot of if-else tests
33
if a variable has global scope, which parts of a computer program have access to variable
all parts
34
43 as 8-bit
11010101
35
93 as binary
1011101
36
10011011 if unsigned
128+16+8+2+1=155
37
10011011 if signed 2's complement
-128+16+8+2+1= -101
38
10011011 if signed 1's complement
-(64+32+4)= -100
39
a complex number could be implemented in an ooc, 2 attributes and 2 methods
attributes,- imageal or arg/mod

methods- complex_plus, imag_part, argument
Study all 39 cards for free