Exam2_08.5 - b are visible only inside the class definition...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
For questions 24-30 answer "a" for "declaration but not definition" and "b" for "declaration and also definition." 24. class Bad_area; 25. class Bad_area{}; 26. int x; 27. extern int x; 28. void f(double); 29. void f(double){}; 30. struct Point; 31. A destructor is called a. when an object goes out of scope b. when an object is created c. when an object is initialized d. all of the above e. none of the above 32. Global variables a. are visible everywhere b. are visible everywhere except where there is another variable with the same name c. are recommended by professional programmers d. are not allowed in C++ e. none of the above 33. Private data members of a class a. are visible from the point they are declared to the end of the class
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b. are visible only inside the class definition c. are visible to all members of the class, including function members defined outside the class definition d. all of the above e. none of the above 34. Function arguments are visible a. only in the function body b. to the main which calls the function c. unless there is a global variable with the same name d. all of the above e. none of the above 35. To perform input and output, our program interfaces directly a. to a keyboard, a display, a disk drive, etc. b. to an input/output library c. to a device driver d. all of the above e. none of the above...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online