If all is successful, what should main return a) 0 b) 1 c) void
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
Which is not a valid keyword a) public b) protected c) guarded
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What do nonglobal variables default to a) auto b) register c) static