112test2_08a_sol

112test2_08a_sol - ENGR 112 TEST 2 (answers) 1. On a...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 112 TEST 2 (answers) 1. On a graphical window 800 wide by 600 high the lower right-hand corner is at coordinates. c. (799, 599) 2. The code in Graph.h d. all of the above 3. void f(int x); tells us d. f does not return a value 4. User-defined types a. are indicated by class or struct 5. Arguments to a function may be passed d. any of the above 6. Classes Line , Axis , Polygon , etc. derive from class Shape. d. all of the above 7. Having the first argument almost always be a Point is an example of b. regularity 8. Public members of a class or struct b. are visible anywhere in the class, even above the declaration 9. An expression which changes the value of a variable c. may not be on the left-hand side of an = 10. A constructor d. all of the above 11. Attaching graphical objects to a Simple_window d. all of the above 12. using namespace std; a. tells the compiler to look for std::foo if foo is not defined
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
13. An invariant a. is a rule for what constitutes a valid value 14. A function activation record d. is created when a function is called that is not inlined 15. Given the code enum Month{jan=1,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec};
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

112test2_08a_sol - ENGR 112 TEST 2 (answers) 1. On a...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online