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

Info icon This 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
Image of page 1

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

View Full Document Right 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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern