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

CP 2200 Final Exam - Daniel R. Collins F Spring 2018 Common Segment for Secti 17

ID: 3903659 • Letter: C

Question

CP 2200 Final Exam - Daniel R. Collins F Spring 2018 Common Segment for Secti 17) If data is transmitted faster than it can be for 11) Protected members of a base class are like but they may be accessed by derived processed, it can be held in a processing. classes A) queue A) static members B) constructor functions C) public members C) static deque D) static array E) None of these VD) private members E) None of these 12) to a base class may be assigned the 18) A stack has two primary operations: A) push and pull B) append and delete C) insert and delete D) push and pop E) None of these address of a derived class object. A) Private members J B) Pointers C) Access specifiers, D) Static members E) None of these 19) A function is one that calls itself A) dynamic B) recursive C) data validation D) static E) None of these 13) This is a "generic' function that can work with any data type A) function parameter B) member function C) function argument D) function template E) None of these 20) The algor ithm uses recursion to efficiently sort a list A) binary sort B) quicksort C) shell sort D) red/black sort E) None of these 14) How much memory is reserved for a function template? A) no memory B) four bytes C) eight bytes D) two bytes E) None of these 15) To insert a new node in ascending order into a list, the list must be A) arranged in ascending order B) arranged in descending order C) empty D) randomly ordered 76) Which of the following is a basic linked list A) appending a node B) inserting or deleting a node C) traversing the list D) All of these E) None of these

Explanation / Answer

11) Ans: D

Protected members behave as Private members but they can accessed by derived classes.

12) Ans: B

Pointers of a base class may be assigned the address of a derived class object.

13) Ans: D

Function Template is the generic function that can work with any data type

14) Ans: A

Memory is not used for functional templates

15) Ans: A

The list must in ascending order

16) Ans: D

Appending, inserting, deleting and traversing are basic operations of linked list

17) Ans: A

The data has to be kept in a queue.

18) Ans: D

pup and pop are primary operations of stack

19) Ans: B

Recursive function is the one that calls itself

20) Ans: B

Quick sort and merge sort uses recursion

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