1. Data members are usually private and member functions public because

2. Member functions are generally used to manipulate

3. Whitespace consists of all of the following, except

4. The assignment operator =

5. To complete high precision operations involving the first 20 digits of pi, you would most likely use which of the following data types?

6. Which of the following will print out: a c b d

7. 91 % 7 evaluates to

8. Which of the following statements will not affect the value of x?

9. If you create a class called bird and you want an instance of it, say object robin, to fly, then the command might look like:

10. Relational operators compare 2 ____ values and evaluate to a ____.

11. Which for-loop will run a variable from 5 to 105 in steps of 4?

12. Which expression will cause the while-loop to loop until x equals 1 or init is not 'g'?

13. A do-loop is different from a while loop because

14. Which statement checks that the character dig falls between the characters '1' and '9'?

15. An object usually interacts with the rest of the program via

16. In a nested for-loop structure, the break command will take you out of the loop it is in, but will not take you out of any of the other loops.

17. You want to display "too short" if height is less than 4 and "okay" otherwise. Your best choice is to use a(n)

18. If you type obj1=obj2;, the compiler

19. Function arguments are used to

20. To tell a car object variable to speed up by 10 mph, you might

21. The return statement tells a function to

22. To use the sqrt() function defined in header file math.h, you must write

23. To create an array of 10 elements of type int, you would write

24. The last element in an array of 50 elements is

25. To loop through an array of size 6, a proper for-loop statement would be

26. To initialize a one dimensional array to contain the numbers 1 through 6, you would write

27. In a three dimensional array declared box[2][3][5], the last element is

28. Linked lists

29. Arrays can hold

30. If x is initially 5, then array[--x] will access which element of array?

31. The keyword const ensures a variable

32. Creating a struct

33. Structs are used to create new data types.

34. To access a struct pointer's data, you use which operator?

35. Enumerated type values are really represented as integers.

36. The keyword enum is used to create a

37. A function definition differs from a function declaration in that it

38. A member function defined within a class is

39. Overloaded functions are useful when two or more functions do roughly the same task but with different data types

40. Default arguments can

41. Constructors' arguments must all have default arguments.

42. A static member variable is shared by all objects within the class.

43. Destructors

44. To use a public base class function f(), you can use the statement

45. To allow derived class functions to access private base class data, you must

46. If a base class has a constructor, then its derived classes must define one also.

47. If class der is derived from class base, then der's public member functions can

48. Composition is

49. Composition is a good way to avoid complications of multiple inheritance.

50. If you make a new object with pointer = new aClass, and then use the aClass member function func() with the new object, you would write:

Popular pages: Review of C++ Fundamentals