Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

Final Exam Review(1)

VIEWS: 28 PAGES: 20

									                                        Final Exam Review
          Exam time: Thursday, Dec 15 12:45 pm. Be prompt. Bring
          a Bluebook for the programming part of the test.
          Dear Students: Here are all the multiple choice questions from which I will randomly
          choose up to 40 questions (UPDATE: I HAVE SELECTED ONLY 30 QUESTIONS). The
          remaining points will be programming questions. Concentrate on shuffling, sorting,
          searching, and struct. You also need to know how to read data from a file. Questions will
          come from programs you have already done or I have done in class. If you have any
          questions email me.

          Best of luck to all of you. Have a Merry Christmas and a Happy New Year.

          Dr. Abraham

____   1. Which of the following statements declares alpha to be an array of 25 components of the type
          int?
          a. int alpha[25];                                 c. int alpha[2][5];
          b. int array alpha[25];                           d. int array alpha[25][25];
____   2. Assume you have the following declaration char nameList[100];. Which of the following
          ranges is valid for the index of the array nameList?
          a. 0 through 99                                   c. 1 through 100
          b. 0 through 100                                  d. 1 through 101
____   3. Assume you have the following declaration int beta[50];. Which of the following is a valid
          element of beta?
          a. beta[0]                                        c. beta[‘1’]
          b. beta[‘0’]                                      d. beta[50]
____   4. Assume you have the following declaration double salesData[1000];. Which of the
          following ranges is valid for the index of the array salesData?
          a. 0 through 999                                  c. 1 through 1001
          b. 0 through 1000                                 d. 1 through 1000




____   5. Consider the declaration above. Which of the following codes correctly outputs all the elements
          of list?
          a. for(j = 1; j < 10; j++)
                 cout<<list[j]<<" ";
              cout<<endl;

          b. for(j = 0; j <= 9; j++)
                cout<<list[j]<<" ";
             cout<<endl;

          c. for(j = 1; j < 11; j++)
                cout<<list[j]<<" ";
              cout<<endl;

          d. for(j = 1; j <= 10; j++)
                cout<<list[j]<<" ";
             cout<<endl;




____   6. Consider the declaration above. Which of the following correctly initializes the array sales?
          a. for(j = 0; j <= 49; j++)
                     sales[j] = 0;
          b. for(j = 1; j <= 50; j++)
                     sales[j] = 0;
          c. for(j = 0; j <= 49; j++)
                     sales[j] = 0.0;
          d. for(j = 1; j <= 50; j++)
                     sales[j] = 0.0;
____   7. Consider the following declaration int alpha[5] = {3, 5, 7, 9, 11};. Which of the
          following is equivalent to this statement?
          a. int alpha[] = {3, 5, 7, 9, 11};
          b. int alpha[] = {3 5 7 9 11};
          c. int alpha[5] = [3, 5, 7, 9, 11];
          d. int alpha[] = (3, 5, 7, 9, 11);
____   8. Consider the following declaration int alpha[3];. Which of the following input statements
          correctly inputs values into alpha?
          a. cin>>alpha
                   >>alpha
                   >>alpha;
          b. cin>>alpha[0]
                   >>alpha[1]
                   >>alpha[2];
          c.  cin>>alpha[1]
                   >>alpha[2]
                   >>alpha[3];
          d. cin>>alpha




____   9. What is the output of the C++ code above?
          a. 0 1 2 3 4                                  c. 0 5 10 15 20
          b. 0 5 10 15                                  d. 5 10 15 20
____ 10. What is the output of the C++ code above?
         a. 0 5 10 15 20                                c. 5 10 15 20 20
         b. 5 10 15 20 0                                d. Code contains index out-of-bounds




____ 11. Given the declaration above, which of the following for loops sets the index of gamma out of
         bounds?
         a. for(j = 0; j <= 49; j++)
                  cout<<gamma[j]<<" ";
         b. for(j = 1; j < 50; j++)
                  cout<<gamma[j]<<" ";
         c. for(j = 0; j <= 50; j++)
                  cout<<gamma[j]<<" ";
         d. for(j = 0; j <= 48; j++)
                  cout<<gamma[j]<<" ";




____ 12. What is the value of alpha[2] after the code above executes?
         a. 1                                         c. 5
         b. 4                                         d. 6




____ 13. What is the value of alpha[4] after the code above executes?
         a. 5                                         c. 11
         b. 8                                         d. 14
