Quiz2 - 1. Quiz2.1 A(n) _ is a piece of data that is send...

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

View Full Document Right Arrow Icon
1. Quiz2.1 A(n) __________________ is a piece of data that is send to a method. Student Response Value Correct Answer Feedback 1. parameter 100% 2. object 3. service 4. expression 5. class Score: 1/1 2. Quiz2.10 Information is most likely lost in what kind of data conversion? Student Response Value Correct Answer Feedback 1. A widening conversion 2. A narrowing conversion 100% 3. promotion 4. assignment conversion 5. binary to decimal conversion 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. Quiz2.2 Which of the following is an example of an invalid assignment or declaration statement? Student Response Value Correct Answer Feedback 1. int age = 30; 2. int years = 1; months = 12; days = 365; 100% 3. int money, dollars = 0, cents = 0; 4. int length, meters, centimeters, millimeters; 5. none of the above Score: 1/1 4. Quiz2.3 Consider the expression: result = 12 + 5 / 2; What value stored in result after this line is executed? Student Response Value Correct Answer Feedback 1. 14.5 2. 8.5
Background image of page 2
3. 9 4. 14 100% 5. this will result in a compiler error Score: 1/1 5. Quiz2.4 In order to make a variable a constant which modifier must be included in its declaration? Student Response Value Correct Answer Feedback 1. final 100% 2. public 3. static 4. void 5. private Score: 1/1 6. Quiz2.5
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 / 9

Quiz2 - 1. Quiz2.1 A(n) _ is a piece of data that is send...

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