Kerala PSC Previous Years Question Paper & Answer

Title : Instructor Gr I (Engineering Colleges) in Information Technology & Computer Engineering
Question Code : A

Page:14


Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name ' Instructor Gr I (Engineering Colleges) in Information Technology & Computer Engineering' And exam conducted in the year 2022. And Question paper code was '091/2022'. 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.

page: 14 out of 24
Excerpt of Question Code: 091/2022

091/22

63. What will be the error of the following program ?
interface 11 {
double PI = 3.14;

interface 12 {
double PI = 3.1415;

interface ‏3ا‎ extends 11, 12 {
double area(double r);
}

public class Interface Test implements 13 {
public double area(double r) {
return ۳۱*۳۲

public static void main(String[] args) {
InterfaceTest it = new InterfaceTest();
System.out.printin(it.area(5));

}

}

A) InterfaceTest.java:12: error: reference to ۳۱ is ambiguous

B) InterfaceTest.java:7: error: multiple inheritance is not permitted

C) InterfaceTest.java:7: error: reference to ۳۱ is ambiguous
)

0) InterfaceTest.java:12: error: reference to PI is not resolved (should implement
Ambiguity Resolver)

64. What will be the output of the following program ?
public class SimpleClass {
public static void main(String[] args) {
SimpleClasssc = new SimpleClass();
sc.begin();

}

void begin() {
int[] a = (4, 5, 6};
1೧1] 0 = operate(a);
System.out.print(a[O]+a[1}+a[2]}+ “:”);
System.out.print(b[0}+b[1]+b[2]);

(നവി operate(int[] ௦) {

०2] = 8;
return 0;
}
}
A) 15:17 B) 17:15 C) 15:15 D) 17:17

Similar Question Papers

Ask Question

(Press Ctrl+g to toggle between English and the chosen language)


Questions & Answers

Instructor Gr I (Engineering Colleges) in Information Technology & Computer Engineering : Video