Quiz3 - 1 Quiz3.1 The operator is used to instantiate an...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1. Quiz3.1 The ________________ operator is used to instantiate an object. Student Response Value Correct Answer Feedback 1. static 2. new 100% 3. + 4. - 5. = Score: 1/1 2. Quiz3.2 A special method that is invoked to set up an object during instantiation is called a ___________________. Student Response Value Correct Answer Feedback 1. creator method 2. constructor method 100% 3. destructor method 4. static method 5. returning method Score: 1/1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3. Quiz3.3 Which of the following is an invalid way to instantiate a String object? Student Response Value Correct Answer Feedback 1. String title = new String(“Java Software Solutions”); 2. String name = “John Lewis”; 3. String empty = “”; 4. String alsoEmpty = new String(“”); 5. all of the above are valid 100% Score: 1/1 4. Quiz3.4 Which of the following classes include the getCurrencyInstance() method? Student Response Value Correct Answer Feedback 1. NumberFormat 100% 2. String 3. DecimalFormat
Background image of page 2
4. Math 5. Random Score: 1/1 5. Quiz3.5 Which of the following expressions correctly compute 5 + 26? Student Response Value Correct Answer Feedback 1. result = 5 + 2^6; 2. 5 + 2*exponent(6); 3. 5 + 2*Math.exponent(6); 4. 5 + Math.pow(2, 6); 5. none of the above 0% Score: 0/1 6. Quiz3.6
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/17/2011 for the course COMP 1130 taught by Professor Na during the Winter '11 term at Thompson Rivers.

Page1 / 10

Quiz3 - 1 Quiz3.1 The operator is used to instantiate an...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online