Page:10
Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name 'LECTURER IN COMPUTER SCIENCE' And exam conducted in the year 2015. And Question paper code was '028/2015/OL'. 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.
Question83:-What does the following program output?
public class ABC {
public static int function1 (int p, int ५) {
if (q==0) return 1;
else if (p
else
return function1(p-1,q)+function1(p-1,q-1);
1
public static void main(String[] args) {
System.out. printIn(ABC.function1 (3,2));
1
}
ODP
१ ५ क
D:-1
Correct Answer:- Option-B
Question84:-The following program prints:
public class XYZ {
public static void main (String[] args){
byte val=(byte) 128;
System.out. printin(val);
1
0
8-ھ
8.8
"6-7
ഉ:.-127
Correct Answer:-Question Cancelled
Question85:-The following Java program segment prints:
String S1=new String("Hello");
String S2=new String("Hello");
if (S1==S2)
System.out.printin("They are same");
else
System.out.printin("They are not same");
A:-They are same
B:-They are not same
C:-Garbage
D:-Run time error
Correct Answer:- Option-B
Question86:-Asynchronous Java Script and XML (Ajax) incorporates
P: Asynchronous data retrieval using XMLHttpRequest
0: Standards based presentation using XHTML and CSS
R: Data interchanges and manipulation using XML and XSLT
S: Dynamic display and interaction using the Document Object Model
A:-Pand R
B:-Pand Q
C:-P, Rand S
D:-P,Q, Rand S
Correct Answer:- Option-D
Question87:-In Java, MVC stands for
A:-Model Video Controller
B:-Mobile View Controller
C:-Model View Controller
D:-None of the above
Correct Answer:- Option-C