Page:5
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.
10.
11.
12,
13.
14.
15,
16,
class output
{
public static void main (string args| 1)
{string Buffer sb=new string Buffer (“Hello”);
Sb.delete (0,2);
system.out.println(c);
}
(A) He ற 8 © b D) ملا
Which of the interface contain all the method used for handling thread related operations in
java ?
(^) Runnable interface (3) Math interface
(ಲ) System interface (D) Thread handling interface
Which of the package contains abstract keyword ?
(A) java.lang (B) java.util (ಲ) javaio (D) java.system
A member function which initializes data member of an object in :
(ಹ) Destructor (B) Constructor (ಲ) Inline function (D) Friend function
A C++ key word, which, when used inside a member function of a class, represents a pointer
to the particular class object that invoked it :
(ಹ) + (B) ऽ < - (D) None
Which of the following is a non linear data structure ?
(ಹ) Tree (8) Array
(ಲ) Linked list (D) None of the above
Which of the following is NOT a method for performing amortized analysis of algorithms ?
(ಹ) Aggregate method (8) Accounting method
(ಲ) Potential method (D) None of the above
0-1 Knapsack problem can be solved by :
(^) Greedy method (இ Dynamic programming method
(ಲ) Divide and conquer method (D) None of the above
Which is NOT a collision resolution technique in Hashing ?
(ಹ) Chaining (8) Linear probing
(9) Quadratic Probing (D) None of the above
5 016/2018
1.7.೦.