Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CPE 212 Sample Exam II You may need to mark multiple bubbles [example: answer AB

ID: 3717771 • Letter: C

Question

CPE 212 Sample Exam II

You may need to mark multiple bubbles [example: answer AB) ] 01. A variable of a class data type is known as a(n) ?? A) client B) specification C) object D) constant E) None of the answers provided 02. In this course, the code that implements class member functions is found in which location? A) specification file B) implementation file C) client program file D) None of the answers provided 03. Which of the following statements correctly declares an uninitialized pointer variable called newarray that will eventually point to an array of integers? [ Mark all correct answers!] A) int newarray*; C) int newarray; E) int *newarray; B) int* newarray; D) int &newarray; ABC) None of the answers provided 04. Which of the following statements correctly uses static allocation to allocate an array of ten integers called myarray? A) int* myarray new int; B) int* myarray[10]; C) myarray- new [10] int; D) int* myarray new int[10]; E) None of the answers provided 05. Which of the following statements correctly deallocates the entire array pointed to by the pointer variable called newarray (assume that the array has been dynamically allocated elsewhere)? A) delete newarray[10]; B) delete newarray; C) delete newarray []: D) delete [10] newarray; E) None of the answers provided

Explanation / Answer

Question 1
Answer:
C) object


Question 2
Answer:
B) Implementation file

Question 3
Answer:
Option A
Option B

Question 4
Answer:
Option D


Question 5
Answer:
Option B

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote