The two methods used by C++ to write computer programs are:
a. top-down programming and procedural programming
b. procedural programming and object-oriented programming
c. pseudocoding and object-oriented program-ming
d. flowcharting and procedural programming
e. None of these
b. procedural programming and object-oriented programming
You might also like to view...
The ___________________ builders enable you to design your own people objects.
Fill in the blank(s) with the appropriate word(s).
static data members of a certain class:
a. Can be accessed only if an object of that class exists. b. Cannot be changed, even by objects of the same that class. c. Have class scope. d. Can only be changed by static member functions.
An array a[] of N elements is being sorted using the insertion sort algorithm. The algorithm is at the last stage, with the segment of the array in positions 0 through N-2 already sorted. How many array elements will a[N-1] have to be compared to, before it can be placed into its proper position?
A) Just one B) Could be any number of elements between 1 and N-1 (inclusive) C) Could be any number of elements between 1 and N (inclusive) D) N-1
The HTTP protocol is by definition stateless, meaning that it has no mechanism for “remembering” data from one interaction to the next. (a) Suggest a means by which you can preserve state between two HTTP calls. For example, you may send the user a page of books and prices matching a user’s query, and you want to avoid having to look up the price of each book again once the user chooses one to purchase. (b) Suggest a means by which you can preserve some notion of state between two web accesses many days apart. For example, the user may prefer prices quoted in euros instead of dollars, and you want to present prices in the preferred currency next time without asking the user.
What will be an ideal response?