What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
Which of the following is evaluated first: a) && b) || c) !
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What operator is used to access a struct through a pointer a) >> b) -> c) *
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What character terminates all character array strings a) b) . c) END
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Evaulate: 22%5 a) 2 b) 4 c) 0
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack