Monday, July 29, 2019

Notes for Final Exam Summer 2019

1 comment:

Anonymous said...

FINAL EXAM C++ NOTES
50 question test
90% are multiple choice
4% are fill in the blank
6% are true and false
42% are calculations
Ch 10 and Ch 6 have largest attention


CH1
Bytes, bits, and kilobytes (pg6)
What’s the definition of a compiler (pg9)
Where did C++ come from?
Special symbols (pg35)
Paragraph on whitespaces (C++ ignores whitespaces) (pg37)
Arithmetic operators (pg43)
% symbol is a modulo, and captures the remainder
Type conversion (pg51)
Allocating memory and initializing variables (pg54, pg65)
Incrementing and decrementing (pg69, 70, 71)
Cout operation (pg72)

CH2
Escape characters (pg77)
Preprocessor directives (pg78)

CH3
Input/output statements (pg128, 129)
The get function (pg133)
The ignore function (pg134)
Putback and peek (pg136)
Setprecision (pg144)
Fixed manipulator (pg145, 146, 147)
Setfill manipulator (pg152)
Left and right manipulators (pg154, 155)
Input/output files (pg160, 161)

CH4
Relational operators (pg189)
If … else statement (pg195)
Compound expressions (and, or, not) (pg199)
And statements (pg200, 201)
“The appearance of = in place of == resembles a silent killer.” (pg222)
Conditional operator (pg223)
Switch structures (pg227-230)

CH5
While loop structure (pg269-272)
For loop structure (pg297)
Do … while loop structure (pg309, 310)
Break and continue statements (pg313)

CH6
Return statement (pg356)
compareThree function (pg361)
Value returning functions in a list (pg363)
Assigning default values to a function (pg418, 419)

CH7
Enum type (pg468-470)
Definition of an identifier (pg36), illegal identifiers (pg469-471)
Using enum in arithmetic (pg477)
String manipulation (pg493)
Good examples of substr function (pg503, 504)

CH8
Basic example of declaring an array (pg528)
How to store a null character in char variable (pg553)
Two-dimensional arrays (pg564)
Basic function on printing, inputting, summing rows, summing columns (pg568, 569)

CH9
Definition of a struct (pg612)
How data is stored in struct elements (pg617)
Assignment vs. Comparison (pg618)
Arrays vs. Structs (pg620)
Declaration of arrays in structs, structs in arrays (pg623)
Structs within a struct (pg625, 626, 627)

CH10
Declaring a class (pg652, 653)
UML model (pg656)
Private and public members of classes (pg670, 671)
Destructors (pg681)
A struct versus a class (pg684, 685)