____ 14. What is the value of alpha[3] after the code above executes?
         a. 10                                        c. 15
         b. 13                                        d. 17




____ 15. What is stored in alpha after the code above executes?
         a. alpha = {5, 6, 7, 8, 9}
         b. alpha = {5, 6, 10, 8, 9}
         c. alpha = {8, 6, 7, 8, 9}
         d. alpha = {8, 6, 10, 8, 9}




____ 16. What is stored in alpha after the code above executes?
         a. alpha = {0, 2, 4, 6, 8}
         b. alpha = {0, 2, 9, 6, 8}
         c. alpha = {0, 3, 4, 7, 8}
         d. alpha = {3, 2, 9, 6, 8}
____ 17. What is the output of the C++ code above?
         a. 2 4 6 8 10                                    c. 8 6 4 2 0
         b. 4 3 2 1 0                                     d. 10 8 6 4 2




____ 18. What is the value of alpha[3] after the code above executes?
         a. 5                                           c. 9
         b. 8                                           d. 10
____ 19. Which of the following correctly declares name to be a character array and stores "William"
         in it?
         a. char name[6] = "William";
         b. char name[7] = "William";
         c. char name[8] = "William";
         d. char name[8] = ‘William’;
____ 20. Consider the following declaration char str[15];. Which of the following statements stores
         "Blue Sky" into str?
         a. str = "Blue Sky";
         b. str[15] = "Blue Sky";
         c. strcpy(str, "Blue Sky");
         d. strcpy("Blue Sky");
____ 21. Assume that alpha is a character array of size 20. Which of the following statements is illegal in
         C++?
         a. cin>>alpha;                                 c. alpha[0] = 'C';
         b. strcpy(alpha, "Fair");                      d. strcpy("Fair");




____ 22. Consider the following declaration.
         char charArray[51];
         char discard;
           Assume that the input is:
           Hello There!
           How are you?

           What is the value of discard after the statements above execute?
           a. discard = ' ' (Space)                          c. discard = '\n'
           b. discard = '!'                                  d. discard = '\0'
____ 23.   Given the function prototype void mystery(int list[], int size); and the
           declaration int alpha[50];, which of the following is a valid call to the function
           mystery?
           a. mystery(alpha[50]);                            c. mystery(alpha,50);
           b. mystery(alpha[],50);                           d. mystery(alpha{50});
____ 24.   Given the function prototype void strange(int a, int b); and the declaration above,
           which of the following is a valid call to the function strange?
           int alpha[10];
           int beta[10];
           a. strange(alpha[0], alpha[1]);
           b. strange(alpha, beta);
           c. strange(alpha[0], beta);
           d. strange(alpha, beta[0]);
____ 25.   Consider the following statement: double alpha[10][5];. The number of components of
           alpha is _____.
           a. 15                                             c. 100
           b. 50                                             d. 150
____ 26.   Consider the statement int list[10][8];. Which of the following about list is true?
           a. list has 10 rows and 8 columns.
           b. list has 8 rows and 10 columns.
           c. list has a total of 18 components.
           d. list has a total of 108 components.
____ 27.   Consider the following statement: int alpha[25][10];. Which of the following statements
           about alpha is true?
           a. Rows of alpha are numbered 0...24 and columns are numbered 0...9.
           b. Rows of alpha are numbered 0...24 and columns are numbered 1...10.
           c. Rows of alpha are numbered 1...24 and columns are numbered 0...9.
           d. Rows of alpha are numbered 1...25 and columns are numbered 1...10.




____ 28. Given the declaration above, which of the following correctly finds the sum of the elements of the
         fifth row of sale?
         a. sum = 0;
              for(j = 0; j < 7; j++)
                    sum = sum + sale[5][j];
         b. sum = 0;
              for(j = 0; j < 7; j++)
                  sum = sum + sale[4][j];
           c. sum = 0;
              for(j = 0; j < 10; j++)
                  sum = sum + sale[5][j];
           d. sum = 0;
              for(j = 0; j < 10; j++)
                  sum = sum + sale[4][j];




____ 29. Given the declaration above, which of the following correctly finds the sum of the elements of the
         fourth column of sale?
         a. sum = 0;
             for(j = 0; j < 7; j++)
                   sum = sum + sale[j][3];
         b. sum = 0;
             for(j = 0; j < 7; j++)
                   sum = sum + sale[j][4];
         c. sum = 0;
             for(j = 0; j < 10; j++)
                   sum = sum + sale[j][4];
         d. sum = 0;
             for(j = 0; j < 10; j++)
                   sum = sum + sale[j][3];
