
CIS 121 - Problem-solving and Programming Concepts II
Practice Test II
Spring 2004
Part I: Fill-in-the-blank.
1. A String method for comparing Strings which is not case-sensitive is
___________________________.
2. A String method that converts a String to all capital letters is
________________________.
3. A Character method that returns true if the character is a number is
___________________.
4. A class variable is identified by the keyword ____________________.
5. A class which has methods for separating a String into pieces is
________________________________ and is from the
______________________________ package.
6. A String method which compares Strings and returns an int 0 if the strings are equal is
_____________________.
7. When we connect two strings to create a third string it is known as
_________________________________.
8. Each string is an array of _________________________________.
9. A(n) _____________________ is an indication that a problem, for example class not
found, has occurred during a program's execution.
10. The paint method is used to _______________________________ on the screen.
11. In our java programs we handle _____________________________ but not
______________________________.
12. The paint method takes an object of the _______________________ class as a
parameter.
13. Three Graphics methods are: ____________________, ______________________, and
______________________________.
14. Java views files as a stream of __________________________________.
15. The Exception and Error classes inherit from the _______________ class.