zaphirer Posted June 9, 2006 Share Posted June 9, 2006 This neat little quiz is from XFire. See what you get 1. What does this program print, and why? float x = 0.9;if (x == 0.9)printf("Sanity prevails");elseprintf("HUH?"); A. "Sanity prevails" because it comes first in the list B. "Sanity prevails" because x = 0.9 C. "HUH?" because floating point numbers are stored in binary and 0.9 cannot be represented exactly D. The program crashes before printing anything 2. Which C++ feature made the STL possible? A. classes B. templates C. references D. namespaces 3. Which is faster: insertion sort or quick sort? A. insertion sort B. quick sort C. they're the same speed D. it depends on the size of the data set Link to comment Share on other sites More sharing options...
TheFiresInTheSky Posted June 9, 2006 Share Posted June 9, 2006 ABC? Link to comment Share on other sites More sharing options...
zaphirer Posted June 9, 2006 Author Share Posted June 9, 2006 No idea. They don't tell you the answers. I guess if they send me some random game in a week I'll know Link to comment Share on other sites More sharing options...
Eldmannen Posted June 9, 2006 Share Posted June 9, 2006 No idea! Maybe B on first then i dont know for other 2... Link to comment Share on other sites More sharing options...
Eldmannen Posted June 9, 2006 Share Posted June 9, 2006 No idea! Maybe B on first then i dont know for other 2... Link to comment Share on other sites More sharing options...
DjLizard Posted June 9, 2006 Share Posted June 9, 2006 C, A, D (#3 will actually be B for large sets, A for small ones) Click here if CCleaner Issues are re-appearing DjLizard.net DjLizard.net wiki Dial-a-fix Dial-a-fix tips DjLizard.net software support forum Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now