____ 30. Which of the following correctly declares and initializes alpha to be an array of 4 rows and 3
         columns and the component type is int?
         a. int alpha[4][3] = {{0,1,2} {1,2,3} {2,3,4} {3,4,5}};
         b. int alpha[4][3] = {0,1,2; 1,2,3; 2,3,4; 3,4,5};
         c. int alpha[4][3] = {0,1,2: 1,2,3: 2,3,4: 3,4,5};
         d. int alpha[4][3] = {{0,1,2}, {1,2,3}, {2,3,4}, {3,4,5}};




____ 31. After the statements above execute, what are the contents of matrix?
         a. 0 0                                          c. 0 1
             1 1                                             1 2
             2 2                                             2 3
         b. 0 1                                          d. 1 1
             2 3                                             2 2
             4 5                                             3 3
____ 32. After the statements above execute, what are the contents of matrix?
         a. 0 2 4 6                                        c. 0 2 4 6
              1 3 5 7                                          2 4 6 8
              2 4 6 8                                          4 6 8 10
              3 5 7 9                                          6 8 10 12
         b. 0 1 2 3                                        d. 0 1 2 3
              1 2 3 4                                          2 3 4 5
              2 3 4 5                                          4 5 6 7
              3 4 5 6                                          6 7 8 9
____ 33. In C++, the null character is represented as _____.
         a. '\0'                                           c. '0'
         b. ”\0”                                           d. “0”
____ 34. Consider the following list: list = {20, 10, 17, 2, 18, 35, 30, 90, 48,
         47};. Suppose that the sequential search is used to determine whether 2 is in the list. How many
         key comparisons are executed by the sequential search algorithm?
         a. 3                                              c. 8
         b.   4                                            d. 10
____ 35. Consider the following list: list = {20, 10, 17, 2, 18, 35, 30, 90, 48,
         47};. Suppose that the sequential search is used to determine whether 95 is in the list. How
         many key comparisons are executed by the sequential search algorithm?
         a. 5                                              c. 10
         b. 8                                              d. 20
____ 36. Consider the following list: list = {24, 20, 10, 75, 70, 18, 60, 35}. Suppose
         that the list is sorted using the selection sort algorithm. What is the resulting list after two
         iterations of selection sort?
         a. list = {10, 18, 24, 20, 75, 70, 60, 35}
         b. list = {10, 18, 20, 24, 75, 70, 60, 35}
         c. list = {10, 18, 24, 75, 70, 20, 60, 35}
         d. list = {10, 18, 24, 75, 70, 20, 35, 60}
____ 37. Suppose that L is a sorted list of 1000 elements. To determine whether the x item is in L, the
         maximum number of comparisons executed by the binary search algorithm is _____.
         a. 1                                              c. 42
         b. 22                                             d. 500
____ 38. Suppose that L is a sorted list of 1,000,000 elements. To determine whether the x item is in L,
         the average number of comparisons executed by the sequential search algorithm is _____.
         a. 220                                            c. 500,000
         b.   420                                          d. 1,000,000
____ 39. A _____ is a set of values of the same type.
         a. set                                            c. dictionary
         b. list                                           d. map
____ 40. The _____ of a list is the number of elements in the list.
         a. size                                           c. width
           b. capacity                                          d. volume
____ 41.   The _____ search is called the linear search.
           a. sequential                                        c. selection
           b. binary                                            d. bubble
____ 42.   The sequential search starts with the _____ element of the array.
           a. 0                                                 c. middle
           b. 1                                                 d. last
____ 43.   The first step in the binary search is to compare the search item with the _____ element of the
           list..
           a. 0                                                 c. middle
           b. 1                                                 d. last
____ 44.   Item comparisons in the sequential search are called _____ comparisons.
           a. lock                                              c. record
           b. key                                               d. map
____ 45.   Suppose that you have a list with 1000 elements. If the search item is not in the list, the
           sequential search makes _____ key comparisons.
           a. 1                                                 c. 999
           b. 500                                               d. 1000
____ 46.   In the _____ sort, if list[index] is greater than list[index +1], then the elements
           list[index] and list[index +1] are swapped.
           a. selection                                         c. binary
           b. bubble                                            d. insertion
