Tuesday, October 01, 2019

Notes for Fall Midterm 2019

1 comment:

Kevin Fair said...

Basic notes from mid-term review.

- Compiler - Program used to translate programming language to machine language.
- Page 10
- C++ evolved from C.
- Page 51 - Know what static cast is. Used to change variables from one type to another.
- Page 69-71. Know increment and decrement. ++count, count++, --count, count--
- Page 72. Know how cout works.
- Page 77. Know escape characters. \n, \t, etc..
- Page 92. x *= y is the same as x = x * y
- Page 127-128. Know how cin works with regards to inputs. Examples on the pages listed.
cin will accept a number as a character input.
- Page 133-134. know the get and ignore functions
- Page 144-147. setprecision, fixed, showpoint
- Page 150. setwidth
- Page 152-153. setfill. Example 3-14 - will have similar test question.
- Page 195. Know if, then else, and switch. Decision making statements.
- Page 200. And/or statements (&&) (||)
- Page 222-223. Know difference between = and == (silent killer). Know conditional
operators for if, then, else
- Page 227-231. Switch statement examples. 4 keywords of switch statements are switch,
case, break, and default.
- Know pretest and post-test repetition control structures.Pretest = for, while. Post-test=
do...while
- Page 298-299. for looping structure. Shows everything in the statement, preferred by
programmers.
- Page 309. Do while loops. Is a post-test, will run atleast 1 time.
- Page 353. Value-returning functions return one value (int,double,char).
Void functions do not return any data.
- Page 356. Know return statement syntax.
- Page 360. Study comparethree function example. Function call.
- Page 361. Functional prototypes. Header to declare functions because c++ reads top down,
so you must declare functions before you use them in the Main().
- Page 363. return will only return one value, and will take the right most expression.
Ex. return x, y, x+y, x*y will ONLY return x*y
- Page 378-381. Know void functions and function parameters. Know value vs reference
parameter. Reference uses less memory, more efficient.