Computer Education Introduction to Computer Science Using Java™ Computer Education Introduction to Computer Science Using Java™   Glencoe Online
Computer Education Home Product Information Site Map Search Contact Us

Students

Self-Assessment Exercises

Chapter 7: Object-Oriented Programming and Classes
      
  1.When a class begins to perform more than one task, it is time to ______.  
  a.   add additional comment statements  
  b.   add additional methods  
  c.   change it into a final class  
  d.   refactor it into two or more classes  
      
  2.In a Java program, each source file can contain ________.  
  a.   only one class  
  b.   several classes, but only one public class  
  c.   several classes, but only one non-public class  
  d.   several classes, both public and non-public  
      
  3.Method ________ is when you create more than one version of the same method, but with different ________ lists.  
  a.   copying, declaration  
  b.   duplication, statement  
  c.   execution, signature  
  d.   overloading, parameter  
      
  4.What does the following statement display?

System.out.print(“\table”);
 
  a.   a tab followed by able  
  b.   \table  
  c.   Able  
  d.   ABLE  
      
  5. ________ methods are the means by which classes can communicate with each other and interact with each other.  
  a.   Abstract  
  b.   Concrete  
  c.   Interface  
  d.   Public  

 

McGraw-Hill Glencoe   The McGraw-Hill Companies
Self-Assessment Exercises
Java Compilers
Source Code
Java Resources
PowerPoint® Presentations
Home