____ 47.   Suppose that you have an unsorted list of 10 elements and the smallest element is at list[5].
           After swapping using the selection algorithm, the smallest element is at position _____.
           a. 0                                                 c. 9
           b. 1                                                 d. 10
____ 48.   For an ordered list of 1000 elements (in the successful case), a sequential search, on average,
           makes _____ comparisons.
           a. 500                                               c. 1000
           b.    750                                            d. 2000
____ 49.   Which of the following is a valid declaration?
           a. vector intList(10);                               c. vector<int> int(10);
           b.    <int>vector intList(10);                       d. vector<int> intList(10);
____ 50.   The _____ operation on a vector object returns the last element.
           a. vecList.front()                                   c. vecList.at()
           b. vecList.back()                                    d. vecList.push_back()
____ 51.   The _____ operation on a vector object returns the first element.
           a. vecList.front()                                   c. vecList.pop_front()
           b. vecList.first()                                   d. vecList.push_front()
____ 52.   The _____ operation on a vector object changes the size of vecList to n.
           a. vecList.change_size(n)                            c. vecList.size(n)
           b. vecList.increase(n)                               d. vecList.resize(n)
____ 53.   Which of the following statements declares list to be an empty vector object?
           a. vector<int> list;                                 c. <int>vector list;
           b.    vector<int> list();                            d. vector<int> list(0);
____ 54.   In general, if L is a sorted list of size n, to determine whether an element is in L, the binary search
           makes at most _____ key comparisons.
           a. 2 * log2n                                     c. 2 * log2n
           b. log2n + 2                                     d. 2 * log2n + 2
____ 55.   Which statement creates the vector object, vecList, of size n and initializes using n copies
           of the element elem?
           a. vector vecList(n, elem);
           b. vector<elementType> vecList(n) = elem;
           c. vector<elementType> vecList(n, elem);
           d. vector<elementType> vecList(elem)(n);
____ 56.   The code for the bubble sort function requires _____.
           a. one if statement with one for loop inside
           b. two if statements with a for loop inside the second if
           c. two for loops and an if statement inside the second loop
           d. two for loops with an if statement inside each loop
____ 57.   The code for sequential search of an ordered list includes an if statement whose condition is
           _____.
           a. list[loc]<searchItem                          c. list[loc]==searchItem
           b. list[loc]<=searchItem                         d. list[loc]>=searchItem
____ 58.   The binary search algorithm finds the middle element using which of the following formulas?
           a. mid = first/last                              c. mid = first+last/2
           b. mid = (last-first)/2                          d. mid = (first+last)/2
____ 59.   A struct is a _____ data type.
           a. simple                                        c. structured
           b. homogeneous                                   d. linked
____ 60.   Which of the following struct definitions is correct in C++?
           a. struct studentType                            c. int struct studentType
                    {                                                {
                       int ID;                                          ID;
                    };                                               }

           b.      struct studentType                    d.      struct studentType
                   {                                             {
                     string name;                                   int ID = 1;
                     int ID;                                     };
                     double gpa;
                   }




____ 61. Consider the struct definition above. Which of the following variable declarations is correct?
         a. rectangle rectangleData;
         b. struct rectangleData();
           c. rectangleData myRectangle;
           d. rectangleData rectangle = new rectangleData();




____ 62. Consider the statements above. Which of the following statements correctly initializes
         bigRect?
         a. bigRect = {10};                             c. length[0]= 10;
         b. bigRect.length = 10;                        d. bigRect[0]= 10




____ 63. Consider the statements above. Which of the following statements is legal in C++?
         a. if (bigRect == smallRect)
         b. if (bigRect != smallRect)
         c. if (bigRect.length == width)
         d. if (bigRect.length == smallRect.width)




____ 64. Consider the statements above. Which of the following statements is valid in C++?
         a. cin>>bigRect.length>>width;
         b. cout<<bigRect.length
         c. cout<<bigRect
         d. cout<<length
____ 65. Consider the statements above. Which of the following statements is valid in C++?
         a. cin>>circle.radius;
                circle.area = 3.14 * radius * radius;
         b. cin>>circle.radius;
                circle.area = 3.14 * circle.radius * radius;
         c. cin>>circle
         d. cin>>circle.radius




