Page:9
Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name 'JUNIOR INSTRUCTOR(COMPUTER OPERATOR AND PROGRAMMING ASSISTANT' And exam conducted in the year 2023. And Question paper code was '147/2023'. 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.
49. What will be the output of following code in case of x = 20, x = 40, x = 70?
Class main {
Public static void main(string[] args) {
double salary;
int x;
salary = (x ! = 40)?((x<40)?(4*x + 100) : (4.5 *x +100)) : 300;
System.out.println (salary);
}
(A) 180.0, 800.0, 415.0 (B) 800.0, 415.0, 180.0
(€) 300.0, 180.0, 415.0 (D) 180, 300, 415
50. Which of the following statements is/are true about method overriding?
@ Implements “run time polymorphism”.
Gi) Implements “compile time polymorphism’.
(111) Occurs between superclass and subclass.
(iv) On error it can be caught at compile time.
(¢) Only (i) and (iii) (B) Only (ii) and (iii)
(C) Only Qi), (iii) and (iv) (D) None of above
51. Which among the following are valid operators in JavaScript?
0 =
Gi)
(1) ===
(iv) 225
(A) @ only (B) (1 and (iii) only
(೮) 0), (1) and (iii) only (D) Allof the above
52. Which among the following are valid popup boxes in JavaScript?
0) 8161 ()
Gi) prompt ()
(011) msgbox ()
(iv) confirm ()
(^) @ and (i) only (B) (1 and (iii) only
(C) (i), Gi) and (iv) only (D) Allof the above
A 11 147/2023
[P.T.0.]