What line of code is required for reading text files?
import java.io.*;
import java.awt.io.*;
import io.java.*;
import io.*;
a
What line of code is requried for applets?
import java.io.*;
import TerminalIO.KeyboardReader;
import java.awt.*;
import objectdraw.*;
d
Which of the following methods is required for an applet to compile?
public void onMouseClick()
public void onMousePress()
public static void main(String [] args)
public void begin()
d
Which of the following draws a circle at the origin?
new FilledOval(0,0,100,50,canvas);
new FilledOval(0,50,0,50,canvas);
new FilledOval(0,0,50,50,canvas);
new FilledOval(50,50,50,50,canvas);
c
An applet may be run from:
an html file
a computer
both a and b
neither a nor b
c
How many elseif's are allowed consecutively?
2
5
32
as many as memory allows
d
GUI stands for:
graphs for the user's interest
graphical user interface
graduating under the influence
the good the ugly and the idiotic
b
Which of the following are will cause an error?
str.indexOf("Jim",5);
str.indexOf("Jim");
str.indexOf('j');
none of the above
d
which of the following corresponds to these symbols: && || ! ==
or and not equals
and or not equals
and or not is_equal_to
or and not is_equal_to
c
Which of the following is correct?
public void main(String args)
public static void main(String [] args)
public static void(String [] args)
public static void main(args)
b
which of the following is not a primitive data type?
String 
int
double
char
a
What mathematical operation does % represent
percentage
division
modular division
addition
c
Which of the following is not a run-time error?
dividing by 0
null pointer exception
variable has not been initialized
wrong output
d
How many empty lines will there be between the two "<" in System.out.println("<\n\n\n<");
1
2
3
4
b
What must be at the end of every statement in java?
;
:
.
}
a
JVM stands for what?
Java Virtual Machine
Juggle Verticle Mountains
Jump on Victor's Motorcycle
Jolly Village Monster
a
which of the following is not correct about an object?
it is an entity that can be manipulated by invoking methods
it's memory is referenced by pointers
it can be run on its own
object variable does not contain the object
c
Both parameters in the method and in the command line must match in all but which?
type
quantity
position
name
d
Which of the following must occur before any of the others are possible of an object?
declaration
print
access methods
create
a
Overloading is what?
inputting too much information
creating two or more methods of the same name, but with different paramters
causing the computer to overheat
putting too many transisters on a motherboard
b