____ 66. Consider the statements above. Which of the following statements is valid in C++?
         a. person1 = person3;                          c. person2 = person3;
         b. person2 = person1;                          d. person2 = person4;
____ 67. Consider the statements above. Which of the following statements is valid in C++?
         a. student2 = student3;
         b. student1 = student4;
         c. student2.ID = ID;
         d. student1.ID = student3.ID;
____ 68. A struct variable can be passed as a parameter _____.
         a. only by const                               c. only by value
         b. only by reference                           d. either by value or by reference




____ 69. Consider the statements above. What is the data type of paint.supplier?
         a. string                                      c. supplierType
         b. paintType                                   d. struct
____ 70. Consider the function int seqSearch(const listType& list, int
         searchItem). The ____ cannot modify the actual parameter.
         a. seqSearch                                   c. list
         b. listType                                    d. searchItem
____ 71. If a variable is passed by _____, the formal parameter receives only the address of the actual
         parameter.
         a. reference                                     c. index
         b. value                                         d. constant




____ 72. Consider the statements above. Which of the following best describes applianceList?
         a. It is an array.                             c. It is an array of structs.
         b. It is a struct.                             d. It is a struct of arrays.




____ 73. Consider the statements above. Which of the following statements correctly initializes the cost of
         each appliance to 0?

         a. applianceList.cost = 0;
         b. applianceList.cost[25] = 0;
         c. for(int j = 1; j < 25; j++)
                        applianceList.cost[j] = 0;
         d. for(int j = 0; j < 25; j++)
                        applianceList.cost[j] = 0;
____ 74. Which of the following aggregate operations can be executed on struct variables?
         a. Arithmetic                                 c. Comparison
           b. Assignment                                   d. Input/Output
____ 75.   Which of the following aggregate operations can be executed on array variables?
           a. Arithmetic                                   c. Comparison
           b. Assignment                                   d. Parameter passing
____ 76.   Typically, in a program, a struct is defined _____ in the program.
           a. in the main function
           b. before the definitions of all the functions
           c. after the definitions of all the functions
           d. in any function
____ 77.   The array name and index are separated using _____.
           a. curly brackets                               c. a dot
           b. square brackets                              d. a comma
____ 78.   The syntax for accessing a struct member is structVariableName_____.
           a. .memberName                                  c. [memberName]
           b. *memberName                                  d. $memberName
____ 79.   In C++, the _____ symbol is an operator, called the member access operator.
           a. :(colon)                                     c. ,(comma)
           b. .(dot)                                       d. $ (dollar sign)




____ 80. Consider the statements above. Which of the following statements is valid in C++?
         a. cin >> bigRect
         b. cin >> bigRect.length
         c. perimeter = 2*(length+ width);
         d. area = length * width;
____ 81. You can assign the value of one struct variable to another struct variable of _____ type(s).
         a. any                                          c. a different
         b. the same                                     d. a heterogeneous
____ 82. To compare struct variables, you compare them _____.
         a. by reference                                 c. index-wise
         b. by value                                     d. member-wise
____ 83. A list has two items associated with it: _____.
         a. the length and the references                c. the indexes and the length
         b. the values and the references                d. the values and the length
____ 84. Which of the following class definitions is correct in C++?

           a.      class studentType
                   {
                    public:
                       void setData(string, double, int);
                    private:
                       string name;
                   };

           b.      class studentType
                   {
                    public:
                       void setData(string, double, int);
                       void print() const;
                    private:
                       string name;
                       double gpa;
                   }

           c.      class studentType
                   {
                    public void setData(string, double, int);
                    private string name;
                   };

           d. studentType class
                 {
                  public: void setData(string, double, int);
                  private: string name;
                 };




____ 85. Consider the class definition above. Which of the following class variable declarations is
         correct?
         a. rectangle rectangleData;
         b. class rectangleData rectangle;
         c. rectangleData rectangle;
         d. rectangle rectangleData.area;
____ 86. Consider the statements above. Which of the following statements is correct?
         a. rectangleData.print();                      c. bigRect.print();
         b. rectangleData::print();                     d. bigRect::print();




