A Java Developer's Quiz
Feb. 26th, 2009 10:47 am1. True or false: It is preferable to write
List dogs = new ArrayList();
instead of
List<Dog> dogs = new ArrayList<Dog> ();
because raw types enable developers to avoid needless verbiage.
A. True.
B. False.
2. Fill in the blank: Joshua Bloch says that the strangest thing about the Java platform is __________.
A. Poor Unicode support.
B. java.lang.Cloneable does not contain clone() method.
C. The byte type is signed.
D. The creators of the Java programming language modeled the syntax after C and C++.
E. java.io.InputStream is an abstract class and not an interface.
3. Computer science professor Qusay Mahmoud remarked that "Today's generation of students is becoming known as Generation C." What does "C" stand for?
A. Create, complete, and collect
B. Creativity, curiosity, and career
C. Content, cash, choice, and control
D. Compete, confer, and collect
4. Fill in the blank: Computer science professors Qusay Mahmoud and Cay Horstmann agree that the biggest mistake made by teachers of computer science is __________.
A. Overwhelming students with too much code complexity too early
B. Lecturing too much
C. Failing to educate students in the use of tools
D. Failing to encourage individual creativity and initiative
List dogs = new ArrayList();
instead of
List<Dog>
A. True.
B. False.
2. Fill in the blank: Joshua Bloch says that the strangest thing about the Java platform is __________.
A. Poor Unicode support.
B. java.lang.Cloneable does not contain clone() method.
C. The byte type is signed.
D. The creators of the Java programming language modeled the syntax after C and C++.
E. java.io.InputStream is an abstract class and not an interface.
3. Computer science professor Qusay Mahmoud remarked that "Today's generation of students is becoming known as Generation C." What does "C" stand for?
A. Create, complete, and collect
B. Creativity, curiosity, and career
C. Content, cash, choice, and control
D. Compete, confer, and collect
4. Fill in the blank: Computer science professors Qusay Mahmoud and Cay Horstmann agree that the biggest mistake made by teachers of computer science is __________.
A. Overwhelming students with too much code complexity too early
B. Lecturing too much
C. Failing to educate students in the use of tools
D. Failing to encourage individual creativity and initiative