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

A(n) search is more efficient than a(n) search A) linear, binary 10) C) integer,

ID: 3575155 • Letter: A

Question

A(n) search is more efficient than a(n) search A) linear, binary 10) C) integer, double B) binary, linear D) all searches are equally efficient. 11 The linear search is for searching through ys but not through adequate A) ascending, descending B) small, large string 12) A D) any regular, vector function may return a pointer ut the programmer must ensure that the pointer A) is pointing to an object that is still valid after the return the function B) has been an of address 12) D) has not previously returned by another function was been received as a parameter by the function 13) array can store a group of values, but the values must be An A) not characters or strings. numeric, C) declared at the time the array is created. B) 14) If D) all the same data type. the array defined asint displayAr along 120 [10] ing passed to a function named the ray, with informat on the number of rows and number of following function calls tion A) display is correct? Array (nyArray, 20, 10); 14) mans, which of D) display Array (myArray[ 1, 20, 10): display Array (int nyArray, 20, 10) 15) Assuming that arr is an array identifier, the statement sum "arr A) adds the value stored in am0) to sum B) will always result in a compiler error is illegal in C 15) D) adds the address of the pointer arr to sum 16) To overload the operator, you write a function called A) function would C) operator overload(+) 16) D) overload 17 The is a special built-in pointer that is available to a class's instanoe A) &constructor; pointer member functions. -destructor ptr B) overloaded operator D this pointer 8) The code segment int ptr, has the same meaning as A) int ptr, B)'int ptr; The base class's affects the way its members are inherited by the derived class. A) access specification B) return data type 19) D) name

Explanation / Answer

10) B binary is more efficient than linear

11) B because linear search starts from the beginning hence overhead increase with the size of list hence it is adequate for small list but not through large ones

12) D because pointer must be recieved in pointer parameter by the function otherwise it will show compile error

13) D because array contains similar type of data

14) B

15) not sure about its answer

16) B operator +

17) D this pointer

18) C int* ptr = int *ptr

19) A access specification

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