____ 87. Consider the class definition and object declaration above.
         Suppose that the definition of the function print is:
         void rectangleData::print() const
         {
               cout<<"Rectangle Length = "<<length;
               cout<<"; Rectangle Width = "<<width<<endl;
               cout<<"Rectangle Area = "<<area;
               cout<<"; Rectangle Perimeter = "<<perimeter<<endl;
           }
           What is the output of the following statements?
           rectangleData.calculateArea();
           rectangleData.calculatePerimeter();
           rectangleData.print();
           a. Rectangle Length = length; Rectangle Width = width
                Rectangle Area = area; Rectangle Perimeter = perimeter
           b. Rectangle Length = length Rectangle Width = width
                Rectangle Area = area Rectangle Perimeter = perimeter
           c. Rectangle Length = 14; Rectangle Width = 10
                Rectangle Area = 140; Rectangle Perimeter = 56
           d. Rectangle Length = 14 Rectangle Width = 10
                Rectangle Area = 140 Rectangle Perimeter = 56
____ 88.   Which of the following is true about classes and structs?
           a. By default, all members of a struct are public and all members of a class are
                private.
           b. A struct variable is passed by value only, and a class variable is passed by reference
                only.
           c. An assignment operator is allowed on class variables, but not on struct variables.
           d. You cannot use the member access specifier private in a struct.
____ 89.   What does ADT stand for?
           a. Abstract definition type                     c. Abstract data type
           b. Asynchronous data transfer                   d. Alternative definition type
____ 90.   A(n) _____ combines data and the operations on that data in a single unit.
           a. object                                       c. array
           b. class                                        d. struct
____ 91.   In C++, the mechanism that allows you to combine data and the operations on that data in a single
           unit is called a(n) _____.
           a. object                                       c. member
           b. class                                        d. struct
____ 92.   The components of a class are called the _____ of the class.
           a. elements                                     c. objects
           b. members                                      d. properties
____ 93.   If a member of a class is _____, you cannot access it outside the class.
           a. public                                       c. private
           b. protected                                    d. static
____ 94.   The word _____ at the end of the member functions in the class clockType specifies that
           these functions cannot modify the data members of a variable of the type clockType.
           a. static                                       c. automatic
           b. const                                        d. private
____ 95.   A class and its members can be described graphically using a notation known as the _____
           notation.
           a. OON                                          c. UML
           b. OOD                                          d. OOP
____ 96. A _____ sign in front of a member name on the UML diagram indicates that this member is a
         public member.
         a. +                                          c. #
         b. -                                          d. $
____ 97. A _____ sign in front of a member name on the UML diagram indicates that this member is a
         private member.
         a. +                                          c. #
         b. -                                          d. $
____ 98. A _____ sign in front of a member name on the UML diagram indicates that this member is a
         protected member.
         a. +                                          c. #
         b. -                                          d. $




____ 99. Consider the statements above. Which of the following statements is correct?
          a. bigRect.setLengthWidth();
          b. bigRect.setLengthWidth(3.0, 2.0);
          c. bigRect.length = 2.0;
          d. bigRect.length = bigRect.width;
____ 100. In C++, the _____ is an operator called the member access operator.
          a. .                                              c. ::
          b. ,                                              d. #
____ 101. A class object can be _____. That is, it is created each time control reaches its declaration, and
          destroyed when the control exits the surrounding block.
          a. static                                         c. local
          b. automatic                                      d. public
____ 102. A class object can be _____. That is, it can be created once, when the control reaches its
          declaration, and destroyed when the program terminates.
          a. static                                         c. local
          b. automatic                                      d. public
____ 103. In C++, you can pass a variable by reference and still prevent the function from changing its
          value, by using the keyword _____ in the formal parameter declaration.
          a. automatic                                      c. static
            b. private                                        d. const
____ 104.   In C++, the scope resolution operator is _____.
            a. :                                              c. $
            b. ::                                             d. .
____ 105.   A member function of a class that only accesses the value(s) of the data member(s) is called a(n)
            _____ function.
            a. accessor                                       c. constructor
            b. mutator                                        d. destructor
____ 106.   To guarantee that the data members of a class are initialized, you use _____.
            a. accessors                                      c. constructors
            b. mutators                                       d. destructor
____ 107.   The name of a destructor is the character '_____', followed by the name of the class.
            a. .                                              c. #
            b. ::                                             d. ~
____ 108.   The implementation file has an extension _____.
            a. imp                                            c. exe
            b. h                                              d. cpp
____ 109.   If a function of a class is static, it is declared in the class definition using the keyword
            static in its _____.
            a. return type                                    c. heading
            b. parameters                                     d. main function

								
To top