4	
Completing the Inventory Application
Introducing Programming

4.1 	Test-Driving the Inventory Application
4.2 	Introduction to Java Code
1.		Java is          .
a)		not case sensitive 	b)		only case sensitive regarding keywords 	
c)		case sensitive 	d)		only case sensitive regarding methods 	
1.		
2.		A          begins the body of every class declatarion. 
a)		left brace, { 	b)		left bracket, [ 	
c)		colon, : 	d)		left parenthesis, (	
2.		
Answers: 	1) c.  2) a.
4.3 	Placing Code in an Event Handler
1.		Two forward slashes (//) begin a(n)          .
a)		class definition 	b)		comment	
c)		method definition 	d)		operator	
1.		
2.		The multiplication operator is known as a         .
a)		binary operator	b)		class	
c)		unary operator	d)		method	
2.		
Answers: 	1) b.  2) a.
4.4 	Performing a Calculation and Displaying the Result
1.		A single Java statement         .
a)		can be spread across  many lines	b)		can be spread across  many lines, as long as there is no whitespace at the end of the line	
c)		ends with the newline character	d)		must remain on a single line	
1.		
2.		         are also known as white space. 
a)		Spaces	b)		Tabs 	
c)		Newlines	d)		All of the above.	
2.		
Answers: 	1) a.  2) d.
4.5 	Wrap-Up