C++ Why or why isn't "53a:" a valid label for a goto statement? *a. It is, because any alphanumeric sequence is a valid label -b. It isn't, because you cannot mix letters and numbers in a label -c. It isn't, because all identifiers must start with a character -d. It isn't, because C++ programmer's don't usually remember what "goto" does What can happen if new is unable to allocate sufficient memory? -a. It throws "bad_alloc" -b. It calls "new_handler" -c. It returns 0 *d. All above the above An overloaded post-fix operator++ takes an integer parameter. What is its value? -a. Attempting to name its value is a compile-time error -b. 0 -c. 1 *d. Undefined What will happen if an exception propagates to a function declared as never throwing that exception? -a. A call to terminate() *b. A call to unexpected() -c. A call to abort() -d. The behavior is undefined What will the RTTI typename function return if called on a type "int"? -a. "int" -b. "signed int" -c. "signed integer" *d. An implementation-dependent string What type is returned by the ternary operator? -a. int -b. The type of the expression before the : -c. The type of the expression after the : *d. If both expressions are of the same type, the result is of that type. If both expressions are of arithmetic types, usual arithmetic conversions are performed to convert them to a common type. If both expressions are of pointer types or if one is a pointer type and the other is a constant expression that evaluates to 0, pointer conversions are performed to convert them to a common type. If both expressions are of reference types, reference conversions are performed to convert them to a common type. If both expressions are of type void, the common type is type void. If both expressions are of a given class type, the common type is that class type. Any combinations of second and third operands not in the preceding list are illegal. The type of the result is the common type, and it is an l-value if both the second and third operands are of the same type and both are l-values. Why or why isn't std::auto_ptr a valid value type for std::vector? -a. It is, because it's part of the standard library -b. It is, because it implements all the standard operators *c. It isn't, because assignment of an auto_ptr doesn't imply equality -d. It isn't, because deletion of an auto_ptr may throw an exception Can you forward-declare a nested type without defining the type within which it is nested? -a. Yes -b. Yes, but only if it is not a template -c. Yes, but only if it has no virtual base classes *d. No For a class "foo" templatized as template what is the syntax for typedef'ing the template to automatically specify the first parameter as an integer? -a. typedef template class foo foo_with_int; -b. typedef template class foo foo_with_int; -c. typedef foo foo_with_int; *d. There is no way to make such a typedef Why or why isn't "Chris Hecker" a legal value for a template parameter? -a. It is, because it's a constant string literal -b. It is, because it's a constant pointer *c. It isn't, because string literals don't have external linkage -d. It isn't, because "Chris Hecker" is a reserved word Editor Keystrokes What is the standard Microsoft Developer Studio keystroke for stepping out of a function? -a. F10 -b. ALT-F10 -c. F11 *d. SHIFT-Fl1 What must be enabled to allow Microsoft's IntelliSense technology to actually start working? -a. ClassWizard 2000 -b. MFCAutoClass -c. ActiveMFCAutoClass 2000 *d. Don't know What is the standard Microsoft Developer Studio keystroke for recovering from an editor crash? -a. The Windows Key -b. ALT-F4 -c. ALT-F5 *d. CTRL-ALT-DELETE What BRIEF keystroke exits the editor? -a. CTRL-Q -b. CTRL-X -c. CTRL-ALT-X *d. ALT-X What is the standard GNU Emacs keystroke for deleting a window? -a. CTRL-y -b. CTRL-k *c. CTRL-x-0 -d. CTRL-x-` What is the DOS Edit keystroke for splitting a window? *a. CTRL-F6 -b. CTRL-F3 -c. CTRL-F1 -d. If you're using DOS Edit, the last thing you're worried about is splitting the window. What is the Microsoft Developer Studio keystroke for opening the call stack display? -a. ALT-d *b. ALT-7 -c. ALT-F2 -d. ALT-w What is the WordStar keystroke for ending a block? -a. CTRL-e -b. CTRL-x *c. CTRL-k k -d. CTRL-x x What is the SlickEdit keystroke for breaking out of a search or search and replace operation? -a. CTRL-G *b. CTRL-ALT-SHIFT -c. CTRL-BREAK -d. ALT-BREAK What is the DOS Edit keystroke for indenting a block of code? *a. TAB -b. CTRL-TAB -c. ALT-TAB -d. DOS edit can indent blocks?? Some .asm required On the 386, the byte stream "B8 44 33 22 11" decodes to: -a. mov eax, 044332211h -b. add eax, 011223344h *c. mov eax, 011223344h -d. xor eax, 011223344h What do you do to create a unique label in a macro block? *a. Use the LOCAL directive -b. Use the VarArg directive -c. Define labels as static -d. Go use a high-level sissy language Which instruction is not valid x87 code? -a. FYL2XPI -b. FSCALE -c. FISUBR *d. FLOG2 What is the difference between EQU and "=" in MASM? *a. EQU doesn't allow numeric equates to be redefined -b. EQU allows numeric equates to be redefined -c. EQU's are relocated at link time -d. Absolutely nothing. What are the contents of EAX after mov eax, 011223344h ror eax, 8 xchg ah, al bswap eax rol eax, 8 -a. 022441133h -b. 011332244h *c. 033114422h -d. 3 The MMX instruction "PACKUSWB" is used to: -a. Pack and saturate 2 signed DWORDs from the source and destination into 4 unsigned words -b. Pack and saturate 2 signed DWORDs from the source and destination into 4 signed words *c. Pack and saturate 4 signed WORDs from the source and destination into 8 unsigned bytes -d. Pack and saturate 4 signed WORDs from the source and destination into 8 signed bytes Which of these 3DNow! instructions is available on an Athlon but not a K6? -a. PAVEUSB -b. PREFETCH -c. PFACC *d. MASKMOVQ PowerPC assembly has no native instruction to move the contents of one register to another register. The "mr" instruction is actually a mnemonic for: -a. xor r1,r2,r2 *b. or r1,r2,r2 -c. and r1,r2,r2 -d. rdwsi r1,r2,r2,0 What does the streaming SIMD (Katmai) instruction "movntq" do? -a. Moves the square roots of each packed 32 bit float from one SIMD register to another *b. Stores 64 bits from an MMX register to memory while minimizing cache pollution -c. Moves 64 bits from memory to an MMX register with no thrown exceptions on a bad address -d. Moves 128 bits from a streaming SIMD register to memory In IA-64 assembly, what does a double semi-colon mean in explicit mode? -a. Comments out the rest of the line *b. Separates the instruction stream into groups -c. Closes a macro block -d. Increases the obfuscation factor Story Problems Digital Anvil is giving their press demonstration of Freelancer. For every 5 seconds of pre-rendered video, the press must be kept 1 foot away from the monitor for them to think it's in-game graphics. How far away must Chris Roberts keep the press during their 30-second cutscene? -a. 4 feet -b. 5 feet *c. 6 feet -d. 7 feet You always estimate that your game will take 18 months to develop. Your games always end up taking 24 months. How long do you think your next game will take with twice the people? -a. 24 months -b. 12 months *c. 18 months -d. 3 months If a gamer's blood pressure rises 3 PSI for every megabyte of a game's demo, how many PSI will it rise during the download of the new 134 megabyte Nocturne demo? -a. 302 PSI -b. 312 PSI *c. 402 PSI -d. 3 PSI BluesNews can add up to 6 links to reviews per day. If 9 new people feel the need to write articles comparing Quake 3 Arena to Unreal Tournament every day, how many articles will remain unlinked after 7 days? -a. 63 -b. 54 -c. 27 *d. 21 Every time an employee of id software is fired, a major publisher gives them $13 million to start a new game company. If the game industry has $200 million in reserve, how many more employees can id fire? -a. 12 -b. 13 -c. 14 *d. 15 The new nVidia Quadra card claims to do over 17 million triangles per second. If their PR representatives need to do 1.5 microdots for every 1 million imaginary triangles, how many dots should they do if the card actually does only 9 million? -a. 15 *b. 12 -c. 13.5 -d. 3 You decide to post "I would like to know how to write a Quake 3 renderer in Visual Basic" to comp.games.development.design. If one person posts "ME TOO!!!" every five seconds, what is the minimum number of replies you could have after an hour? *a. 720 -b. 300 -c. 3000 -d. 3 New World Computing's automatic name generator for the Might and Magic franchise can pick any two of the following unique phrases to make a new name: "Might and Magic", "Heroes", "Conquests", and "Crusaders". If each name can be followed by a number from one to nine, how many games will they be able to make before upgrading the naming generator? *a. 108 -b. 24 -c. 144 -d. 3 Camper Bob is camping in a dimly lit corner with the rocket launcher when mAdSkillZ comes running into the room. If Bob can only fire 1 rocket for every 10 nails that mAdSkillZ fires, and each rocket does 5 times the damage of each nail, who will win? -a. Camper Bob, if he has 200 health and mAdSkillZ has 105 *b. Camper Bob, if he has 113 health and mAdSkillZ has 53 -c. mAdSkillZ, if he has 80 health and Camper Bob has 163 -d. mAdSkillZ, if he has 43 health and Camper Bob has 90 Sierra executives use D&&D dice to decide which project they will cancel in any given month. If Sierra starts 4 projects in January, what are the chances that your project will get canned in or before March? -a. 1 in 1 -b. 1 in 2 *c. 1 in 3 -d. 1 in 4