Page:4
Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name 'HSST COMPUTER SCIENCE KHSE' And exam conducted in the year 2018. And Question paper code was '016/2018'. 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.
3. पाल
{
int k=35,z;
K=funcl(k=funcl(k=func1(k)));
printf(“k=%d" k);
}
Funct1(k)
int k:
{
K++;
return(k):
}
८५) ॐ ൫ 37 © 38 D) 40
4. main ¢
{
int j=1;
while (j<=255);
printf(“%c%d\n”, j;);
1
}
}
(ಹ) 255 ൫ 255, 255 )© Nooutput (D) 256
5. गाल
{
int a=500, b=100,c;
if (la>=400)
b=300;
൦200;
printf(“b=%d c=%d”,b,c);
}
(ಹಿ) 155100, ൦400 ൫ b=100, c=300
(ಲ) 0೯100, ೧200 (D) None of the above
6. Multiple inheritance in java can be achieved by :
(5) interface (B) polymorphism (C) abstraction (D) encapsulation
7. Which is the base class of all classes in java ?
(^) system.lang (8) class.object ) java.lang.object (D) none of the above
016/2018 4 A