Rajasthan Polytechnic Third Year Paper 2016 – Java Tools
Java programs perform I/O through
(a) I/O methods
(b) I/O package
(c) Streams
(d) Compiler
A sequence of characters called in Java
(a) String
(b) Array char
(c) Group char
(d) Collection
The applet class is in ________package
(a) java.applet
(b) java.awt
(c) java.io
(d) Java.util
Which of the following is a loop that will always be executed once?
(a) switch
(b) for
(c) while
(d) do…while
A class that is inherited is called as ______
(a) superclass
(b) subclass
(c) subsetclass
(d) relativeclass
The _________method takes a graphics class object as a parameter. The ________method draws the graphics of the applet in the drawing area.
(a) paintupdate()
(b) repaint(),paint()
(c) update(),paint()
(d) paint(),paint()
Which message is displayed in the applet made by this program?
import java.awt*;
import java.applet*;
public class myapplet extends applet{
public void paint (graphics g) {
g.drawstring(“A simple Applet”,20,20);
}
}
(a) A simple applet
(b) A simple applet 20 20
(c) Compilation error
(d) Runtime error
Following sequence of method calls take place when an applet begins
(a) init(), start(), create()
(b) start(), init(), paint()
(c) init(), start(), paint()
(d) None of these
Life cycle of an applet –
(a) Running, idle, born, dead
(b) Idle, running, born, dead
(c) Born, running, idle, dead
(d) Running, dead, born, idle
The selection and separation of a part of a image for further operation are called
(a) Translation
(b) Rotation
(c) Reflection
(d) Clipping
Leave a Reply