Page:7
Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name 'PROGRAMMER KPSC' And exam conducted in the year 2015. And Question paper code was '145/2015'. Medium of question paper was in Malayalam or English . Booklet Alphacode was 'A'. Answer keys are given at the bottom, but we suggest you to try answering the questions yourself and compare the key along wih to check your performance. Because we would like you to do and practice by yourself.
48.
49.
50.
51.
53.
54,
The Java compiler translates source code into :
(ಹಿ) Machine code (B) Assembly code
(0 Byte code (D) JVM code
Which of the following is not a valid type in Java? .
(ಯ) லம் (B) static
(0 © (D) boolean
Scanner class comes under the package :
(ಗ). javalang (ല്) java.io
(0) java.net (D) java.util
Which one of the following is not a method of Window Listener interface?
(^) windowShown() (B) windowClosed()
(൫) windowlconified() (D) windowClosing()
The Graphics class method used to draw a circle in an applet is :
(ல drawRect() (B) drawCircle()
(©) drawSphere() (D) drawOval()
In E-R model, dotted oval represents :
(¢) Stored attribute (B) Key attribute
(೧) Derived attribute (D) Partial key attribute
What is the output of the following program?
public class Test
{
public statie void main(String arg[ 1)
{
public static final int value = 5;
float total;
total = value + value/2;
System.out.print(total);
}
)
(5) 5.0 @ 7.0
(6 15 (D) None of these
145/2015
[P.T.O.]
Rl و